[2025-01-10 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:00:06 [end_date_ymd] => 2025-01-10 00:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 21:00:06' and `end` < '2025-01-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-01-10 00:00:20] Production.INFO: count ==580 [2025-01-10 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 21:00:06 - End Time 2025-01-10 00:00:06 [2025-01-10 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213102', 'tblTempUsageDetail_20' ) start [2025-01-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213102', 'tblTempUsageDetail_20' ) end [2025-01-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213102', 'tblTempVendorCDR_20' ) start [2025-01-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213102', 'tblTempVendorCDR_20' ) end [2025-01-10 00:00:20] Production.INFO: ProcessCDR(1,14213102,1,1,2) [2025-01-10 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213102', 'tblTempUsageDetail_20' ) start [2025-01-10 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213102', 'tblTempUsageDetail_20' ) end [2025-01-10 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:00:29] Production.INFO: ==19329== Releasing lock... [2025-01-10 00:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:00:29] Production.INFO: 33.25 MB #Memory Used# [2025-01-10 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:01:05 [end_date_ymd] => 2025-01-10 00:01:05 [RateCDR] => 1 ) [2025-01-10 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:01:05' and `end` < '2025-01-10 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:01:18] Production.INFO: count ==560 [2025-01-10 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:01:05 - End Time 2025-01-10 00:01:05 [2025-01-10 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213107', 'tblTempUsageDetail_20' ) start [2025-01-10 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213107', 'tblTempUsageDetail_20' ) end [2025-01-10 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213107', 'tblTempVendorCDR_20' ) start [2025-01-10 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213107', 'tblTempVendorCDR_20' ) end [2025-01-10 00:01:18] Production.INFO: ProcessCDR(1,14213107,1,1,2) [2025-01-10 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213107', 'tblTempUsageDetail_20' ) start [2025-01-10 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213107', 'tblTempUsageDetail_20' ) end [2025-01-10 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:01:21] Production.INFO: ==19418== Releasing lock... [2025-01-10 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-10 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:02:05 [end_date_ymd] => 2025-01-10 00:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:02:05' and `end` < '2025-01-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-01-10 00:02:20] Production.INFO: count ==114 [2025-01-10 00:02:20] Production.ERROR: pbx CDR StartTime 2025-01-09 21:02:05 - End Time 2025-01-10 00:02:05 [2025-01-10 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213112', 'tblTempUsageDetail_20' ) start [2025-01-10 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213112', 'tblTempUsageDetail_20' ) end [2025-01-10 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213112', 'tblTempVendorCDR_20' ) start [2025-01-10 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213112', 'tblTempVendorCDR_20' ) end [2025-01-10 00:02:20] Production.INFO: ProcessCDR(1,14213112,1,1,2) [2025-01-10 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213112', 'tblTempUsageDetail_20' ) start [2025-01-10 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213112', 'tblTempUsageDetail_20' ) end [2025-01-10 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:02:23] Production.INFO: ==19488== Releasing lock... [2025-01-10 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:02:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:03:05 [end_date_ymd] => 2025-01-10 00:03:05 [RateCDR] => 1 ) [2025-01-10 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:03:05' and `end` < '2025-01-10 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:03:18] Production.INFO: count ==114 [2025-01-10 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:03:05 - End Time 2025-01-10 00:03:05 [2025-01-10 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213117', 'tblTempUsageDetail_20' ) start [2025-01-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213117', 'tblTempUsageDetail_20' ) end [2025-01-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213117', 'tblTempVendorCDR_20' ) start [2025-01-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213117', 'tblTempVendorCDR_20' ) end [2025-01-10 00:03:18] Production.INFO: ProcessCDR(1,14213117,1,1,2) [2025-01-10 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213117', 'tblTempUsageDetail_20' ) start [2025-01-10 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213117', 'tblTempUsageDetail_20' ) end [2025-01-10 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:03:21] Production.INFO: ==19560== Releasing lock... [2025-01-10 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:04:05 [end_date_ymd] => 2025-01-10 00:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:04:05' and `end` < '2025-01-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-01-10 00:04:18] Production.INFO: count ==114 [2025-01-10 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:04:05 - End Time 2025-01-10 00:04:05 [2025-01-10 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213122', 'tblTempUsageDetail_20' ) start [2025-01-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213122', 'tblTempUsageDetail_20' ) end [2025-01-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213122', 'tblTempVendorCDR_20' ) start [2025-01-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213122', 'tblTempVendorCDR_20' ) end [2025-01-10 00:04:18] Production.INFO: ProcessCDR(1,14213122,1,1,2) [2025-01-10 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213122', 'tblTempUsageDetail_20' ) start [2025-01-10 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213122', 'tblTempUsageDetail_20' ) end [2025-01-10 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:04:21] Production.INFO: ==19631== Releasing lock... [2025-01-10 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:05:04 [end_date_ymd] => 2025-01-10 00:05:04 [RateCDR] => 1 ) [2025-01-10 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:05:04' and `end` < '2025-01-10 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:05:17] Production.INFO: count ==113 [2025-01-10 00:05:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:05:04 - End Time 2025-01-10 00:05:04 [2025-01-10 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213127', 'tblTempUsageDetail_20' ) start [2025-01-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213127', 'tblTempUsageDetail_20' ) end [2025-01-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213127', 'tblTempVendorCDR_20' ) start [2025-01-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213127', 'tblTempVendorCDR_20' ) end [2025-01-10 00:05:17] Production.INFO: ProcessCDR(1,14213127,1,1,2) [2025-01-10 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213127', 'tblTempUsageDetail_20' ) start [2025-01-10 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213127', 'tblTempUsageDetail_20' ) end [2025-01-10 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:05:20] Production.INFO: ==19704== Releasing lock... [2025-01-10 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:06:05 [end_date_ymd] => 2025-01-10 00:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:06:05' and `end` < '2025-01-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-01-10 00:06:19] Production.INFO: count ==111 [2025-01-10 00:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:06:05 - End Time 2025-01-10 00:06:05 [2025-01-10 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213132', 'tblTempUsageDetail_20' ) start [2025-01-10 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213132', 'tblTempUsageDetail_20' ) end [2025-01-10 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213132', 'tblTempVendorCDR_20' ) start [2025-01-10 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213132', 'tblTempVendorCDR_20' ) end [2025-01-10 00:06:19] Production.INFO: ProcessCDR(1,14213132,1,1,2) [2025-01-10 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213132', 'tblTempUsageDetail_20' ) start [2025-01-10 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213132', 'tblTempUsageDetail_20' ) end [2025-01-10 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:06:22] Production.INFO: ==19779== Releasing lock... [2025-01-10 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:07:05 [end_date_ymd] => 2025-01-10 00:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:07:05' and `end` < '2025-01-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-01-10 00:07:19] Production.INFO: count ==111 [2025-01-10 00:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:07:05 - End Time 2025-01-10 00:07:05 [2025-01-10 00:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213137', 'tblTempUsageDetail_20' ) start [2025-01-10 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213137', 'tblTempUsageDetail_20' ) end [2025-01-10 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213137', 'tblTempVendorCDR_20' ) start [2025-01-10 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213137', 'tblTempVendorCDR_20' ) end [2025-01-10 00:07:19] Production.INFO: ProcessCDR(1,14213137,1,1,2) [2025-01-10 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213137', 'tblTempUsageDetail_20' ) start [2025-01-10 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213137', 'tblTempUsageDetail_20' ) end [2025-01-10 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:07:22] Production.INFO: ==19849== Releasing lock... [2025-01-10 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:08:04 [end_date_ymd] => 2025-01-10 00:08:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:08:04' and `end` < '2025-01-10 00: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-01-10 00:08:17] Production.INFO: count ==110 [2025-01-10 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:08:04 - End Time 2025-01-10 00:08:04 [2025-01-10 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213142', 'tblTempUsageDetail_20' ) start [2025-01-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213142', 'tblTempUsageDetail_20' ) end [2025-01-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213142', 'tblTempVendorCDR_20' ) start [2025-01-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213142', 'tblTempVendorCDR_20' ) end [2025-01-10 00:08:18] Production.INFO: ProcessCDR(1,14213142,1,1,2) [2025-01-10 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213142', 'tblTempUsageDetail_20' ) start [2025-01-10 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213142', 'tblTempUsageDetail_20' ) end [2025-01-10 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:08:22] Production.INFO: ==19921== Releasing lock... [2025-01-10 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:09:05 [end_date_ymd] => 2025-01-10 00:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:09:05' and `end` < '2025-01-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-01-10 00:09:18] Production.INFO: count ==111 [2025-01-10 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:09:05 - End Time 2025-01-10 00:09:05 [2025-01-10 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213147', 'tblTempUsageDetail_20' ) start [2025-01-10 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213147', 'tblTempUsageDetail_20' ) end [2025-01-10 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213147', 'tblTempVendorCDR_20' ) start [2025-01-10 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213147', 'tblTempVendorCDR_20' ) end [2025-01-10 00:09:18] Production.INFO: ProcessCDR(1,14213147,1,1,2) [2025-01-10 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213147', 'tblTempUsageDetail_20' ) start [2025-01-10 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213147', 'tblTempUsageDetail_20' ) end [2025-01-10 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:09:22] Production.INFO: ==19995== Releasing lock... [2025-01-10 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:10:05 [end_date_ymd] => 2025-01-10 00:10:05 [RateCDR] => 1 ) [2025-01-10 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:10:05' and `end` < '2025-01-10 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:10:18] Production.INFO: count ==116 [2025-01-10 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:10:05 - End Time 2025-01-10 00:10:05 [2025-01-10 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213153', 'tblTempUsageDetail_20' ) start [2025-01-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213153', 'tblTempUsageDetail_20' ) end [2025-01-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213153', 'tblTempVendorCDR_20' ) start [2025-01-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213153', 'tblTempVendorCDR_20' ) end [2025-01-10 00:10:18] Production.INFO: ProcessCDR(1,14213153,1,1,2) [2025-01-10 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213153', 'tblTempUsageDetail_20' ) start [2025-01-10 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213153', 'tblTempUsageDetail_20' ) end [2025-01-10 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:10:21] Production.INFO: ==20067== Releasing lock... [2025-01-10 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:11:05 [end_date_ymd] => 2025-01-10 00:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:11:05' and `end` < '2025-01-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-01-10 00:11:18] Production.INFO: count ==138 [2025-01-10 00:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:11:05 - End Time 2025-01-10 00:11:05 [2025-01-10 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213158', 'tblTempUsageDetail_20' ) start [2025-01-10 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213158', 'tblTempUsageDetail_20' ) end [2025-01-10 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213158', 'tblTempVendorCDR_20' ) start [2025-01-10 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213158', 'tblTempVendorCDR_20' ) end [2025-01-10 00:11:19] Production.INFO: ProcessCDR(1,14213158,1,1,2) [2025-01-10 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213158', 'tblTempUsageDetail_20' ) start [2025-01-10 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213158', 'tblTempUsageDetail_20' ) end [2025-01-10 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:11:22] Production.INFO: ==20146== Releasing lock... [2025-01-10 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:12:05 [end_date_ymd] => 2025-01-10 00:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:12:05' and `end` < '2025-01-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-01-10 00:12:23] Production.INFO: count ==135 [2025-01-10 00:12:23] Production.ERROR: pbx CDR StartTime 2025-01-09 21:12:05 - End Time 2025-01-10 00:12:05 [2025-01-10 00:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213163', 'tblTempUsageDetail_20' ) start [2025-01-10 00:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213163', 'tblTempUsageDetail_20' ) end [2025-01-10 00:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213163', 'tblTempVendorCDR_20' ) start [2025-01-10 00:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213163', 'tblTempVendorCDR_20' ) end [2025-01-10 00:12:23] Production.INFO: ProcessCDR(1,14213163,1,1,2) [2025-01-10 00:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213163', 'tblTempUsageDetail_20' ) start [2025-01-10 00:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213163', 'tblTempUsageDetail_20' ) end [2025-01-10 00:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:12:26] Production.INFO: ==20228== Releasing lock... [2025-01-10 00:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:12:26] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:13:04 [end_date_ymd] => 2025-01-10 00:13:04 [RateCDR] => 1 ) [2025-01-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-01-09 21:13:04' and `end` < '2025-01-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-01-10 00:13:18] Production.INFO: count ==135 [2025-01-10 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:13:04 - End Time 2025-01-10 00:13:04 [2025-01-10 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213168', 'tblTempUsageDetail_20' ) start [2025-01-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213168', 'tblTempUsageDetail_20' ) end [2025-01-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213168', 'tblTempVendorCDR_20' ) start [2025-01-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213168', 'tblTempVendorCDR_20' ) end [2025-01-10 00:13:18] Production.INFO: ProcessCDR(1,14213168,1,1,2) [2025-01-10 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213168', 'tblTempUsageDetail_20' ) start [2025-01-10 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213168', 'tblTempUsageDetail_20' ) end [2025-01-10 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:13:21] Production.INFO: ==20312== Releasing lock... [2025-01-10 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:14:06 [end_date_ymd] => 2025-01-10 00:14:06 [RateCDR] => 1 ) [2025-01-10 00:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:14:06' and `end` < '2025-01-10 00:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:14:19] Production.INFO: count ==137 [2025-01-10 00:14:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:14:06 - End Time 2025-01-10 00:14:06 [2025-01-10 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213173', 'tblTempUsageDetail_20' ) start [2025-01-10 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213173', 'tblTempUsageDetail_20' ) end [2025-01-10 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213173', 'tblTempVendorCDR_20' ) start [2025-01-10 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213173', 'tblTempVendorCDR_20' ) end [2025-01-10 00:14:19] Production.INFO: ProcessCDR(1,14213173,1,1,2) [2025-01-10 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213173', 'tblTempUsageDetail_20' ) start [2025-01-10 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213173', 'tblTempUsageDetail_20' ) end [2025-01-10 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:14:23] Production.INFO: ==20394== Releasing lock... [2025-01-10 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:14:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:15:05 [end_date_ymd] => 2025-01-10 00:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:15:05' and `end` < '2025-01-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-01-10 00:15:18] Production.INFO: count ==133 [2025-01-10 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:15:05 - End Time 2025-01-10 00:15:05 [2025-01-10 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213178', 'tblTempUsageDetail_20' ) start [2025-01-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213178', 'tblTempUsageDetail_20' ) end [2025-01-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213178', 'tblTempVendorCDR_20' ) start [2025-01-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213178', 'tblTempVendorCDR_20' ) end [2025-01-10 00:15:18] Production.INFO: ProcessCDR(1,14213178,1,1,2) [2025-01-10 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213178', 'tblTempUsageDetail_20' ) start [2025-01-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213178', 'tblTempUsageDetail_20' ) end [2025-01-10 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:15:21] Production.INFO: ==20522== Releasing lock... [2025-01-10 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:16:05 [end_date_ymd] => 2025-01-10 00:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:16:05' and `end` < '2025-01-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-01-10 00:16:18] Production.INFO: count ==133 [2025-01-10 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:16:05 - End Time 2025-01-10 00:16:05 [2025-01-10 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213182', 'tblTempUsageDetail_20' ) start [2025-01-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213182', 'tblTempUsageDetail_20' ) end [2025-01-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213182', 'tblTempVendorCDR_20' ) start [2025-01-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213182', 'tblTempVendorCDR_20' ) end [2025-01-10 00:16:18] Production.INFO: ProcessCDR(1,14213182,1,1,2) [2025-01-10 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213182', 'tblTempUsageDetail_20' ) start [2025-01-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213182', 'tblTempUsageDetail_20' ) end [2025-01-10 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:16:21] Production.INFO: ==20605== Releasing lock... [2025-01-10 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:17:04 [end_date_ymd] => 2025-01-10 00:17:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:17:04' and `end` < '2025-01-10 00: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-01-10 00:17:18] Production.INFO: count ==130 [2025-01-10 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:17:04 - End Time 2025-01-10 00:17:04 [2025-01-10 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213188', 'tblTempUsageDetail_20' ) start [2025-01-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213188', 'tblTempUsageDetail_20' ) end [2025-01-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213188', 'tblTempVendorCDR_20' ) start [2025-01-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213188', 'tblTempVendorCDR_20' ) end [2025-01-10 00:17:18] Production.INFO: ProcessCDR(1,14213188,1,1,2) [2025-01-10 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213188', 'tblTempUsageDetail_20' ) start [2025-01-10 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213188', 'tblTempUsageDetail_20' ) end [2025-01-10 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:17:21] Production.INFO: ==20689== Releasing lock... [2025-01-10 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:18:04 [end_date_ymd] => 2025-01-10 00:18:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:18:04' and `end` < '2025-01-10 00: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-01-10 00:18:17] Production.INFO: count ==129 [2025-01-10 00:18:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:18:04 - End Time 2025-01-10 00:18:04 [2025-01-10 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213193', 'tblTempUsageDetail_20' ) start [2025-01-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213193', 'tblTempUsageDetail_20' ) end [2025-01-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213193', 'tblTempVendorCDR_20' ) start [2025-01-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213193', 'tblTempVendorCDR_20' ) end [2025-01-10 00:18:17] Production.INFO: ProcessCDR(1,14213193,1,1,2) [2025-01-10 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213193', 'tblTempUsageDetail_20' ) start [2025-01-10 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213193', 'tblTempUsageDetail_20' ) end [2025-01-10 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:18:20] Production.INFO: ==20783== Releasing lock... [2025-01-10 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:18:20] Production.INFO: 29 MB #Memory Used# [2025-01-10 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:19:05 [end_date_ymd] => 2025-01-10 00:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:19:05' and `end` < '2025-01-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-01-10 00:19:18] Production.INFO: count ==126 [2025-01-10 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:19:05 - End Time 2025-01-10 00:19:05 [2025-01-10 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213198', 'tblTempUsageDetail_20' ) start [2025-01-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213198', 'tblTempUsageDetail_20' ) end [2025-01-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213198', 'tblTempVendorCDR_20' ) start [2025-01-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213198', 'tblTempVendorCDR_20' ) end [2025-01-10 00:19:18] Production.INFO: ProcessCDR(1,14213198,1,1,2) [2025-01-10 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213198', 'tblTempUsageDetail_20' ) start [2025-01-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213198', 'tblTempUsageDetail_20' ) end [2025-01-10 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:19:21] Production.INFO: ==20867== Releasing lock... [2025-01-10 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:20:05 [end_date_ymd] => 2025-01-10 00:20:05 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:20:05' and `end` < '2025-01-10 00: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-01-10 00:20:18] Production.INFO: count ==127 [2025-01-10 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:20:05 - End Time 2025-01-10 00:20:05 [2025-01-10 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213201', 'tblTempUsageDetail_20' ) start [2025-01-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213201', 'tblTempUsageDetail_20' ) end [2025-01-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213201', 'tblTempVendorCDR_20' ) start [2025-01-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213201', 'tblTempVendorCDR_20' ) end [2025-01-10 00:20:18] Production.INFO: ProcessCDR(1,14213201,1,1,2) [2025-01-10 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213201', 'tblTempUsageDetail_20' ) start [2025-01-10 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213201', 'tblTempUsageDetail_20' ) end [2025-01-10 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:20:21] Production.INFO: ==20953== Releasing lock... [2025-01-10 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:21:05 [end_date_ymd] => 2025-01-10 00:21:05 [RateCDR] => 1 ) [2025-01-10 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:21:05' and `end` < '2025-01-10 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:21:18] Production.INFO: count ==127 [2025-01-10 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:21:05 - End Time 2025-01-10 00:21:05 [2025-01-10 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213209', 'tblTempUsageDetail_20' ) start [2025-01-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213209', 'tblTempUsageDetail_20' ) end [2025-01-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213209', 'tblTempVendorCDR_20' ) start [2025-01-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213209', 'tblTempVendorCDR_20' ) end [2025-01-10 00:21:18] Production.INFO: ProcessCDR(1,14213209,1,1,2) [2025-01-10 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213209', 'tblTempUsageDetail_20' ) start [2025-01-10 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213209', 'tblTempUsageDetail_20' ) end [2025-01-10 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:21:21] Production.INFO: ==21050== Releasing lock... [2025-01-10 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:22:05 [end_date_ymd] => 2025-01-10 00:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:22:05' and `end` < '2025-01-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-01-10 00:22:18] Production.INFO: count ==127 [2025-01-10 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:22:05 - End Time 2025-01-10 00:22:05 [2025-01-10 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213214', 'tblTempUsageDetail_20' ) start [2025-01-10 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213214', 'tblTempUsageDetail_20' ) end [2025-01-10 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213214', 'tblTempVendorCDR_20' ) start [2025-01-10 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213214', 'tblTempVendorCDR_20' ) end [2025-01-10 00:22:18] Production.INFO: ProcessCDR(1,14213214,1,1,2) [2025-01-10 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213214', 'tblTempUsageDetail_20' ) start [2025-01-10 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213214', 'tblTempUsageDetail_20' ) end [2025-01-10 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:22:22] Production.INFO: ==21147== Releasing lock... [2025-01-10 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:23:04 [end_date_ymd] => 2025-01-10 00:23:04 [RateCDR] => 1 ) [2025-01-10 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:23:04' and `end` < '2025-01-10 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:23:17] Production.INFO: count ==125 [2025-01-10 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:23:04 - End Time 2025-01-10 00:23:04 [2025-01-10 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213219', 'tblTempUsageDetail_20' ) start [2025-01-10 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213219', 'tblTempUsageDetail_20' ) end [2025-01-10 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213219', 'tblTempVendorCDR_20' ) start [2025-01-10 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213219', 'tblTempVendorCDR_20' ) end [2025-01-10 00:23:17] Production.INFO: ProcessCDR(1,14213219,1,1,2) [2025-01-10 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213219', 'tblTempUsageDetail_20' ) start [2025-01-10 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213219', 'tblTempUsageDetail_20' ) end [2025-01-10 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:23:21] Production.INFO: ==21244== Releasing lock... [2025-01-10 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:24:05 [end_date_ymd] => 2025-01-10 00:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:24:05' and `end` < '2025-01-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-01-10 00:24:18] Production.INFO: count ==123 [2025-01-10 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:24:05 - End Time 2025-01-10 00:24:05 [2025-01-10 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213224', 'tblTempUsageDetail_20' ) start [2025-01-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213224', 'tblTempUsageDetail_20' ) end [2025-01-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213224', 'tblTempVendorCDR_20' ) start [2025-01-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213224', 'tblTempVendorCDR_20' ) end [2025-01-10 00:24:18] Production.INFO: ProcessCDR(1,14213224,1,1,2) [2025-01-10 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213224', 'tblTempUsageDetail_20' ) start [2025-01-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213224', 'tblTempUsageDetail_20' ) end [2025-01-10 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:24:21] Production.INFO: ==21346== Releasing lock... [2025-01-10 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:25:05 [end_date_ymd] => 2025-01-10 00:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:25:05' and `end` < '2025-01-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-01-10 00:25:17] Production.INFO: count ==123 [2025-01-10 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:25:05 - End Time 2025-01-10 00:25:05 [2025-01-10 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213229', 'tblTempUsageDetail_20' ) start [2025-01-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213229', 'tblTempUsageDetail_20' ) end [2025-01-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213229', 'tblTempVendorCDR_20' ) start [2025-01-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213229', 'tblTempVendorCDR_20' ) end [2025-01-10 00:25:18] Production.INFO: ProcessCDR(1,14213229,1,1,2) [2025-01-10 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213229', 'tblTempUsageDetail_20' ) start [2025-01-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213229', 'tblTempUsageDetail_20' ) end [2025-01-10 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:25:21] Production.INFO: ==21437== Releasing lock... [2025-01-10 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:26:05 [end_date_ymd] => 2025-01-10 00:26:05 [RateCDR] => 1 ) [2025-01-10 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:26:05' and `end` < '2025-01-10 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:26:18] Production.INFO: count ==123 [2025-01-10 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:26:05 - End Time 2025-01-10 00:26:05 [2025-01-10 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213234', 'tblTempUsageDetail_20' ) start [2025-01-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213234', 'tblTempUsageDetail_20' ) end [2025-01-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213234', 'tblTempVendorCDR_20' ) start [2025-01-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213234', 'tblTempVendorCDR_20' ) end [2025-01-10 00:26:18] Production.INFO: ProcessCDR(1,14213234,1,1,2) [2025-01-10 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213234', 'tblTempUsageDetail_20' ) start [2025-01-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213234', 'tblTempUsageDetail_20' ) end [2025-01-10 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:26:21] Production.INFO: ==21543== Releasing lock... [2025-01-10 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:27:05 [end_date_ymd] => 2025-01-10 00:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:27:05' and `end` < '2025-01-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-01-10 00:27:18] Production.INFO: count ==123 [2025-01-10 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:27:05 - End Time 2025-01-10 00:27:05 [2025-01-10 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213239', 'tblTempUsageDetail_20' ) start [2025-01-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213239', 'tblTempUsageDetail_20' ) end [2025-01-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213239', 'tblTempVendorCDR_20' ) start [2025-01-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213239', 'tblTempVendorCDR_20' ) end [2025-01-10 00:27:18] Production.INFO: ProcessCDR(1,14213239,1,1,2) [2025-01-10 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213239', 'tblTempUsageDetail_20' ) start [2025-01-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213239', 'tblTempUsageDetail_20' ) end [2025-01-10 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:27:21] Production.INFO: ==21631== Releasing lock... [2025-01-10 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:28:05 [end_date_ymd] => 2025-01-10 00:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:28:05' and `end` < '2025-01-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-01-10 00:28:18] Production.INFO: count ==123 [2025-01-10 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:28:05 - End Time 2025-01-10 00:28:05 [2025-01-10 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213244', 'tblTempUsageDetail_20' ) start [2025-01-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213244', 'tblTempUsageDetail_20' ) end [2025-01-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213244', 'tblTempVendorCDR_20' ) start [2025-01-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213244', 'tblTempVendorCDR_20' ) end [2025-01-10 00:28:18] Production.INFO: ProcessCDR(1,14213244,1,1,2) [2025-01-10 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213244', 'tblTempUsageDetail_20' ) start [2025-01-10 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213244', 'tblTempUsageDetail_20' ) end [2025-01-10 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:28:21] Production.INFO: ==21742== Releasing lock... [2025-01-10 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:29:05 [end_date_ymd] => 2025-01-10 00:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:29:05' and `end` < '2025-01-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-01-10 00:29:18] Production.INFO: count ==123 [2025-01-10 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:29:05 - End Time 2025-01-10 00:29:05 [2025-01-10 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213249', 'tblTempUsageDetail_20' ) start [2025-01-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213249', 'tblTempUsageDetail_20' ) end [2025-01-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213249', 'tblTempVendorCDR_20' ) start [2025-01-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213249', 'tblTempVendorCDR_20' ) end [2025-01-10 00:29:18] Production.INFO: ProcessCDR(1,14213249,1,1,2) [2025-01-10 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213249', 'tblTempUsageDetail_20' ) start [2025-01-10 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213249', 'tblTempUsageDetail_20' ) end [2025-01-10 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:29:21] Production.INFO: ==21818== Releasing lock... [2025-01-10 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:30:05 [end_date_ymd] => 2025-01-10 00:30:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:30:05' and `end` < '2025-01-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-01-10 00:30:18] Production.INFO: count ==129 [2025-01-10 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:30:05 - End Time 2025-01-10 00:30:05 [2025-01-10 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213255', 'tblTempUsageDetail_20' ) start [2025-01-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213255', 'tblTempUsageDetail_20' ) end [2025-01-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213255', 'tblTempVendorCDR_20' ) start [2025-01-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213255', 'tblTempVendorCDR_20' ) end [2025-01-10 00:30:18] Production.INFO: ProcessCDR(1,14213255,1,1,2) [2025-01-10 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213255', 'tblTempUsageDetail_20' ) start [2025-01-10 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213255', 'tblTempUsageDetail_20' ) end [2025-01-10 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:30:21] Production.INFO: ==21927== Releasing lock... [2025-01-10 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:31:05 [end_date_ymd] => 2025-01-10 00:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:31:05' and `end` < '2025-01-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-01-10 00:31:18] Production.INFO: count ==141 [2025-01-10 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:31:05 - End Time 2025-01-10 00:31:05 [2025-01-10 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213260', 'tblTempUsageDetail_20' ) start [2025-01-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213260', 'tblTempUsageDetail_20' ) end [2025-01-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213260', 'tblTempVendorCDR_20' ) start [2025-01-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213260', 'tblTempVendorCDR_20' ) end [2025-01-10 00:31:18] Production.INFO: ProcessCDR(1,14213260,1,1,2) [2025-01-10 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213260', 'tblTempUsageDetail_20' ) start [2025-01-10 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213260', 'tblTempUsageDetail_20' ) end [2025-01-10 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:31:22] Production.INFO: ==22046== Releasing lock... [2025-01-10 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:32:04 [end_date_ymd] => 2025-01-10 00:32:04 [RateCDR] => 1 ) [2025-01-10 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:32:04' and `end` < '2025-01-10 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:32:17] Production.INFO: count ==141 [2025-01-10 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:32:04 - End Time 2025-01-10 00:32:04 [2025-01-10 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213265', 'tblTempUsageDetail_20' ) start [2025-01-10 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213265', 'tblTempUsageDetail_20' ) end [2025-01-10 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213265', 'tblTempVendorCDR_20' ) start [2025-01-10 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213265', 'tblTempVendorCDR_20' ) end [2025-01-10 00:32:17] Production.INFO: ProcessCDR(1,14213265,1,1,2) [2025-01-10 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213265', 'tblTempUsageDetail_20' ) start [2025-01-10 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213265', 'tblTempUsageDetail_20' ) end [2025-01-10 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:32:21] Production.INFO: ==22140== Releasing lock... [2025-01-10 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:33:05 [end_date_ymd] => 2025-01-10 00:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:33:05' and `end` < '2025-01-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-01-10 00:33:18] Production.INFO: count ==144 [2025-01-10 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:33:05 - End Time 2025-01-10 00:33:05 [2025-01-10 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213270', 'tblTempUsageDetail_20' ) start [2025-01-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213270', 'tblTempUsageDetail_20' ) end [2025-01-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213270', 'tblTempVendorCDR_20' ) start [2025-01-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213270', 'tblTempVendorCDR_20' ) end [2025-01-10 00:33:18] Production.INFO: ProcessCDR(1,14213270,1,1,2) [2025-01-10 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213270', 'tblTempUsageDetail_20' ) start [2025-01-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213270', 'tblTempUsageDetail_20' ) end [2025-01-10 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:33:21] Production.INFO: ==22221== Releasing lock... [2025-01-10 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:34:04 [end_date_ymd] => 2025-01-10 00:34:04 [RateCDR] => 1 ) [2025-01-10 00:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:34:04' and `end` < '2025-01-10 00:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:34:18] Production.INFO: count ==144 [2025-01-10 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:34:04 - End Time 2025-01-10 00:34:04 [2025-01-10 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213275', 'tblTempUsageDetail_20' ) start [2025-01-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213275', 'tblTempUsageDetail_20' ) end [2025-01-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213275', 'tblTempVendorCDR_20' ) start [2025-01-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213275', 'tblTempVendorCDR_20' ) end [2025-01-10 00:34:18] Production.INFO: ProcessCDR(1,14213275,1,1,2) [2025-01-10 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213275', 'tblTempUsageDetail_20' ) start [2025-01-10 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213275', 'tblTempUsageDetail_20' ) end [2025-01-10 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:34:21] Production.INFO: ==22325== Releasing lock... [2025-01-10 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:35:05 [end_date_ymd] => 2025-01-10 00:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:35:05' and `end` < '2025-01-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-01-10 00:35:18] Production.INFO: count ==144 [2025-01-10 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:35:05 - End Time 2025-01-10 00:35:05 [2025-01-10 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213280', 'tblTempUsageDetail_20' ) start [2025-01-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213280', 'tblTempUsageDetail_20' ) end [2025-01-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213280', 'tblTempVendorCDR_20' ) start [2025-01-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213280', 'tblTempVendorCDR_20' ) end [2025-01-10 00:35:18] Production.INFO: ProcessCDR(1,14213280,1,1,2) [2025-01-10 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213280', 'tblTempUsageDetail_20' ) start [2025-01-10 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213280', 'tblTempUsageDetail_20' ) end [2025-01-10 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:35:21] Production.INFO: ==22404== Releasing lock... [2025-01-10 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:36:05 [end_date_ymd] => 2025-01-10 00:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:36:05' and `end` < '2025-01-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-01-10 00:36:18] Production.INFO: count ==144 [2025-01-10 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:36:05 - End Time 2025-01-10 00:36:05 [2025-01-10 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213285', 'tblTempUsageDetail_20' ) start [2025-01-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213285', 'tblTempUsageDetail_20' ) end [2025-01-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213285', 'tblTempVendorCDR_20' ) start [2025-01-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213285', 'tblTempVendorCDR_20' ) end [2025-01-10 00:36:18] Production.INFO: ProcessCDR(1,14213285,1,1,2) [2025-01-10 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213285', 'tblTempUsageDetail_20' ) start [2025-01-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213285', 'tblTempUsageDetail_20' ) end [2025-01-10 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:36:21] Production.INFO: ==22504== Releasing lock... [2025-01-10 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:37:05 [end_date_ymd] => 2025-01-10 00:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:37:05' and `end` < '2025-01-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-01-10 00:37:18] Production.INFO: count ==143 [2025-01-10 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:37:05 - End Time 2025-01-10 00:37:05 [2025-01-10 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213290', 'tblTempUsageDetail_20' ) start [2025-01-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213290', 'tblTempUsageDetail_20' ) end [2025-01-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213290', 'tblTempVendorCDR_20' ) start [2025-01-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213290', 'tblTempVendorCDR_20' ) end [2025-01-10 00:37:18] Production.INFO: ProcessCDR(1,14213290,1,1,2) [2025-01-10 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213290', 'tblTempUsageDetail_20' ) start [2025-01-10 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213290', 'tblTempUsageDetail_20' ) end [2025-01-10 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:37:21] Production.INFO: ==22585== Releasing lock... [2025-01-10 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:38:05 [end_date_ymd] => 2025-01-10 00:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:38:05' and `end` < '2025-01-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-01-10 00:38:18] Production.INFO: count ==143 [2025-01-10 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:38:05 - End Time 2025-01-10 00:38:05 [2025-01-10 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213295', 'tblTempUsageDetail_20' ) start [2025-01-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213295', 'tblTempUsageDetail_20' ) end [2025-01-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213295', 'tblTempVendorCDR_20' ) start [2025-01-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213295', 'tblTempVendorCDR_20' ) end [2025-01-10 00:38:18] Production.INFO: ProcessCDR(1,14213295,1,1,2) [2025-01-10 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213295', 'tblTempUsageDetail_20' ) start [2025-01-10 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213295', 'tblTempUsageDetail_20' ) end [2025-01-10 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:38:21] Production.INFO: ==22678== Releasing lock... [2025-01-10 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:39:04 [end_date_ymd] => 2025-01-10 00:39:04 [RateCDR] => 1 ) [2025-01-10 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:39:04' and `end` < '2025-01-10 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:39:17] Production.INFO: count ==143 [2025-01-10 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:39:04 - End Time 2025-01-10 00:39:04 [2025-01-10 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213300', 'tblTempUsageDetail_20' ) start [2025-01-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213300', 'tblTempUsageDetail_20' ) end [2025-01-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213300', 'tblTempVendorCDR_20' ) start [2025-01-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213300', 'tblTempVendorCDR_20' ) end [2025-01-10 00:39:17] Production.INFO: ProcessCDR(1,14213300,1,1,2) [2025-01-10 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213300', 'tblTempUsageDetail_20' ) start [2025-01-10 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213300', 'tblTempUsageDetail_20' ) end [2025-01-10 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:39:21] Production.INFO: ==22755== Releasing lock... [2025-01-10 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:40:06 [end_date_ymd] => 2025-01-10 00:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 21:40:06' and `end` < '2025-01-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-01-10 00:40:19] Production.INFO: count ==151 [2025-01-10 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:40:06 - End Time 2025-01-10 00:40:06 [2025-01-10 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213305', 'tblTempUsageDetail_20' ) start [2025-01-10 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213305', 'tblTempUsageDetail_20' ) end [2025-01-10 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213305', 'tblTempVendorCDR_20' ) start [2025-01-10 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213305', 'tblTempVendorCDR_20' ) end [2025-01-10 00:40:19] Production.INFO: ProcessCDR(1,14213305,1,1,2) [2025-01-10 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213305', 'tblTempUsageDetail_20' ) start [2025-01-10 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213305', 'tblTempUsageDetail_20' ) end [2025-01-10 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:40:22] Production.INFO: ==22828== Releasing lock... [2025-01-10 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:41:05 [end_date_ymd] => 2025-01-10 00:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:41:05' and `end` < '2025-01-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-01-10 00:41:18] Production.INFO: count ==157 [2025-01-10 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:41:05 - End Time 2025-01-10 00:41:05 [2025-01-10 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213311', 'tblTempUsageDetail_20' ) start [2025-01-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213311', 'tblTempUsageDetail_20' ) end [2025-01-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213311', 'tblTempVendorCDR_20' ) start [2025-01-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213311', 'tblTempVendorCDR_20' ) end [2025-01-10 00:41:18] Production.INFO: ProcessCDR(1,14213311,1,1,2) [2025-01-10 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213311', 'tblTempUsageDetail_20' ) start [2025-01-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213311', 'tblTempUsageDetail_20' ) end [2025-01-10 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:41:21] Production.INFO: ==22903== Releasing lock... [2025-01-10 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:42:05 [end_date_ymd] => 2025-01-10 00:42:05 [RateCDR] => 1 ) [2025-01-10 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:42:05' and `end` < '2025-01-10 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:42:18] Production.INFO: count ==157 [2025-01-10 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:42:05 - End Time 2025-01-10 00:42:05 [2025-01-10 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213316', 'tblTempUsageDetail_20' ) start [2025-01-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213316', 'tblTempUsageDetail_20' ) end [2025-01-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213316', 'tblTempVendorCDR_20' ) start [2025-01-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213316', 'tblTempVendorCDR_20' ) end [2025-01-10 00:42:18] Production.INFO: ProcessCDR(1,14213316,1,1,2) [2025-01-10 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213316', 'tblTempUsageDetail_20' ) start [2025-01-10 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213316', 'tblTempUsageDetail_20' ) end [2025-01-10 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:42:21] Production.INFO: ==22973== Releasing lock... [2025-01-10 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:43:05 [end_date_ymd] => 2025-01-10 00:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:43:05' and `end` < '2025-01-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-01-10 00:43:19] Production.INFO: count ==157 [2025-01-10 00:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:43:05 - End Time 2025-01-10 00:43:05 [2025-01-10 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213321', 'tblTempUsageDetail_20' ) start [2025-01-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213321', 'tblTempUsageDetail_20' ) end [2025-01-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213321', 'tblTempVendorCDR_20' ) start [2025-01-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213321', 'tblTempVendorCDR_20' ) end [2025-01-10 00:43:19] Production.INFO: ProcessCDR(1,14213321,1,1,2) [2025-01-10 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213321', 'tblTempUsageDetail_20' ) start [2025-01-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213321', 'tblTempUsageDetail_20' ) end [2025-01-10 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:43:22] Production.INFO: ==23046== Releasing lock... [2025-01-10 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:44:05 [end_date_ymd] => 2025-01-10 00:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:44:05' and `end` < '2025-01-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-01-10 00:44:18] Production.INFO: count ==155 [2025-01-10 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:44:05 - End Time 2025-01-10 00:44:05 [2025-01-10 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213326', 'tblTempUsageDetail_20' ) start [2025-01-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213326', 'tblTempUsageDetail_20' ) end [2025-01-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213326', 'tblTempVendorCDR_20' ) start [2025-01-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213326', 'tblTempVendorCDR_20' ) end [2025-01-10 00:44:18] Production.INFO: ProcessCDR(1,14213326,1,1,2) [2025-01-10 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213326', 'tblTempUsageDetail_20' ) start [2025-01-10 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213326', 'tblTempUsageDetail_20' ) end [2025-01-10 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:44:21] Production.INFO: ==23117== Releasing lock... [2025-01-10 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:45:05 [end_date_ymd] => 2025-01-10 00:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:45:05' and `end` < '2025-01-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-01-10 00:45:18] Production.INFO: count ==155 [2025-01-10 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:45:05 - End Time 2025-01-10 00:45:05 [2025-01-10 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213331', 'tblTempUsageDetail_20' ) start [2025-01-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213331', 'tblTempUsageDetail_20' ) end [2025-01-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213331', 'tblTempVendorCDR_20' ) start [2025-01-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213331', 'tblTempVendorCDR_20' ) end [2025-01-10 00:45:18] Production.INFO: ProcessCDR(1,14213331,1,1,2) [2025-01-10 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213331', 'tblTempUsageDetail_20' ) start [2025-01-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213331', 'tblTempUsageDetail_20' ) end [2025-01-10 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:45:21] Production.INFO: ==23186== Releasing lock... [2025-01-10 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:46:04 [end_date_ymd] => 2025-01-10 00:46:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:46:04' and `end` < '2025-01-10 00: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-01-10 00:46:17] Production.INFO: count ==154 [2025-01-10 00:46:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:46:04 - End Time 2025-01-10 00:46:04 [2025-01-10 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213336', 'tblTempUsageDetail_20' ) start [2025-01-10 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213336', 'tblTempUsageDetail_20' ) end [2025-01-10 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213336', 'tblTempVendorCDR_20' ) start [2025-01-10 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213336', 'tblTempVendorCDR_20' ) end [2025-01-10 00:46:17] Production.INFO: ProcessCDR(1,14213336,1,1,2) [2025-01-10 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213336', 'tblTempUsageDetail_20' ) start [2025-01-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213336', 'tblTempUsageDetail_20' ) end [2025-01-10 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:46:21] Production.INFO: ==23295== Releasing lock... [2025-01-10 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:47:05 [end_date_ymd] => 2025-01-10 00:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:47:05' and `end` < '2025-01-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-01-10 00:47:18] Production.INFO: count ==152 [2025-01-10 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:47:05 - End Time 2025-01-10 00:47:05 [2025-01-10 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213341', 'tblTempUsageDetail_20' ) start [2025-01-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213341', 'tblTempUsageDetail_20' ) end [2025-01-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213341', 'tblTempVendorCDR_20' ) start [2025-01-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213341', 'tblTempVendorCDR_20' ) end [2025-01-10 00:47:18] Production.INFO: ProcessCDR(1,14213341,1,1,2) [2025-01-10 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213341', 'tblTempUsageDetail_20' ) start [2025-01-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213341', 'tblTempUsageDetail_20' ) end [2025-01-10 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:47:21] Production.INFO: ==23367== Releasing lock... [2025-01-10 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:48:04 [end_date_ymd] => 2025-01-10 00:48:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:48:04' and `end` < '2025-01-10 00: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-01-10 00:48:17] Production.INFO: count ==151 [2025-01-10 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:48:04 - End Time 2025-01-10 00:48:04 [2025-01-10 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213346', 'tblTempUsageDetail_20' ) start [2025-01-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213346', 'tblTempUsageDetail_20' ) end [2025-01-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213346', 'tblTempVendorCDR_20' ) start [2025-01-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213346', 'tblTempVendorCDR_20' ) end [2025-01-10 00:48:17] Production.INFO: ProcessCDR(1,14213346,1,1,2) [2025-01-10 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213346', 'tblTempUsageDetail_20' ) start [2025-01-10 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213346', 'tblTempUsageDetail_20' ) end [2025-01-10 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:48:20] Production.INFO: ==23445== Releasing lock... [2025-01-10 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:49:05 [end_date_ymd] => 2025-01-10 00:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:49:05' and `end` < '2025-01-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-01-10 00:49:19] Production.INFO: count ==150 [2025-01-10 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:49:05 - End Time 2025-01-10 00:49:05 [2025-01-10 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213351', 'tblTempUsageDetail_20' ) start [2025-01-10 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213351', 'tblTempUsageDetail_20' ) end [2025-01-10 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213351', 'tblTempVendorCDR_20' ) start [2025-01-10 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213351', 'tblTempVendorCDR_20' ) end [2025-01-10 00:49:19] Production.INFO: ProcessCDR(1,14213351,1,1,2) [2025-01-10 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213351', 'tblTempUsageDetail_20' ) start [2025-01-10 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213351', 'tblTempUsageDetail_20' ) end [2025-01-10 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:49:22] Production.INFO: ==23516== Releasing lock... [2025-01-10 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:50:05 [end_date_ymd] => 2025-01-10 00:50:05 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:50:05' and `end` < '2025-01-10 00: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-01-10 00:50:18] Production.INFO: count ==156 [2025-01-10 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:50:05 - End Time 2025-01-10 00:50:05 [2025-01-10 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213357', 'tblTempUsageDetail_20' ) start [2025-01-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213357', 'tblTempUsageDetail_20' ) end [2025-01-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213357', 'tblTempVendorCDR_20' ) start [2025-01-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213357', 'tblTempVendorCDR_20' ) end [2025-01-10 00:50:18] Production.INFO: ProcessCDR(1,14213357,1,1,2) [2025-01-10 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213357', 'tblTempUsageDetail_20' ) start [2025-01-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213357', 'tblTempUsageDetail_20' ) end [2025-01-10 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:50:22] Production.INFO: ==23589== Releasing lock... [2025-01-10 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:51:05 [end_date_ymd] => 2025-01-10 00:51:05 [RateCDR] => 1 ) [2025-01-10 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:51:05' and `end` < '2025-01-10 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:51:18] Production.INFO: count ==156 [2025-01-10 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:51:05 - End Time 2025-01-10 00:51:05 [2025-01-10 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213362', 'tblTempUsageDetail_20' ) start [2025-01-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213362', 'tblTempUsageDetail_20' ) end [2025-01-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213362', 'tblTempVendorCDR_20' ) start [2025-01-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213362', 'tblTempVendorCDR_20' ) end [2025-01-10 00:51:18] Production.INFO: ProcessCDR(1,14213362,1,1,2) [2025-01-10 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213362', 'tblTempUsageDetail_20' ) start [2025-01-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213362', 'tblTempUsageDetail_20' ) end [2025-01-10 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:51:21] Production.INFO: ==23662== Releasing lock... [2025-01-10 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:52:05 [end_date_ymd] => 2025-01-10 00:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:52:05' and `end` < '2025-01-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-01-10 00:52:19] Production.INFO: count ==154 [2025-01-10 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:52:05 - End Time 2025-01-10 00:52:05 [2025-01-10 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213367', 'tblTempUsageDetail_20' ) start [2025-01-10 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213367', 'tblTempUsageDetail_20' ) end [2025-01-10 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213367', 'tblTempVendorCDR_20' ) start [2025-01-10 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213367', 'tblTempVendorCDR_20' ) end [2025-01-10 00:52:19] Production.INFO: ProcessCDR(1,14213367,1,1,2) [2025-01-10 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213367', 'tblTempUsageDetail_20' ) start [2025-01-10 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213367', 'tblTempUsageDetail_20' ) end [2025-01-10 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:52:22] Production.INFO: ==23732== Releasing lock... [2025-01-10 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:53:05 [end_date_ymd] => 2025-01-10 00:53:05 [RateCDR] => 1 ) [2025-01-10 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:53:05' and `end` < '2025-01-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-01-10 00:53:19] Production.INFO: count ==154 [2025-01-10 00:53:19] Production.ERROR: pbx CDR StartTime 2025-01-09 21:53:05 - End Time 2025-01-10 00:53:05 [2025-01-10 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213372', 'tblTempUsageDetail_20' ) start [2025-01-10 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213372', 'tblTempUsageDetail_20' ) end [2025-01-10 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213372', 'tblTempVendorCDR_20' ) start [2025-01-10 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213372', 'tblTempVendorCDR_20' ) end [2025-01-10 00:53:19] Production.INFO: ProcessCDR(1,14213372,1,1,2) [2025-01-10 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213372', 'tblTempUsageDetail_20' ) start [2025-01-10 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213372', 'tblTempUsageDetail_20' ) end [2025-01-10 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:53:22] Production.INFO: ==23803== Releasing lock... [2025-01-10 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:54:04 [end_date_ymd] => 2025-01-10 00:54:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:54:04' and `end` < '2025-01-10 00: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-01-10 00:54:17] Production.INFO: count ==154 [2025-01-10 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-09 21:54:04 - End Time 2025-01-10 00:54:04 [2025-01-10 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213377', 'tblTempUsageDetail_20' ) start [2025-01-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213377', 'tblTempUsageDetail_20' ) end [2025-01-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213377', 'tblTempVendorCDR_20' ) start [2025-01-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213377', 'tblTempVendorCDR_20' ) end [2025-01-10 00:54:17] Production.INFO: ProcessCDR(1,14213377,1,1,2) [2025-01-10 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213377', 'tblTempUsageDetail_20' ) start [2025-01-10 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213377', 'tblTempUsageDetail_20' ) end [2025-01-10 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:54:20] Production.INFO: ==23874== Releasing lock... [2025-01-10 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:55:05 [end_date_ymd] => 2025-01-10 00:55:05 [RateCDR] => 1 ) [2025-01-10 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:55:05' and `end` < '2025-01-10 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:55:18] Production.INFO: count ==152 [2025-01-10 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:55:05 - End Time 2025-01-10 00:55:05 [2025-01-10 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213382', 'tblTempUsageDetail_20' ) start [2025-01-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213382', 'tblTempUsageDetail_20' ) end [2025-01-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213382', 'tblTempVendorCDR_20' ) start [2025-01-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213382', 'tblTempVendorCDR_20' ) end [2025-01-10 00:55:18] Production.INFO: ProcessCDR(1,14213382,1,1,2) [2025-01-10 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213382', 'tblTempUsageDetail_20' ) start [2025-01-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213382', 'tblTempUsageDetail_20' ) end [2025-01-10 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:55:21] Production.INFO: ==23944== Releasing lock... [2025-01-10 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:56:04 [end_date_ymd] => 2025-01-10 00:56:04 [RateCDR] => 1 ) [2025-01-10 00: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-01-09 21:56:04' and `end` < '2025-01-10 00: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-01-10 00:56:20] Production.INFO: count ==151 [2025-01-10 00:56:20] Production.ERROR: pbx CDR StartTime 2025-01-09 21:56:04 - End Time 2025-01-10 00:56:04 [2025-01-10 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213387', 'tblTempUsageDetail_20' ) start [2025-01-10 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213387', 'tblTempUsageDetail_20' ) end [2025-01-10 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213387', 'tblTempVendorCDR_20' ) start [2025-01-10 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213387', 'tblTempVendorCDR_20' ) end [2025-01-10 00:56:20] Production.INFO: ProcessCDR(1,14213387,1,1,2) [2025-01-10 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213387', 'tblTempUsageDetail_20' ) start [2025-01-10 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213387', 'tblTempUsageDetail_20' ) end [2025-01-10 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:56:23] Production.INFO: ==24012== Releasing lock... [2025-01-10 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:57:05 [end_date_ymd] => 2025-01-10 00:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:57:05' and `end` < '2025-01-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-01-10 00:57:18] Production.INFO: count ==151 [2025-01-10 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 21:57:05 - End Time 2025-01-10 00:57:05 [2025-01-10 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213392', 'tblTempUsageDetail_20' ) start [2025-01-10 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213392', 'tblTempUsageDetail_20' ) end [2025-01-10 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213392', 'tblTempVendorCDR_20' ) start [2025-01-10 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213392', 'tblTempVendorCDR_20' ) end [2025-01-10 00:57:18] Production.INFO: ProcessCDR(1,14213392,1,1,2) [2025-01-10 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213392', 'tblTempUsageDetail_20' ) start [2025-01-10 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213392', 'tblTempUsageDetail_20' ) end [2025-01-10 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:57:21] Production.INFO: ==24085== Releasing lock... [2025-01-10 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:58:05 [end_date_ymd] => 2025-01-10 00:58:05 [RateCDR] => 1 ) [2025-01-10 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 21:58:05' and `end` < '2025-01-10 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 00:58:20] Production.INFO: count ==151 [2025-01-10 00:58:20] Production.ERROR: pbx CDR StartTime 2025-01-09 21:58:05 - End Time 2025-01-10 00:58:05 [2025-01-10 00:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213397', 'tblTempUsageDetail_20' ) start [2025-01-10 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213397', 'tblTempUsageDetail_20' ) end [2025-01-10 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213397', 'tblTempVendorCDR_20' ) start [2025-01-10 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213397', 'tblTempVendorCDR_20' ) end [2025-01-10 00:58:20] Production.INFO: ProcessCDR(1,14213397,1,1,2) [2025-01-10 00:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213397', 'tblTempUsageDetail_20' ) start [2025-01-10 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213397', 'tblTempUsageDetail_20' ) end [2025-01-10 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:58:24] Production.INFO: ==24155== Releasing lock... [2025-01-10 00:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:58:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 21:59:05 [end_date_ymd] => 2025-01-10 00:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 21:59:05' and `end` < '2025-01-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-01-10 00:59:20] Production.INFO: count ==151 [2025-01-10 00:59:20] Production.ERROR: pbx CDR StartTime 2025-01-09 21:59:05 - End Time 2025-01-10 00:59:05 [2025-01-10 00:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213402', 'tblTempUsageDetail_20' ) start [2025-01-10 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213402', 'tblTempUsageDetail_20' ) end [2025-01-10 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213402', 'tblTempVendorCDR_20' ) start [2025-01-10 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213402', 'tblTempVendorCDR_20' ) end [2025-01-10 00:59:20] Production.INFO: ProcessCDR(1,14213402,1,1,2) [2025-01-10 00:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213402', 'tblTempUsageDetail_20' ) start [2025-01-10 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213402', 'tblTempUsageDetail_20' ) end [2025-01-10 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 00:59:23] Production.INFO: ==24225== Releasing lock... [2025-01-10 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 00:59:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:00:06 [end_date_ymd] => 2025-01-10 01:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 22:00:06' and `end` < '2025-01-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-01-10 01:00:20] Production.INFO: count ==157 [2025-01-10 01:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:00:06 - End Time 2025-01-10 01:00:06 [2025-01-10 01:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213408', 'tblTempUsageDetail_20' ) start [2025-01-10 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213408', 'tblTempUsageDetail_20' ) end [2025-01-10 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213408', 'tblTempVendorCDR_20' ) start [2025-01-10 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213408', 'tblTempVendorCDR_20' ) end [2025-01-10 01:00:20] Production.INFO: ProcessCDR(1,14213408,1,1,2) [2025-01-10 01:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213408', 'tblTempUsageDetail_20' ) start [2025-01-10 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213408', 'tblTempUsageDetail_20' ) end [2025-01-10 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:00:23] Production.INFO: ==24298== Releasing lock... [2025-01-10 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:01:05 [end_date_ymd] => 2025-01-10 01:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:01:05' and `end` < '2025-01-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-01-10 01:01:19] Production.INFO: count ==164 [2025-01-10 01:01:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:01:05 - End Time 2025-01-10 01:01:05 [2025-01-10 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213413', 'tblTempUsageDetail_20' ) start [2025-01-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213413', 'tblTempUsageDetail_20' ) end [2025-01-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213413', 'tblTempVendorCDR_20' ) start [2025-01-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213413', 'tblTempVendorCDR_20' ) end [2025-01-10 01:01:19] Production.INFO: ProcessCDR(1,14213413,1,1,2) [2025-01-10 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213413', 'tblTempUsageDetail_20' ) start [2025-01-10 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213413', 'tblTempUsageDetail_20' ) end [2025-01-10 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:01:22] Production.INFO: ==24387== Releasing lock... [2025-01-10 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:02:05 [end_date_ymd] => 2025-01-10 01:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:02:05' and `end` < '2025-01-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-01-10 01:02:18] Production.INFO: count ==164 [2025-01-10 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:02:05 - End Time 2025-01-10 01:02:05 [2025-01-10 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213418', 'tblTempUsageDetail_20' ) start [2025-01-10 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213418', 'tblTempUsageDetail_20' ) end [2025-01-10 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213418', 'tblTempVendorCDR_20' ) start [2025-01-10 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213418', 'tblTempVendorCDR_20' ) end [2025-01-10 01:02:18] Production.INFO: ProcessCDR(1,14213418,1,1,2) [2025-01-10 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213418', 'tblTempUsageDetail_20' ) start [2025-01-10 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213418', 'tblTempUsageDetail_20' ) end [2025-01-10 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:02:21] Production.INFO: ==24499== Releasing lock... [2025-01-10 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:03:05 [end_date_ymd] => 2025-01-10 01:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:03:05' and `end` < '2025-01-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-01-10 01:03:19] Production.INFO: count ==164 [2025-01-10 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:03:05 - End Time 2025-01-10 01:03:05 [2025-01-10 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213423', 'tblTempUsageDetail_20' ) start [2025-01-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213423', 'tblTempUsageDetail_20' ) end [2025-01-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213423', 'tblTempVendorCDR_20' ) start [2025-01-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213423', 'tblTempVendorCDR_20' ) end [2025-01-10 01:03:19] Production.INFO: ProcessCDR(1,14213423,1,1,2) [2025-01-10 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213423', 'tblTempUsageDetail_20' ) start [2025-01-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213423', 'tblTempUsageDetail_20' ) end [2025-01-10 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:03:22] Production.INFO: ==24568== Releasing lock... [2025-01-10 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:04:05 [end_date_ymd] => 2025-01-10 01:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:04:05' and `end` < '2025-01-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-01-10 01:04:21] Production.INFO: count ==164 [2025-01-10 01:04:21] Production.ERROR: pbx CDR StartTime 2025-01-09 22:04:05 - End Time 2025-01-10 01:04:05 [2025-01-10 01:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213428', 'tblTempUsageDetail_20' ) start [2025-01-10 01:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213428', 'tblTempUsageDetail_20' ) end [2025-01-10 01:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213428', 'tblTempVendorCDR_20' ) start [2025-01-10 01:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213428', 'tblTempVendorCDR_20' ) end [2025-01-10 01:04:21] Production.INFO: ProcessCDR(1,14213428,1,1,2) [2025-01-10 01:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213428', 'tblTempUsageDetail_20' ) start [2025-01-10 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213428', 'tblTempUsageDetail_20' ) end [2025-01-10 01:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:04:24] Production.INFO: ==24638== Releasing lock... [2025-01-10 01:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:05:04 [end_date_ymd] => 2025-01-10 01:05:04 [RateCDR] => 1 ) [2025-01-10 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:05:04' and `end` < '2025-01-10 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:05:17] Production.INFO: count ==162 [2025-01-10 01:05:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:05:04 - End Time 2025-01-10 01:05:04 [2025-01-10 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213433', 'tblTempUsageDetail_20' ) start [2025-01-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213433', 'tblTempUsageDetail_20' ) end [2025-01-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213433', 'tblTempVendorCDR_20' ) start [2025-01-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213433', 'tblTempVendorCDR_20' ) end [2025-01-10 01:05:17] Production.INFO: ProcessCDR(1,14213433,1,1,2) [2025-01-10 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213433', 'tblTempUsageDetail_20' ) start [2025-01-10 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213433', 'tblTempUsageDetail_20' ) end [2025-01-10 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:05:20] Production.INFO: ==24710== Releasing lock... [2025-01-10 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:05:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:06:05 [end_date_ymd] => 2025-01-10 01:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:06:05' and `end` < '2025-01-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-01-10 01:06:18] Production.INFO: count ==162 [2025-01-10 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:06:05 - End Time 2025-01-10 01:06:05 [2025-01-10 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213438', 'tblTempUsageDetail_20' ) start [2025-01-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213438', 'tblTempUsageDetail_20' ) end [2025-01-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213438', 'tblTempVendorCDR_20' ) start [2025-01-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213438', 'tblTempVendorCDR_20' ) end [2025-01-10 01:06:18] Production.INFO: ProcessCDR(1,14213438,1,1,2) [2025-01-10 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213438', 'tblTempUsageDetail_20' ) start [2025-01-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213438', 'tblTempUsageDetail_20' ) end [2025-01-10 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:06:21] Production.INFO: ==24780== Releasing lock... [2025-01-10 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:07:04 [end_date_ymd] => 2025-01-10 01:07:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:07:04' and `end` < '2025-01-10 01: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-01-10 01:07:19] Production.INFO: count ==161 [2025-01-10 01:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:07:04 - End Time 2025-01-10 01:07:04 [2025-01-10 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213443', 'tblTempUsageDetail_20' ) start [2025-01-10 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213443', 'tblTempUsageDetail_20' ) end [2025-01-10 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213443', 'tblTempVendorCDR_20' ) start [2025-01-10 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213443', 'tblTempVendorCDR_20' ) end [2025-01-10 01:07:19] Production.INFO: ProcessCDR(1,14213443,1,1,2) [2025-01-10 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213443', 'tblTempUsageDetail_20' ) start [2025-01-10 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213443', 'tblTempUsageDetail_20' ) end [2025-01-10 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:07:22] Production.INFO: ==24850== Releasing lock... [2025-01-10 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:08:04 [end_date_ymd] => 2025-01-10 01:08:04 [RateCDR] => 1 ) [2025-01-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-01-09 22:08:04' and `end` < '2025-01-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-01-10 01:08:20] Production.INFO: count ==161 [2025-01-10 01:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:08:04 - End Time 2025-01-10 01:08:04 [2025-01-10 01:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213448', 'tblTempUsageDetail_20' ) start [2025-01-10 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213448', 'tblTempUsageDetail_20' ) end [2025-01-10 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213448', 'tblTempVendorCDR_20' ) start [2025-01-10 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213448', 'tblTempVendorCDR_20' ) end [2025-01-10 01:08:20] Production.INFO: ProcessCDR(1,14213448,1,1,2) [2025-01-10 01:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213448', 'tblTempUsageDetail_20' ) start [2025-01-10 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213448', 'tblTempUsageDetail_20' ) end [2025-01-10 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:08:23] Production.INFO: ==24920== Releasing lock... [2025-01-10 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:09:05 [end_date_ymd] => 2025-01-10 01:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:09:05' and `end` < '2025-01-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-01-10 01:09:18] Production.INFO: count ==161 [2025-01-10 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:09:05 - End Time 2025-01-10 01:09:05 [2025-01-10 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213453', 'tblTempUsageDetail_20' ) start [2025-01-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213453', 'tblTempUsageDetail_20' ) end [2025-01-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213453', 'tblTempVendorCDR_20' ) start [2025-01-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213453', 'tblTempVendorCDR_20' ) end [2025-01-10 01:09:18] Production.INFO: ProcessCDR(1,14213453,1,1,2) [2025-01-10 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213453', 'tblTempUsageDetail_20' ) start [2025-01-10 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213453', 'tblTempUsageDetail_20' ) end [2025-01-10 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:09:21] Production.INFO: ==24990== Releasing lock... [2025-01-10 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:10:05 [end_date_ymd] => 2025-01-10 01:10:05 [RateCDR] => 1 ) [2025-01-10 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:10:05' and `end` < '2025-01-10 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:10:18] Production.INFO: count ==167 [2025-01-10 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:10:05 - End Time 2025-01-10 01:10:05 [2025-01-10 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213458', 'tblTempUsageDetail_20' ) start [2025-01-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213458', 'tblTempUsageDetail_20' ) end [2025-01-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213458', 'tblTempVendorCDR_20' ) start [2025-01-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213458', 'tblTempVendorCDR_20' ) end [2025-01-10 01:10:18] Production.INFO: ProcessCDR(1,14213458,1,1,2) [2025-01-10 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213458', 'tblTempUsageDetail_20' ) start [2025-01-10 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213458', 'tblTempUsageDetail_20' ) end [2025-01-10 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:10:21] Production.INFO: ==25061== Releasing lock... [2025-01-10 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:11:05 [end_date_ymd] => 2025-01-10 01:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:11:05' and `end` < '2025-01-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-01-10 01:11:18] Production.INFO: count ==167 [2025-01-10 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:11:05 - End Time 2025-01-10 01:11:05 [2025-01-10 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213464', 'tblTempUsageDetail_20' ) start [2025-01-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213464', 'tblTempUsageDetail_20' ) end [2025-01-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213464', 'tblTempVendorCDR_20' ) start [2025-01-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213464', 'tblTempVendorCDR_20' ) end [2025-01-10 01:11:18] Production.INFO: ProcessCDR(1,14213464,1,1,2) [2025-01-10 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213464', 'tblTempUsageDetail_20' ) start [2025-01-10 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213464', 'tblTempUsageDetail_20' ) end [2025-01-10 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:11:21] Production.INFO: ==25135== Releasing lock... [2025-01-10 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:12:05 [end_date_ymd] => 2025-01-10 01:12:05 [RateCDR] => 1 ) [2025-01-10 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:12:05' and `end` < '2025-01-10 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:12:17] Production.INFO: count ==167 [2025-01-10 01:12:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:12:05 - End Time 2025-01-10 01:12:05 [2025-01-10 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213469', 'tblTempUsageDetail_20' ) start [2025-01-10 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213469', 'tblTempUsageDetail_20' ) end [2025-01-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213469', 'tblTempVendorCDR_20' ) start [2025-01-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213469', 'tblTempVendorCDR_20' ) end [2025-01-10 01:12:18] Production.INFO: ProcessCDR(1,14213469,1,1,2) [2025-01-10 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213469', 'tblTempUsageDetail_20' ) start [2025-01-10 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213469', 'tblTempUsageDetail_20' ) end [2025-01-10 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:12:21] Production.INFO: ==25205== Releasing lock... [2025-01-10 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:13:05 [end_date_ymd] => 2025-01-10 01:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:13:05' and `end` < '2025-01-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-01-10 01:13:19] Production.INFO: count ==166 [2025-01-10 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:13:05 - End Time 2025-01-10 01:13:05 [2025-01-10 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213474', 'tblTempUsageDetail_20' ) start [2025-01-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213474', 'tblTempUsageDetail_20' ) end [2025-01-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213474', 'tblTempVendorCDR_20' ) start [2025-01-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213474', 'tblTempVendorCDR_20' ) end [2025-01-10 01:13:19] Production.INFO: ProcessCDR(1,14213474,1,1,2) [2025-01-10 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213474', 'tblTempUsageDetail_20' ) start [2025-01-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213474', 'tblTempUsageDetail_20' ) end [2025-01-10 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:13:22] Production.INFO: ==25274== Releasing lock... [2025-01-10 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:13:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:14:05 [end_date_ymd] => 2025-01-10 01:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:14:05' and `end` < '2025-01-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-01-10 01:14:18] Production.INFO: count ==165 [2025-01-10 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:14:05 - End Time 2025-01-10 01:14:05 [2025-01-10 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213479', 'tblTempUsageDetail_20' ) start [2025-01-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213479', 'tblTempUsageDetail_20' ) end [2025-01-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213479', 'tblTempVendorCDR_20' ) start [2025-01-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213479', 'tblTempVendorCDR_20' ) end [2025-01-10 01:14:18] Production.INFO: ProcessCDR(1,14213479,1,1,2) [2025-01-10 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213479', 'tblTempUsageDetail_20' ) start [2025-01-10 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213479', 'tblTempUsageDetail_20' ) end [2025-01-10 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:14:21] Production.INFO: ==25345== Releasing lock... [2025-01-10 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:15:05 [end_date_ymd] => 2025-01-10 01:15:05 [RateCDR] => 1 ) [2025-01-10 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:15:05' and `end` < '2025-01-10 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:15:18] Production.INFO: count ==164 [2025-01-10 01:15:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:15:05 - End Time 2025-01-10 01:15:05 [2025-01-10 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213484', 'tblTempUsageDetail_20' ) start [2025-01-10 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213484', 'tblTempUsageDetail_20' ) end [2025-01-10 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213484', 'tblTempVendorCDR_20' ) start [2025-01-10 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213484', 'tblTempVendorCDR_20' ) end [2025-01-10 01:15:19] Production.INFO: ProcessCDR(1,14213484,1,1,2) [2025-01-10 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213484', 'tblTempUsageDetail_20' ) start [2025-01-10 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213484', 'tblTempUsageDetail_20' ) end [2025-01-10 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:15:22] Production.INFO: ==25423== Releasing lock... [2025-01-10 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:16:05 [end_date_ymd] => 2025-01-10 01:16:05 [RateCDR] => 1 ) [2025-01-10 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:16:05' and `end` < '2025-01-10 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:16:18] Production.INFO: count ==164 [2025-01-10 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:16:05 - End Time 2025-01-10 01:16:05 [2025-01-10 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213489', 'tblTempUsageDetail_20' ) start [2025-01-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213489', 'tblTempUsageDetail_20' ) end [2025-01-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213489', 'tblTempVendorCDR_20' ) start [2025-01-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213489', 'tblTempVendorCDR_20' ) end [2025-01-10 01:16:18] Production.INFO: ProcessCDR(1,14213489,1,1,2) [2025-01-10 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213489', 'tblTempUsageDetail_20' ) start [2025-01-10 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213489', 'tblTempUsageDetail_20' ) end [2025-01-10 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:16:21] Production.INFO: ==25495== Releasing lock... [2025-01-10 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:17:05 [end_date_ymd] => 2025-01-10 01:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:17:05' and `end` < '2025-01-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-01-10 01:17:18] Production.INFO: count ==164 [2025-01-10 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:17:05 - End Time 2025-01-10 01:17:05 [2025-01-10 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213494', 'tblTempUsageDetail_20' ) start [2025-01-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213494', 'tblTempUsageDetail_20' ) end [2025-01-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213494', 'tblTempVendorCDR_20' ) start [2025-01-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213494', 'tblTempVendorCDR_20' ) end [2025-01-10 01:17:18] Production.INFO: ProcessCDR(1,14213494,1,1,2) [2025-01-10 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213494', 'tblTempUsageDetail_20' ) start [2025-01-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213494', 'tblTempUsageDetail_20' ) end [2025-01-10 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:17:21] Production.INFO: ==25574== Releasing lock... [2025-01-10 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:18:05 [end_date_ymd] => 2025-01-10 01:18:05 [RateCDR] => 1 ) [2025-01-10 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:18:05' and `end` < '2025-01-10 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:18:18] Production.INFO: count ==162 [2025-01-10 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:18:05 - End Time 2025-01-10 01:18:05 [2025-01-10 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213499', 'tblTempUsageDetail_20' ) start [2025-01-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213499', 'tblTempUsageDetail_20' ) end [2025-01-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213499', 'tblTempVendorCDR_20' ) start [2025-01-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213499', 'tblTempVendorCDR_20' ) end [2025-01-10 01:18:18] Production.INFO: ProcessCDR(1,14213499,1,1,2) [2025-01-10 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213499', 'tblTempUsageDetail_20' ) start [2025-01-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213499', 'tblTempUsageDetail_20' ) end [2025-01-10 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:18:21] Production.INFO: ==25712== Releasing lock... [2025-01-10 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:19:04 [end_date_ymd] => 2025-01-10 01:19:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:19:04' and `end` < '2025-01-10 01: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-01-10 01:19:20] Production.INFO: count ==161 [2025-01-10 01:19:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:19:04 - End Time 2025-01-10 01:19:04 [2025-01-10 01:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213504', 'tblTempUsageDetail_20' ) start [2025-01-10 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213504', 'tblTempUsageDetail_20' ) end [2025-01-10 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213504', 'tblTempVendorCDR_20' ) start [2025-01-10 01:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213504', 'tblTempVendorCDR_20' ) end [2025-01-10 01:19:20] Production.INFO: ProcessCDR(1,14213504,1,1,2) [2025-01-10 01:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213504', 'tblTempUsageDetail_20' ) start [2025-01-10 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213504', 'tblTempUsageDetail_20' ) end [2025-01-10 01:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:19:23] Production.INFO: ==25812== Releasing lock... [2025-01-10 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:19:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:20:05 [end_date_ymd] => 2025-01-10 01:20:05 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:20:05' and `end` < '2025-01-10 01: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-01-10 01:20:18] Production.INFO: count ==167 [2025-01-10 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:20:05 - End Time 2025-01-10 01:20:05 [2025-01-10 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213509', 'tblTempUsageDetail_20' ) start [2025-01-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213509', 'tblTempUsageDetail_20' ) end [2025-01-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213509', 'tblTempVendorCDR_20' ) start [2025-01-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213509', 'tblTempVendorCDR_20' ) end [2025-01-10 01:20:18] Production.INFO: ProcessCDR(1,14213509,1,1,2) [2025-01-10 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213509', 'tblTempUsageDetail_20' ) start [2025-01-10 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213509', 'tblTempUsageDetail_20' ) end [2025-01-10 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:20:21] Production.INFO: ==25915== Releasing lock... [2025-01-10 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:21:05 [end_date_ymd] => 2025-01-10 01:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:21:05' and `end` < '2025-01-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-01-10 01:21:18] Production.INFO: count ==172 [2025-01-10 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:21:05 - End Time 2025-01-10 01:21:05 [2025-01-10 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213515', 'tblTempUsageDetail_20' ) start [2025-01-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213515', 'tblTempUsageDetail_20' ) end [2025-01-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213515', 'tblTempVendorCDR_20' ) start [2025-01-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213515', 'tblTempVendorCDR_20' ) end [2025-01-10 01:21:18] Production.INFO: ProcessCDR(1,14213515,1,1,2) [2025-01-10 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213515', 'tblTempUsageDetail_20' ) start [2025-01-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213515', 'tblTempUsageDetail_20' ) end [2025-01-10 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:21:21] Production.INFO: ==26017== Releasing lock... [2025-01-10 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:22:05 [end_date_ymd] => 2025-01-10 01:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:22:05' and `end` < '2025-01-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-01-10 01:22:19] Production.INFO: count ==172 [2025-01-10 01:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:22:05 - End Time 2025-01-10 01:22:05 [2025-01-10 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213520', 'tblTempUsageDetail_20' ) start [2025-01-10 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213520', 'tblTempUsageDetail_20' ) end [2025-01-10 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213520', 'tblTempVendorCDR_20' ) start [2025-01-10 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213520', 'tblTempVendorCDR_20' ) end [2025-01-10 01:22:19] Production.INFO: ProcessCDR(1,14213520,1,1,2) [2025-01-10 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213520', 'tblTempUsageDetail_20' ) start [2025-01-10 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213520', 'tblTempUsageDetail_20' ) end [2025-01-10 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:22:22] Production.INFO: ==26115== Releasing lock... [2025-01-10 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:23:05 [end_date_ymd] => 2025-01-10 01:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:23:05' and `end` < '2025-01-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-01-10 01:23:20] Production.INFO: count ==172 [2025-01-10 01:23:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:23:05 - End Time 2025-01-10 01:23:05 [2025-01-10 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213525', 'tblTempUsageDetail_20' ) start [2025-01-10 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213525', 'tblTempUsageDetail_20' ) end [2025-01-10 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213525', 'tblTempVendorCDR_20' ) start [2025-01-10 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213525', 'tblTempVendorCDR_20' ) end [2025-01-10 01:23:20] Production.INFO: ProcessCDR(1,14213525,1,1,2) [2025-01-10 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213525', 'tblTempUsageDetail_20' ) start [2025-01-10 01:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213525', 'tblTempUsageDetail_20' ) end [2025-01-10 01:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:23:24] Production.INFO: ==26218== Releasing lock... [2025-01-10 01:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:23:24] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:24:04 [end_date_ymd] => 2025-01-10 01:24:04 [RateCDR] => 1 ) [2025-01-10 01:24: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-01-09 22:24:04' and `end` < '2025-01-10 01:24: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-01-10 01:24:17] Production.INFO: count ==171 [2025-01-10 01:24:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:24:04 - End Time 2025-01-10 01:24:04 [2025-01-10 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213530', 'tblTempUsageDetail_20' ) start [2025-01-10 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213530', 'tblTempUsageDetail_20' ) end [2025-01-10 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213530', 'tblTempVendorCDR_20' ) start [2025-01-10 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213530', 'tblTempVendorCDR_20' ) end [2025-01-10 01:24:17] Production.INFO: ProcessCDR(1,14213530,1,1,2) [2025-01-10 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213530', 'tblTempUsageDetail_20' ) start [2025-01-10 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213530', 'tblTempUsageDetail_20' ) end [2025-01-10 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:24:21] Production.INFO: ==26316== Releasing lock... [2025-01-10 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:25:05 [end_date_ymd] => 2025-01-10 01:25:05 [RateCDR] => 1 ) [2025-01-10 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:25:05' and `end` < '2025-01-10 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:25:18] Production.INFO: count ==171 [2025-01-10 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:25:05 - End Time 2025-01-10 01:25:05 [2025-01-10 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213535', 'tblTempUsageDetail_20' ) start [2025-01-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213535', 'tblTempUsageDetail_20' ) end [2025-01-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213535', 'tblTempVendorCDR_20' ) start [2025-01-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213535', 'tblTempVendorCDR_20' ) end [2025-01-10 01:25:18] Production.INFO: ProcessCDR(1,14213535,1,1,2) [2025-01-10 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213535', 'tblTempUsageDetail_20' ) start [2025-01-10 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213535', 'tblTempUsageDetail_20' ) end [2025-01-10 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:25:22] Production.INFO: ==26416== Releasing lock... [2025-01-10 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:25:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:26:05 [end_date_ymd] => 2025-01-10 01:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:26:05' and `end` < '2025-01-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-01-10 01:26:17] Production.INFO: count ==170 [2025-01-10 01:26:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:26:05 - End Time 2025-01-10 01:26:05 [2025-01-10 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213540', 'tblTempUsageDetail_20' ) start [2025-01-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213540', 'tblTempUsageDetail_20' ) end [2025-01-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213540', 'tblTempVendorCDR_20' ) start [2025-01-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213540', 'tblTempVendorCDR_20' ) end [2025-01-10 01:26:18] Production.INFO: ProcessCDR(1,14213540,1,1,2) [2025-01-10 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213540', 'tblTempUsageDetail_20' ) start [2025-01-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213540', 'tblTempUsageDetail_20' ) end [2025-01-10 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:26:21] Production.INFO: ==26515== Releasing lock... [2025-01-10 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:27:05 [end_date_ymd] => 2025-01-10 01:27:05 [RateCDR] => 1 ) [2025-01-10 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:27:05' and `end` < '2025-01-10 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:27:18] Production.INFO: count ==170 [2025-01-10 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:27:05 - End Time 2025-01-10 01:27:05 [2025-01-10 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213545', 'tblTempUsageDetail_20' ) start [2025-01-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213545', 'tblTempUsageDetail_20' ) end [2025-01-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213545', 'tblTempVendorCDR_20' ) start [2025-01-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213545', 'tblTempVendorCDR_20' ) end [2025-01-10 01:27:18] Production.INFO: ProcessCDR(1,14213545,1,1,2) [2025-01-10 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213545', 'tblTempUsageDetail_20' ) start [2025-01-10 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213545', 'tblTempUsageDetail_20' ) end [2025-01-10 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:27:21] Production.INFO: ==26617== Releasing lock... [2025-01-10 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:27:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:28:04 [end_date_ymd] => 2025-01-10 01:28:04 [RateCDR] => 1 ) [2025-01-10 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:28:04' and `end` < '2025-01-10 01: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-01-10 01:28:18] Production.INFO: count ==170 [2025-01-10 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:28:04 - End Time 2025-01-10 01:28:04 [2025-01-10 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213550', 'tblTempUsageDetail_20' ) start [2025-01-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213550', 'tblTempUsageDetail_20' ) end [2025-01-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213550', 'tblTempVendorCDR_20' ) start [2025-01-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213550', 'tblTempVendorCDR_20' ) end [2025-01-10 01:28:18] Production.INFO: ProcessCDR(1,14213550,1,1,2) [2025-01-10 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213550', 'tblTempUsageDetail_20' ) start [2025-01-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213550', 'tblTempUsageDetail_20' ) end [2025-01-10 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:28:21] Production.INFO: ==26720== Releasing lock... [2025-01-10 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:29:05 [end_date_ymd] => 2025-01-10 01:29:05 [RateCDR] => 1 ) [2025-01-10 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:29:05' and `end` < '2025-01-10 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:29:19] Production.INFO: count ==172 [2025-01-10 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:29:05 - End Time 2025-01-10 01:29:05 [2025-01-10 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213555', 'tblTempUsageDetail_20' ) start [2025-01-10 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213555', 'tblTempUsageDetail_20' ) end [2025-01-10 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213555', 'tblTempVendorCDR_20' ) start [2025-01-10 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213555', 'tblTempVendorCDR_20' ) end [2025-01-10 01:29:19] Production.INFO: ProcessCDR(1,14213555,1,1,2) [2025-01-10 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213555', 'tblTempUsageDetail_20' ) start [2025-01-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213555', 'tblTempUsageDetail_20' ) end [2025-01-10 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:29:22] Production.INFO: ==26820== Releasing lock... [2025-01-10 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:30:05 [end_date_ymd] => 2025-01-10 01:30:05 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:30:05' and `end` < '2025-01-10 01: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-01-10 01:30:19] Production.INFO: count ==176 [2025-01-10 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:30:05 - End Time 2025-01-10 01:30:05 [2025-01-10 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213561', 'tblTempUsageDetail_20' ) start [2025-01-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213561', 'tblTempUsageDetail_20' ) end [2025-01-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213561', 'tblTempVendorCDR_20' ) start [2025-01-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213561', 'tblTempVendorCDR_20' ) end [2025-01-10 01:30:19] Production.INFO: ProcessCDR(1,14213561,1,1,2) [2025-01-10 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213561', 'tblTempUsageDetail_20' ) start [2025-01-10 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213561', 'tblTempUsageDetail_20' ) end [2025-01-10 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:30:22] Production.INFO: ==26924== Releasing lock... [2025-01-10 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:31:05 [end_date_ymd] => 2025-01-10 01:31:05 [RateCDR] => 1 ) [2025-01-10 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:31:05' and `end` < '2025-01-10 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:31:19] Production.INFO: count ==175 [2025-01-10 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:31:05 - End Time 2025-01-10 01:31:05 [2025-01-10 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213566', 'tblTempUsageDetail_20' ) start [2025-01-10 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213566', 'tblTempUsageDetail_20' ) end [2025-01-10 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213566', 'tblTempVendorCDR_20' ) start [2025-01-10 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213566', 'tblTempVendorCDR_20' ) end [2025-01-10 01:31:19] Production.INFO: ProcessCDR(1,14213566,1,1,2) [2025-01-10 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213566', 'tblTempUsageDetail_20' ) start [2025-01-10 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213566', 'tblTempUsageDetail_20' ) end [2025-01-10 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:31:22] Production.INFO: ==27031== Releasing lock... [2025-01-10 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:32:05 [end_date_ymd] => 2025-01-10 01:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:32:05' and `end` < '2025-01-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-01-10 01:32:19] Production.INFO: count ==174 [2025-01-10 01:32:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:32:05 - End Time 2025-01-10 01:32:05 [2025-01-10 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213571', 'tblTempUsageDetail_20' ) start [2025-01-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213571', 'tblTempUsageDetail_20' ) end [2025-01-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213571', 'tblTempVendorCDR_20' ) start [2025-01-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213571', 'tblTempVendorCDR_20' ) end [2025-01-10 01:32:19] Production.INFO: ProcessCDR(1,14213571,1,1,2) [2025-01-10 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213571', 'tblTempUsageDetail_20' ) start [2025-01-10 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213571', 'tblTempUsageDetail_20' ) end [2025-01-10 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:32:22] Production.INFO: ==27132== Releasing lock... [2025-01-10 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:33:04 [end_date_ymd] => 2025-01-10 01:33:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:33:04' and `end` < '2025-01-10 01: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-01-10 01:33:18] Production.INFO: count ==174 [2025-01-10 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:33:04 - End Time 2025-01-10 01:33:04 [2025-01-10 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213576', 'tblTempUsageDetail_20' ) start [2025-01-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213576', 'tblTempUsageDetail_20' ) end [2025-01-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213576', 'tblTempVendorCDR_20' ) start [2025-01-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213576', 'tblTempVendorCDR_20' ) end [2025-01-10 01:33:18] Production.INFO: ProcessCDR(1,14213576,1,1,2) [2025-01-10 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213576', 'tblTempUsageDetail_20' ) start [2025-01-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213576', 'tblTempUsageDetail_20' ) end [2025-01-10 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:33:21] Production.INFO: ==27276== Releasing lock... [2025-01-10 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:34:05 [end_date_ymd] => 2025-01-10 01:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:34:05' and `end` < '2025-01-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-01-10 01:34:20] Production.INFO: count ==173 [2025-01-10 01:34:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:34:05 - End Time 2025-01-10 01:34:05 [2025-01-10 01:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213581', 'tblTempUsageDetail_20' ) start [2025-01-10 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213581', 'tblTempUsageDetail_20' ) end [2025-01-10 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213581', 'tblTempVendorCDR_20' ) start [2025-01-10 01:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213581', 'tblTempVendorCDR_20' ) end [2025-01-10 01:34:20] Production.INFO: ProcessCDR(1,14213581,1,1,2) [2025-01-10 01:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213581', 'tblTempUsageDetail_20' ) start [2025-01-10 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213581', 'tblTempUsageDetail_20' ) end [2025-01-10 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:34:23] Production.INFO: ==27373== Releasing lock... [2025-01-10 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:34:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:35:04 [end_date_ymd] => 2025-01-10 01:35:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:35:04' and `end` < '2025-01-10 01: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-01-10 01:35:17] Production.INFO: count ==172 [2025-01-10 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:35:04 - End Time 2025-01-10 01:35:04 [2025-01-10 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213586', 'tblTempUsageDetail_20' ) start [2025-01-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213586', 'tblTempUsageDetail_20' ) end [2025-01-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213586', 'tblTempVendorCDR_20' ) start [2025-01-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213586', 'tblTempVendorCDR_20' ) end [2025-01-10 01:35:17] Production.INFO: ProcessCDR(1,14213586,1,1,2) [2025-01-10 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213586', 'tblTempUsageDetail_20' ) start [2025-01-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213586', 'tblTempUsageDetail_20' ) end [2025-01-10 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:35:21] Production.INFO: ==27444== Releasing lock... [2025-01-10 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:36:05 [end_date_ymd] => 2025-01-10 01:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:36:05' and `end` < '2025-01-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-01-10 01:36:18] Production.INFO: count ==172 [2025-01-10 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:36:05 - End Time 2025-01-10 01:36:05 [2025-01-10 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213591', 'tblTempUsageDetail_20' ) start [2025-01-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213591', 'tblTempUsageDetail_20' ) end [2025-01-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213591', 'tblTempVendorCDR_20' ) start [2025-01-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213591', 'tblTempVendorCDR_20' ) end [2025-01-10 01:36:18] Production.INFO: ProcessCDR(1,14213591,1,1,2) [2025-01-10 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213591', 'tblTempUsageDetail_20' ) start [2025-01-10 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213591', 'tblTempUsageDetail_20' ) end [2025-01-10 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:36:21] Production.INFO: ==27516== Releasing lock... [2025-01-10 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:37:04 [end_date_ymd] => 2025-01-10 01:37:04 [RateCDR] => 1 ) [2025-01-10 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:37:04' and `end` < '2025-01-10 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:37:17] Production.INFO: count ==171 [2025-01-10 01:37:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:37:04 - End Time 2025-01-10 01:37:04 [2025-01-10 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213596', 'tblTempUsageDetail_20' ) start [2025-01-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213596', 'tblTempUsageDetail_20' ) end [2025-01-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213596', 'tblTempVendorCDR_20' ) start [2025-01-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213596', 'tblTempVendorCDR_20' ) end [2025-01-10 01:37:17] Production.INFO: ProcessCDR(1,14213596,1,1,2) [2025-01-10 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213596', 'tblTempUsageDetail_20' ) start [2025-01-10 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213596', 'tblTempUsageDetail_20' ) end [2025-01-10 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:37:20] Production.INFO: ==27586== Releasing lock... [2025-01-10 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:38:05 [end_date_ymd] => 2025-01-10 01:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:38:05' and `end` < '2025-01-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-01-10 01:38:19] Production.INFO: count ==171 [2025-01-10 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:38:05 - End Time 2025-01-10 01:38:05 [2025-01-10 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213601', 'tblTempUsageDetail_20' ) start [2025-01-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213601', 'tblTempUsageDetail_20' ) end [2025-01-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213601', 'tblTempVendorCDR_20' ) start [2025-01-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213601', 'tblTempVendorCDR_20' ) end [2025-01-10 01:38:19] Production.INFO: ProcessCDR(1,14213601,1,1,2) [2025-01-10 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213601', 'tblTempUsageDetail_20' ) start [2025-01-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213601', 'tblTempUsageDetail_20' ) end [2025-01-10 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:38:22] Production.INFO: ==27657== Releasing lock... [2025-01-10 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:39:05 [end_date_ymd] => 2025-01-10 01:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:39:05' and `end` < '2025-01-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-01-10 01:39:18] Production.INFO: count ==171 [2025-01-10 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:39:05 - End Time 2025-01-10 01:39:05 [2025-01-10 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213606', 'tblTempUsageDetail_20' ) start [2025-01-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213606', 'tblTempUsageDetail_20' ) end [2025-01-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213606', 'tblTempVendorCDR_20' ) start [2025-01-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213606', 'tblTempVendorCDR_20' ) end [2025-01-10 01:39:18] Production.INFO: ProcessCDR(1,14213606,1,1,2) [2025-01-10 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213606', 'tblTempUsageDetail_20' ) start [2025-01-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213606', 'tblTempUsageDetail_20' ) end [2025-01-10 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:39:21] Production.INFO: ==27727== Releasing lock... [2025-01-10 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:40:05 [end_date_ymd] => 2025-01-10 01:40:05 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:40:05' and `end` < '2025-01-10 01: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-01-10 01:40:18] Production.INFO: count ==177 [2025-01-10 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:40:05 - End Time 2025-01-10 01:40:05 [2025-01-10 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213611', 'tblTempUsageDetail_20' ) start [2025-01-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213611', 'tblTempUsageDetail_20' ) end [2025-01-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213611', 'tblTempVendorCDR_20' ) start [2025-01-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213611', 'tblTempVendorCDR_20' ) end [2025-01-10 01:40:18] Production.INFO: ProcessCDR(1,14213611,1,1,2) [2025-01-10 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213611', 'tblTempUsageDetail_20' ) start [2025-01-10 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213611', 'tblTempUsageDetail_20' ) end [2025-01-10 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:40:21] Production.INFO: ==27800== Releasing lock... [2025-01-10 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:41:05 [end_date_ymd] => 2025-01-10 01:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:41:05' and `end` < '2025-01-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-01-10 01:41:19] Production.INFO: count ==187 [2025-01-10 01:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:41:05 - End Time 2025-01-10 01:41:05 [2025-01-10 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213617', 'tblTempUsageDetail_20' ) start [2025-01-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213617', 'tblTempUsageDetail_20' ) end [2025-01-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213617', 'tblTempVendorCDR_20' ) start [2025-01-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213617', 'tblTempVendorCDR_20' ) end [2025-01-10 01:41:19] Production.INFO: ProcessCDR(1,14213617,1,1,2) [2025-01-10 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213617', 'tblTempUsageDetail_20' ) start [2025-01-10 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213617', 'tblTempUsageDetail_20' ) end [2025-01-10 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:41:22] Production.INFO: ==27872== Releasing lock... [2025-01-10 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:41:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:42:05 [end_date_ymd] => 2025-01-10 01:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:42:05' and `end` < '2025-01-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-01-10 01:42:20] Production.INFO: count ==187 [2025-01-10 01:42:20] Production.ERROR: pbx CDR StartTime 2025-01-09 22:42:05 - End Time 2025-01-10 01:42:05 [2025-01-10 01:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213622', 'tblTempUsageDetail_20' ) start [2025-01-10 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213622', 'tblTempUsageDetail_20' ) end [2025-01-10 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213622', 'tblTempVendorCDR_20' ) start [2025-01-10 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213622', 'tblTempVendorCDR_20' ) end [2025-01-10 01:42:20] Production.INFO: ProcessCDR(1,14213622,1,1,2) [2025-01-10 01:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213622', 'tblTempUsageDetail_20' ) start [2025-01-10 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213622', 'tblTempUsageDetail_20' ) end [2025-01-10 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:42:23] Production.INFO: ==27945== Releasing lock... [2025-01-10 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:42:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:43:05 [end_date_ymd] => 2025-01-10 01:43:05 [RateCDR] => 1 ) [2025-01-10 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:43:05' and `end` < '2025-01-10 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:43:19] Production.INFO: count ==187 [2025-01-10 01:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:43:05 - End Time 2025-01-10 01:43:05 [2025-01-10 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213627', 'tblTempUsageDetail_20' ) start [2025-01-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213627', 'tblTempUsageDetail_20' ) end [2025-01-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213627', 'tblTempVendorCDR_20' ) start [2025-01-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213627', 'tblTempVendorCDR_20' ) end [2025-01-10 01:43:19] Production.INFO: ProcessCDR(1,14213627,1,1,2) [2025-01-10 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213627', 'tblTempUsageDetail_20' ) start [2025-01-10 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213627', 'tblTempUsageDetail_20' ) end [2025-01-10 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:43:22] Production.INFO: ==28019== Releasing lock... [2025-01-10 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:43:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:44:04 [end_date_ymd] => 2025-01-10 01:44:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:44:04' and `end` < '2025-01-10 01: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-01-10 01:44:17] Production.INFO: count ==183 [2025-01-10 01:44:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:44:04 - End Time 2025-01-10 01:44:04 [2025-01-10 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213632', 'tblTempUsageDetail_20' ) start [2025-01-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213632', 'tblTempUsageDetail_20' ) end [2025-01-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213632', 'tblTempVendorCDR_20' ) start [2025-01-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213632', 'tblTempVendorCDR_20' ) end [2025-01-10 01:44:17] Production.INFO: ProcessCDR(1,14213632,1,1,2) [2025-01-10 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213632', 'tblTempUsageDetail_20' ) start [2025-01-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213632', 'tblTempUsageDetail_20' ) end [2025-01-10 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:44:21] Production.INFO: ==28089== Releasing lock... [2025-01-10 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:45:05 [end_date_ymd] => 2025-01-10 01:45:05 [RateCDR] => 1 ) [2025-01-10 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:45:05' and `end` < '2025-01-10 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:45:18] Production.INFO: count ==179 [2025-01-10 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:45:05 - End Time 2025-01-10 01:45:05 [2025-01-10 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213637', 'tblTempUsageDetail_20' ) start [2025-01-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213637', 'tblTempUsageDetail_20' ) end [2025-01-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213637', 'tblTempVendorCDR_20' ) start [2025-01-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213637', 'tblTempVendorCDR_20' ) end [2025-01-10 01:45:18] Production.INFO: ProcessCDR(1,14213637,1,1,2) [2025-01-10 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213637', 'tblTempUsageDetail_20' ) start [2025-01-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213637', 'tblTempUsageDetail_20' ) end [2025-01-10 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:45:21] Production.INFO: ==28160== Releasing lock... [2025-01-10 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:46:04 [end_date_ymd] => 2025-01-10 01:46:04 [RateCDR] => 1 ) [2025-01-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-01-09 22:46:04' and `end` < '2025-01-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-01-10 01:46:19] Production.INFO: count ==178 [2025-01-10 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:46:04 - End Time 2025-01-10 01:46:04 [2025-01-10 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213642', 'tblTempUsageDetail_20' ) start [2025-01-10 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213642', 'tblTempUsageDetail_20' ) end [2025-01-10 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213642', 'tblTempVendorCDR_20' ) start [2025-01-10 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213642', 'tblTempVendorCDR_20' ) end [2025-01-10 01:46:19] Production.INFO: ProcessCDR(1,14213642,1,1,2) [2025-01-10 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213642', 'tblTempUsageDetail_20' ) start [2025-01-10 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213642', 'tblTempUsageDetail_20' ) end [2025-01-10 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:46:22] Production.INFO: ==28230== Releasing lock... [2025-01-10 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:47:05 [end_date_ymd] => 2025-01-10 01:47:05 [RateCDR] => 1 ) [2025-01-10 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:47:05' and `end` < '2025-01-10 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:47:19] Production.INFO: count ==178 [2025-01-10 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:47:05 - End Time 2025-01-10 01:47:05 [2025-01-10 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213647', 'tblTempUsageDetail_20' ) start [2025-01-10 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213647', 'tblTempUsageDetail_20' ) end [2025-01-10 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213647', 'tblTempVendorCDR_20' ) start [2025-01-10 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213647', 'tblTempVendorCDR_20' ) end [2025-01-10 01:47:19] Production.INFO: ProcessCDR(1,14213647,1,1,2) [2025-01-10 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213647', 'tblTempUsageDetail_20' ) start [2025-01-10 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213647', 'tblTempUsageDetail_20' ) end [2025-01-10 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:47:22] Production.INFO: ==28303== Releasing lock... [2025-01-10 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:48:05 [end_date_ymd] => 2025-01-10 01:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:48:05' and `end` < '2025-01-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-01-10 01:48:18] Production.INFO: count ==177 [2025-01-10 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:48:05 - End Time 2025-01-10 01:48:05 [2025-01-10 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213652', 'tblTempUsageDetail_20' ) start [2025-01-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213652', 'tblTempUsageDetail_20' ) end [2025-01-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213652', 'tblTempVendorCDR_20' ) start [2025-01-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213652', 'tblTempVendorCDR_20' ) end [2025-01-10 01:48:18] Production.INFO: ProcessCDR(1,14213652,1,1,2) [2025-01-10 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213652', 'tblTempUsageDetail_20' ) start [2025-01-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213652', 'tblTempUsageDetail_20' ) end [2025-01-10 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:48:21] Production.INFO: ==28375== Releasing lock... [2025-01-10 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:49:05 [end_date_ymd] => 2025-01-10 01:49:05 [RateCDR] => 1 ) [2025-01-10 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:49:05' and `end` < '2025-01-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-01-10 01:49:19] Production.INFO: count ==176 [2025-01-10 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:49:05 - End Time 2025-01-10 01:49:05 [2025-01-10 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213657', 'tblTempUsageDetail_20' ) start [2025-01-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213657', 'tblTempUsageDetail_20' ) end [2025-01-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213657', 'tblTempVendorCDR_20' ) start [2025-01-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213657', 'tblTempVendorCDR_20' ) end [2025-01-10 01:49:19] Production.INFO: ProcessCDR(1,14213657,1,1,2) [2025-01-10 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213657', 'tblTempUsageDetail_20' ) start [2025-01-10 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213657', 'tblTempUsageDetail_20' ) end [2025-01-10 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:49:23] Production.INFO: ==28487== Releasing lock... [2025-01-10 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:50:06 [end_date_ymd] => 2025-01-10 01:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 22:50:06' and `end` < '2025-01-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-01-10 01:50:19] Production.INFO: count ==184 [2025-01-10 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:50:06 - End Time 2025-01-10 01:50:06 [2025-01-10 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213663', 'tblTempUsageDetail_20' ) start [2025-01-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213663', 'tblTempUsageDetail_20' ) end [2025-01-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213663', 'tblTempVendorCDR_20' ) start [2025-01-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213663', 'tblTempVendorCDR_20' ) end [2025-01-10 01:50:19] Production.INFO: ProcessCDR(1,14213663,1,1,2) [2025-01-10 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213663', 'tblTempUsageDetail_20' ) start [2025-01-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213663', 'tblTempUsageDetail_20' ) end [2025-01-10 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:50:22] Production.INFO: ==28561== Releasing lock... [2025-01-10 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:51:05 [end_date_ymd] => 2025-01-10 01:51:05 [RateCDR] => 1 ) [2025-01-10 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:51:05' and `end` < '2025-01-10 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:51:18] Production.INFO: count ==188 [2025-01-10 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:51:05 - End Time 2025-01-10 01:51:05 [2025-01-10 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213668', 'tblTempUsageDetail_20' ) start [2025-01-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213668', 'tblTempUsageDetail_20' ) end [2025-01-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213668', 'tblTempVendorCDR_20' ) start [2025-01-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213668', 'tblTempVendorCDR_20' ) end [2025-01-10 01:51:18] Production.INFO: ProcessCDR(1,14213668,1,1,2) [2025-01-10 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213668', 'tblTempUsageDetail_20' ) start [2025-01-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213668', 'tblTempUsageDetail_20' ) end [2025-01-10 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:51:21] Production.INFO: ==28634== Releasing lock... [2025-01-10 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:52:05 [end_date_ymd] => 2025-01-10 01:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:52:05' and `end` < '2025-01-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-01-10 01:52:19] Production.INFO: count ==188 [2025-01-10 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:52:05 - End Time 2025-01-10 01:52:05 [2025-01-10 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213673', 'tblTempUsageDetail_20' ) start [2025-01-10 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213673', 'tblTempUsageDetail_20' ) end [2025-01-10 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213673', 'tblTempVendorCDR_20' ) start [2025-01-10 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213673', 'tblTempVendorCDR_20' ) end [2025-01-10 01:52:19] Production.INFO: ProcessCDR(1,14213673,1,1,2) [2025-01-10 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213673', 'tblTempUsageDetail_20' ) start [2025-01-10 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213673', 'tblTempUsageDetail_20' ) end [2025-01-10 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:52:22] Production.INFO: ==28705== Releasing lock... [2025-01-10 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:53:04 [end_date_ymd] => 2025-01-10 01:53:04 [RateCDR] => 1 ) [2025-01-10 01:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 22:53:04' and `end` < '2025-01-10 01:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 01:53:17] Production.INFO: count ==187 [2025-01-10 01:53:17] Production.ERROR: pbx CDR StartTime 2025-01-09 22:53:04 - End Time 2025-01-10 01:53:04 [2025-01-10 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213677', 'tblTempUsageDetail_20' ) start [2025-01-10 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213677', 'tblTempUsageDetail_20' ) end [2025-01-10 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213677', 'tblTempVendorCDR_20' ) start [2025-01-10 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213677', 'tblTempVendorCDR_20' ) end [2025-01-10 01:53:17] Production.INFO: ProcessCDR(1,14213677,1,1,2) [2025-01-10 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213677', 'tblTempUsageDetail_20' ) start [2025-01-10 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213677', 'tblTempUsageDetail_20' ) end [2025-01-10 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:53:21] Production.INFO: ==28775== Releasing lock... [2025-01-10 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:54:05 [end_date_ymd] => 2025-01-10 01:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:54:05' and `end` < '2025-01-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-01-10 01:54:18] Production.INFO: count ==187 [2025-01-10 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:54:05 - End Time 2025-01-10 01:54:05 [2025-01-10 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213683', 'tblTempUsageDetail_20' ) start [2025-01-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213683', 'tblTempUsageDetail_20' ) end [2025-01-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213683', 'tblTempVendorCDR_20' ) start [2025-01-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213683', 'tblTempVendorCDR_20' ) end [2025-01-10 01:54:18] Production.INFO: ProcessCDR(1,14213683,1,1,2) [2025-01-10 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213683', 'tblTempUsageDetail_20' ) start [2025-01-10 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213683', 'tblTempUsageDetail_20' ) end [2025-01-10 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:54:21] Production.INFO: ==28847== Releasing lock... [2025-01-10 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:55:05 [end_date_ymd] => 2025-01-10 01:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:55:05' and `end` < '2025-01-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-01-10 01:55:18] Production.INFO: count ==186 [2025-01-10 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:55:05 - End Time 2025-01-10 01:55:05 [2025-01-10 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213688', 'tblTempUsageDetail_20' ) start [2025-01-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213688', 'tblTempUsageDetail_20' ) end [2025-01-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213688', 'tblTempVendorCDR_20' ) start [2025-01-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213688', 'tblTempVendorCDR_20' ) end [2025-01-10 01:55:18] Production.INFO: ProcessCDR(1,14213688,1,1,2) [2025-01-10 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213688', 'tblTempUsageDetail_20' ) start [2025-01-10 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213688', 'tblTempUsageDetail_20' ) end [2025-01-10 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:55:21] Production.INFO: ==28919== Releasing lock... [2025-01-10 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:56:05 [end_date_ymd] => 2025-01-10 01:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:56:05' and `end` < '2025-01-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-01-10 01:56:19] Production.INFO: count ==185 [2025-01-10 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 22:56:05 - End Time 2025-01-10 01:56:05 [2025-01-10 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213693', 'tblTempUsageDetail_20' ) start [2025-01-10 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213693', 'tblTempUsageDetail_20' ) end [2025-01-10 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213693', 'tblTempVendorCDR_20' ) start [2025-01-10 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213693', 'tblTempVendorCDR_20' ) end [2025-01-10 01:56:19] Production.INFO: ProcessCDR(1,14213693,1,1,2) [2025-01-10 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213693', 'tblTempUsageDetail_20' ) start [2025-01-10 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213693', 'tblTempUsageDetail_20' ) end [2025-01-10 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:56:22] Production.INFO: ==28993== Releasing lock... [2025-01-10 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:57:05 [end_date_ymd] => 2025-01-10 01:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:57:05' and `end` < '2025-01-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-01-10 01:57:18] Production.INFO: count ==185 [2025-01-10 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:57:05 - End Time 2025-01-10 01:57:05 [2025-01-10 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213698', 'tblTempUsageDetail_20' ) start [2025-01-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213698', 'tblTempUsageDetail_20' ) end [2025-01-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213698', 'tblTempVendorCDR_20' ) start [2025-01-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213698', 'tblTempVendorCDR_20' ) end [2025-01-10 01:57:18] Production.INFO: ProcessCDR(1,14213698,1,1,2) [2025-01-10 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213698', 'tblTempUsageDetail_20' ) start [2025-01-10 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213698', 'tblTempUsageDetail_20' ) end [2025-01-10 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:57:21] Production.INFO: ==29064== Releasing lock... [2025-01-10 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:58:05 [end_date_ymd] => 2025-01-10 01:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 22:58:05' and `end` < '2025-01-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-01-10 01:58:18] Production.INFO: count ==185 [2025-01-10 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:58:05 - End Time 2025-01-10 01:58:05 [2025-01-10 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213703', 'tblTempUsageDetail_20' ) start [2025-01-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213703', 'tblTempUsageDetail_20' ) end [2025-01-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213703', 'tblTempVendorCDR_20' ) start [2025-01-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213703', 'tblTempVendorCDR_20' ) end [2025-01-10 01:58:18] Production.INFO: ProcessCDR(1,14213703,1,1,2) [2025-01-10 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213703', 'tblTempUsageDetail_20' ) start [2025-01-10 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213703', 'tblTempUsageDetail_20' ) end [2025-01-10 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:58:22] Production.INFO: ==29137== Releasing lock... [2025-01-10 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 22:59:04 [end_date_ymd] => 2025-01-10 01:59:04 [RateCDR] => 1 ) [2025-01-10 01: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-01-09 22:59:04' and `end` < '2025-01-10 01: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-01-10 01:59:18] Production.INFO: count ==185 [2025-01-10 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 22:59:04 - End Time 2025-01-10 01:59:04 [2025-01-10 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213708', 'tblTempUsageDetail_20' ) start [2025-01-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213708', 'tblTempUsageDetail_20' ) end [2025-01-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213708', 'tblTempVendorCDR_20' ) start [2025-01-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213708', 'tblTempVendorCDR_20' ) end [2025-01-10 01:59:18] Production.INFO: ProcessCDR(1,14213708,1,1,2) [2025-01-10 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213708', 'tblTempUsageDetail_20' ) start [2025-01-10 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213708', 'tblTempUsageDetail_20' ) end [2025-01-10 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 01:59:21] Production.INFO: ==29210== Releasing lock... [2025-01-10 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 01:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:00:06 [end_date_ymd] => 2025-01-10 02:00:06 [RateCDR] => 1 ) [2025-01-10 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:00:06' and `end` < '2025-01-10 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:00:19] Production.INFO: count ==196 [2025-01-10 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:00:06 - End Time 2025-01-10 02:00:06 [2025-01-10 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213714', 'tblTempUsageDetail_20' ) start [2025-01-10 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213714', 'tblTempUsageDetail_20' ) end [2025-01-10 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213714', 'tblTempVendorCDR_20' ) start [2025-01-10 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213714', 'tblTempVendorCDR_20' ) end [2025-01-10 02:00:19] Production.INFO: ProcessCDR(1,14213714,1,1,2) [2025-01-10 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213714', 'tblTempUsageDetail_20' ) start [2025-01-10 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213714', 'tblTempUsageDetail_20' ) end [2025-01-10 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:00:22] Production.INFO: ==29290== Releasing lock... [2025-01-10 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:01:04 [end_date_ymd] => 2025-01-10 02:01:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:01:04' and `end` < '2025-01-10 02: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-01-10 02:01:17] Production.INFO: count ==202 [2025-01-10 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:01:04 - End Time 2025-01-10 02:01:04 [2025-01-10 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213719', 'tblTempUsageDetail_20' ) start [2025-01-10 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213719', 'tblTempUsageDetail_20' ) end [2025-01-10 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213719', 'tblTempVendorCDR_20' ) start [2025-01-10 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213719', 'tblTempVendorCDR_20' ) end [2025-01-10 02:01:17] Production.INFO: ProcessCDR(1,14213719,1,1,2) [2025-01-10 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213719', 'tblTempUsageDetail_20' ) start [2025-01-10 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213719', 'tblTempUsageDetail_20' ) end [2025-01-10 02:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:01:20] Production.INFO: ==29466== Releasing lock... [2025-01-10 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:02:05 [end_date_ymd] => 2025-01-10 02:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:02:05' and `end` < '2025-01-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-01-10 02:02:19] Production.INFO: count ==202 [2025-01-10 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:02:05 - End Time 2025-01-10 02:02:05 [2025-01-10 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213724', 'tblTempUsageDetail_20' ) start [2025-01-10 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213724', 'tblTempUsageDetail_20' ) end [2025-01-10 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213724', 'tblTempVendorCDR_20' ) start [2025-01-10 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213724', 'tblTempVendorCDR_20' ) end [2025-01-10 02:02:19] Production.INFO: ProcessCDR(1,14213724,1,1,2) [2025-01-10 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213724', 'tblTempUsageDetail_20' ) start [2025-01-10 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213724', 'tblTempUsageDetail_20' ) end [2025-01-10 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:02:22] Production.INFO: ==29541== Releasing lock... [2025-01-10 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:03:05 [end_date_ymd] => 2025-01-10 02:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:03:05' and `end` < '2025-01-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-01-10 02:03:18] Production.INFO: count ==202 [2025-01-10 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:03:05 - End Time 2025-01-10 02:03:05 [2025-01-10 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213729', 'tblTempUsageDetail_20' ) start [2025-01-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213729', 'tblTempUsageDetail_20' ) end [2025-01-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213729', 'tblTempVendorCDR_20' ) start [2025-01-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213729', 'tblTempVendorCDR_20' ) end [2025-01-10 02:03:18] Production.INFO: ProcessCDR(1,14213729,1,1,2) [2025-01-10 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213729', 'tblTempUsageDetail_20' ) start [2025-01-10 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213729', 'tblTempUsageDetail_20' ) end [2025-01-10 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:03:21] Production.INFO: ==29617== Releasing lock... [2025-01-10 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:04:05 [end_date_ymd] => 2025-01-10 02:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:04:05' and `end` < '2025-01-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-01-10 02:04:20] Production.INFO: count ==202 [2025-01-10 02:04:20] Production.ERROR: pbx CDR StartTime 2025-01-09 23:04:05 - End Time 2025-01-10 02:04:05 [2025-01-10 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213734', 'tblTempUsageDetail_20' ) start [2025-01-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213734', 'tblTempUsageDetail_20' ) end [2025-01-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213734', 'tblTempVendorCDR_20' ) start [2025-01-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213734', 'tblTempVendorCDR_20' ) end [2025-01-10 02:04:20] Production.INFO: ProcessCDR(1,14213734,1,1,2) [2025-01-10 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213734', 'tblTempUsageDetail_20' ) start [2025-01-10 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213734', 'tblTempUsageDetail_20' ) end [2025-01-10 02:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:04:24] Production.INFO: ==29728== Releasing lock... [2025-01-10 02:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:05:05 [end_date_ymd] => 2025-01-10 02:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:05:05' and `end` < '2025-01-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-01-10 02:05:18] Production.INFO: count ==202 [2025-01-10 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:05:05 - End Time 2025-01-10 02:05:05 [2025-01-10 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213739', 'tblTempUsageDetail_20' ) start [2025-01-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213739', 'tblTempUsageDetail_20' ) end [2025-01-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213739', 'tblTempVendorCDR_20' ) start [2025-01-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213739', 'tblTempVendorCDR_20' ) end [2025-01-10 02:05:18] Production.INFO: ProcessCDR(1,14213739,1,1,2) [2025-01-10 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213739', 'tblTempUsageDetail_20' ) start [2025-01-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213739', 'tblTempUsageDetail_20' ) end [2025-01-10 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:05:22] Production.INFO: ==29801== Releasing lock... [2025-01-10 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:06:05 [end_date_ymd] => 2025-01-10 02:06:05 [RateCDR] => 1 ) [2025-01-10 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:06:05' and `end` < '2025-01-10 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:06:19] Production.INFO: count ==202 [2025-01-10 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:06:05 - End Time 2025-01-10 02:06:05 [2025-01-10 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213744', 'tblTempUsageDetail_20' ) start [2025-01-10 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213744', 'tblTempUsageDetail_20' ) end [2025-01-10 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213744', 'tblTempVendorCDR_20' ) start [2025-01-10 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213744', 'tblTempVendorCDR_20' ) end [2025-01-10 02:06:19] Production.INFO: ProcessCDR(1,14213744,1,1,2) [2025-01-10 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213744', 'tblTempUsageDetail_20' ) start [2025-01-10 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213744', 'tblTempUsageDetail_20' ) end [2025-01-10 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:06:22] Production.INFO: ==29874== Releasing lock... [2025-01-10 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:07:05 [end_date_ymd] => 2025-01-10 02:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:07:05' and `end` < '2025-01-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-01-10 02:07:19] Production.INFO: count ==202 [2025-01-10 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:07:05 - End Time 2025-01-10 02:07:05 [2025-01-10 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213749', 'tblTempUsageDetail_20' ) start [2025-01-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213749', 'tblTempUsageDetail_20' ) end [2025-01-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213749', 'tblTempVendorCDR_20' ) start [2025-01-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213749', 'tblTempVendorCDR_20' ) end [2025-01-10 02:07:19] Production.INFO: ProcessCDR(1,14213749,1,1,2) [2025-01-10 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213749', 'tblTempUsageDetail_20' ) start [2025-01-10 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213749', 'tblTempUsageDetail_20' ) end [2025-01-10 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:07:22] Production.INFO: ==29950== Releasing lock... [2025-01-10 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:08:05 [end_date_ymd] => 2025-01-10 02:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:08:05' and `end` < '2025-01-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-01-10 02:08:20] Production.INFO: count ==202 [2025-01-10 02:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 23:08:05 - End Time 2025-01-10 02:08:05 [2025-01-10 02:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213754', 'tblTempUsageDetail_20' ) start [2025-01-10 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213754', 'tblTempUsageDetail_20' ) end [2025-01-10 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213754', 'tblTempVendorCDR_20' ) start [2025-01-10 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213754', 'tblTempVendorCDR_20' ) end [2025-01-10 02:08:20] Production.INFO: ProcessCDR(1,14213754,1,1,2) [2025-01-10 02:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213754', 'tblTempUsageDetail_20' ) start [2025-01-10 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213754', 'tblTempUsageDetail_20' ) end [2025-01-10 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:08:23] Production.INFO: ==30024== Releasing lock... [2025-01-10 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:08:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:09:05 [end_date_ymd] => 2025-01-10 02:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:09:05' and `end` < '2025-01-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-01-10 02:09:18] Production.INFO: count ==202 [2025-01-10 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:09:05 - End Time 2025-01-10 02:09:05 [2025-01-10 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213759', 'tblTempUsageDetail_20' ) start [2025-01-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213759', 'tblTempUsageDetail_20' ) end [2025-01-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213759', 'tblTempVendorCDR_20' ) start [2025-01-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213759', 'tblTempVendorCDR_20' ) end [2025-01-10 02:09:18] Production.INFO: ProcessCDR(1,14213759,1,1,2) [2025-01-10 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213759', 'tblTempUsageDetail_20' ) start [2025-01-10 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213759', 'tblTempUsageDetail_20' ) end [2025-01-10 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:09:21] Production.INFO: ==30104== Releasing lock... [2025-01-10 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:10:05 [end_date_ymd] => 2025-01-10 02:10:05 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:10:05' and `end` < '2025-01-10 02: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-01-10 02:10:18] Production.INFO: count ==204 [2025-01-10 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:10:05 - End Time 2025-01-10 02:10:05 [2025-01-10 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213764', 'tblTempUsageDetail_20' ) start [2025-01-10 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213764', 'tblTempUsageDetail_20' ) end [2025-01-10 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213764', 'tblTempVendorCDR_20' ) start [2025-01-10 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213764', 'tblTempVendorCDR_20' ) end [2025-01-10 02:10:18] Production.INFO: ProcessCDR(1,14213764,1,1,2) [2025-01-10 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213764', 'tblTempUsageDetail_20' ) start [2025-01-10 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213764', 'tblTempUsageDetail_20' ) end [2025-01-10 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:10:21] Production.INFO: ==30181== Releasing lock... [2025-01-10 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:11:05 [end_date_ymd] => 2025-01-10 02:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:11:05' and `end` < '2025-01-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-01-10 02:11:18] Production.INFO: count ==204 [2025-01-10 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:11:05 - End Time 2025-01-10 02:11:05 [2025-01-10 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213770', 'tblTempUsageDetail_20' ) start [2025-01-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213770', 'tblTempUsageDetail_20' ) end [2025-01-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213770', 'tblTempVendorCDR_20' ) start [2025-01-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213770', 'tblTempVendorCDR_20' ) end [2025-01-10 02:11:18] Production.INFO: ProcessCDR(1,14213770,1,1,2) [2025-01-10 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213770', 'tblTempUsageDetail_20' ) start [2025-01-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213770', 'tblTempUsageDetail_20' ) end [2025-01-10 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:11:21] Production.INFO: ==30256== Releasing lock... [2025-01-10 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:12:05 [end_date_ymd] => 2025-01-10 02:12:05 [RateCDR] => 1 ) [2025-01-10 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:12:05' and `end` < '2025-01-10 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:12:19] Production.INFO: count ==204 [2025-01-10 02:12:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:12:05 - End Time 2025-01-10 02:12:05 [2025-01-10 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213775', 'tblTempUsageDetail_20' ) start [2025-01-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213775', 'tblTempUsageDetail_20' ) end [2025-01-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213775', 'tblTempVendorCDR_20' ) start [2025-01-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213775', 'tblTempVendorCDR_20' ) end [2025-01-10 02:12:19] Production.INFO: ProcessCDR(1,14213775,1,1,2) [2025-01-10 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213775', 'tblTempUsageDetail_20' ) start [2025-01-10 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213775', 'tblTempUsageDetail_20' ) end [2025-01-10 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:12:22] Production.INFO: ==30326== Releasing lock... [2025-01-10 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:13:05 [end_date_ymd] => 2025-01-10 02:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:13:05' and `end` < '2025-01-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-01-10 02:13:19] Production.INFO: count ==204 [2025-01-10 02:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:13:05 - End Time 2025-01-10 02:13:05 [2025-01-10 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213780', 'tblTempUsageDetail_20' ) start [2025-01-10 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213780', 'tblTempUsageDetail_20' ) end [2025-01-10 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213780', 'tblTempVendorCDR_20' ) start [2025-01-10 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213780', 'tblTempVendorCDR_20' ) end [2025-01-10 02:13:19] Production.INFO: ProcessCDR(1,14213780,1,1,2) [2025-01-10 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213780', 'tblTempUsageDetail_20' ) start [2025-01-10 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213780', 'tblTempUsageDetail_20' ) end [2025-01-10 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:13:22] Production.INFO: ==30398== Releasing lock... [2025-01-10 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:13:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:14:04 [end_date_ymd] => 2025-01-10 02:14:04 [RateCDR] => 1 ) [2025-01-10 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:14:04' and `end` < '2025-01-10 02:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:14:17] Production.INFO: count ==203 [2025-01-10 02:14:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:14:04 - End Time 2025-01-10 02:14:04 [2025-01-10 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213785', 'tblTempUsageDetail_20' ) start [2025-01-10 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213785', 'tblTempUsageDetail_20' ) end [2025-01-10 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213785', 'tblTempVendorCDR_20' ) start [2025-01-10 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213785', 'tblTempVendorCDR_20' ) end [2025-01-10 02:14:17] Production.INFO: ProcessCDR(1,14213785,1,1,2) [2025-01-10 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213785', 'tblTempUsageDetail_20' ) start [2025-01-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213785', 'tblTempUsageDetail_20' ) end [2025-01-10 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:14:21] Production.INFO: ==30470== Releasing lock... [2025-01-10 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:15:05 [end_date_ymd] => 2025-01-10 02:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:15:05' and `end` < '2025-01-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-01-10 02:15:18] Production.INFO: count ==201 [2025-01-10 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:15:05 - End Time 2025-01-10 02:15:05 [2025-01-10 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213790', 'tblTempUsageDetail_20' ) start [2025-01-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213790', 'tblTempUsageDetail_20' ) end [2025-01-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213790', 'tblTempVendorCDR_20' ) start [2025-01-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213790', 'tblTempVendorCDR_20' ) end [2025-01-10 02:15:18] Production.INFO: ProcessCDR(1,14213790,1,1,2) [2025-01-10 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213790', 'tblTempUsageDetail_20' ) start [2025-01-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213790', 'tblTempUsageDetail_20' ) end [2025-01-10 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:15:21] Production.INFO: ==30541== Releasing lock... [2025-01-10 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:16:05 [end_date_ymd] => 2025-01-10 02:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:16:05' and `end` < '2025-01-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-01-10 02:16:19] Production.INFO: count ==200 [2025-01-10 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:16:05 - End Time 2025-01-10 02:16:05 [2025-01-10 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213795', 'tblTempUsageDetail_20' ) start [2025-01-10 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213795', 'tblTempUsageDetail_20' ) end [2025-01-10 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213795', 'tblTempVendorCDR_20' ) start [2025-01-10 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213795', 'tblTempVendorCDR_20' ) end [2025-01-10 02:16:19] Production.INFO: ProcessCDR(1,14213795,1,1,2) [2025-01-10 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213795', 'tblTempUsageDetail_20' ) start [2025-01-10 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213795', 'tblTempUsageDetail_20' ) end [2025-01-10 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:16:22] Production.INFO: ==30611== Releasing lock... [2025-01-10 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:17:04 [end_date_ymd] => 2025-01-10 02:17:04 [RateCDR] => 1 ) [2025-01-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-01-09 23:17:04' and `end` < '2025-01-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-01-10 02:17:17] Production.INFO: count ==196 [2025-01-10 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:17:04 - End Time 2025-01-10 02:17:04 [2025-01-10 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213800', 'tblTempUsageDetail_20' ) start [2025-01-10 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213800', 'tblTempUsageDetail_20' ) end [2025-01-10 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213800', 'tblTempVendorCDR_20' ) start [2025-01-10 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213800', 'tblTempVendorCDR_20' ) end [2025-01-10 02:17:17] Production.INFO: ProcessCDR(1,14213800,1,1,2) [2025-01-10 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213800', 'tblTempUsageDetail_20' ) start [2025-01-10 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213800', 'tblTempUsageDetail_20' ) end [2025-01-10 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:17:20] Production.INFO: ==30679== Releasing lock... [2025-01-10 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:18:05 [end_date_ymd] => 2025-01-10 02:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:18:05' and `end` < '2025-01-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-01-10 02:18:18] Production.INFO: count ==194 [2025-01-10 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:18:05 - End Time 2025-01-10 02:18:05 [2025-01-10 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213805', 'tblTempUsageDetail_20' ) start [2025-01-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213805', 'tblTempUsageDetail_20' ) end [2025-01-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213805', 'tblTempVendorCDR_20' ) start [2025-01-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213805', 'tblTempVendorCDR_20' ) end [2025-01-10 02:18:18] Production.INFO: ProcessCDR(1,14213805,1,1,2) [2025-01-10 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213805', 'tblTempUsageDetail_20' ) start [2025-01-10 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213805', 'tblTempUsageDetail_20' ) end [2025-01-10 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:18:21] Production.INFO: ==30751== Releasing lock... [2025-01-10 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:19:05 [end_date_ymd] => 2025-01-10 02:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:19:05' and `end` < '2025-01-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-01-10 02:19:19] Production.INFO: count ==194 [2025-01-10 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:19:05 - End Time 2025-01-10 02:19:05 [2025-01-10 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213810', 'tblTempUsageDetail_20' ) start [2025-01-10 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213810', 'tblTempUsageDetail_20' ) end [2025-01-10 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213810', 'tblTempVendorCDR_20' ) start [2025-01-10 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213810', 'tblTempVendorCDR_20' ) end [2025-01-10 02:19:19] Production.INFO: ProcessCDR(1,14213810,1,1,2) [2025-01-10 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213810', 'tblTempUsageDetail_20' ) start [2025-01-10 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213810', 'tblTempUsageDetail_20' ) end [2025-01-10 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:19:22] Production.INFO: ==30829== Releasing lock... [2025-01-10 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:20:05 [end_date_ymd] => 2025-01-10 02:20:05 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:20:05' and `end` < '2025-01-10 02: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-01-10 02:20:18] Production.INFO: count ==198 [2025-01-10 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:20:05 - End Time 2025-01-10 02:20:05 [2025-01-10 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213816', 'tblTempUsageDetail_20' ) start [2025-01-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213816', 'tblTempUsageDetail_20' ) end [2025-01-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213816', 'tblTempVendorCDR_20' ) start [2025-01-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213816', 'tblTempVendorCDR_20' ) end [2025-01-10 02:20:18] Production.INFO: ProcessCDR(1,14213816,1,1,2) [2025-01-10 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213816', 'tblTempUsageDetail_20' ) start [2025-01-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213816', 'tblTempUsageDetail_20' ) end [2025-01-10 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:20:22] Production.INFO: ==30947== Releasing lock... [2025-01-10 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:21:05 [end_date_ymd] => 2025-01-10 02:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:21:05' and `end` < '2025-01-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-01-10 02:21:18] Production.INFO: count ==201 [2025-01-10 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:21:05 - End Time 2025-01-10 02:21:05 [2025-01-10 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213821', 'tblTempUsageDetail_20' ) start [2025-01-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213821', 'tblTempUsageDetail_20' ) end [2025-01-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213821', 'tblTempVendorCDR_20' ) start [2025-01-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213821', 'tblTempVendorCDR_20' ) end [2025-01-10 02:21:18] Production.INFO: ProcessCDR(1,14213821,1,1,2) [2025-01-10 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213821', 'tblTempUsageDetail_20' ) start [2025-01-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213821', 'tblTempUsageDetail_20' ) end [2025-01-10 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:21:21] Production.INFO: ==31026== Releasing lock... [2025-01-10 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:22:04 [end_date_ymd] => 2025-01-10 02:22:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:22:04' and `end` < '2025-01-10 02: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-01-10 02:22:17] Production.INFO: count ==201 [2025-01-10 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:22:04 - End Time 2025-01-10 02:22:04 [2025-01-10 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213826', 'tblTempUsageDetail_20' ) start [2025-01-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213826', 'tblTempUsageDetail_20' ) end [2025-01-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213826', 'tblTempVendorCDR_20' ) start [2025-01-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213826', 'tblTempVendorCDR_20' ) end [2025-01-10 02:22:17] Production.INFO: ProcessCDR(1,14213826,1,1,2) [2025-01-10 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213826', 'tblTempUsageDetail_20' ) start [2025-01-10 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213826', 'tblTempUsageDetail_20' ) end [2025-01-10 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:22:20] Production.INFO: ==31107== Releasing lock... [2025-01-10 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:23:05 [end_date_ymd] => 2025-01-10 02:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:23:05' and `end` < '2025-01-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-01-10 02:23:19] Production.INFO: count ==201 [2025-01-10 02:23:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:23:05 - End Time 2025-01-10 02:23:05 [2025-01-10 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213831', 'tblTempUsageDetail_20' ) start [2025-01-10 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213831', 'tblTempUsageDetail_20' ) end [2025-01-10 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213831', 'tblTempVendorCDR_20' ) start [2025-01-10 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213831', 'tblTempVendorCDR_20' ) end [2025-01-10 02:23:19] Production.INFO: ProcessCDR(1,14213831,1,1,2) [2025-01-10 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213831', 'tblTempUsageDetail_20' ) start [2025-01-10 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213831', 'tblTempUsageDetail_20' ) end [2025-01-10 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:23:22] Production.INFO: ==31205== Releasing lock... [2025-01-10 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:24:05 [end_date_ymd] => 2025-01-10 02:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:24:05' and `end` < '2025-01-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-01-10 02:24:18] Production.INFO: count ==201 [2025-01-10 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:24:05 - End Time 2025-01-10 02:24:05 [2025-01-10 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213836', 'tblTempUsageDetail_20' ) start [2025-01-10 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213836', 'tblTempUsageDetail_20' ) end [2025-01-10 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213836', 'tblTempVendorCDR_20' ) start [2025-01-10 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213836', 'tblTempVendorCDR_20' ) end [2025-01-10 02:24:18] Production.INFO: ProcessCDR(1,14213836,1,1,2) [2025-01-10 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213836', 'tblTempUsageDetail_20' ) start [2025-01-10 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213836', 'tblTempUsageDetail_20' ) end [2025-01-10 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:24:21] Production.INFO: ==31305== Releasing lock... [2025-01-10 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:25:05 [end_date_ymd] => 2025-01-10 02:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:25:05' and `end` < '2025-01-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-01-10 02:25:18] Production.INFO: count ==201 [2025-01-10 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:25:05 - End Time 2025-01-10 02:25:05 [2025-01-10 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213841', 'tblTempUsageDetail_20' ) start [2025-01-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213841', 'tblTempUsageDetail_20' ) end [2025-01-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213841', 'tblTempVendorCDR_20' ) start [2025-01-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213841', 'tblTempVendorCDR_20' ) end [2025-01-10 02:25:18] Production.INFO: ProcessCDR(1,14213841,1,1,2) [2025-01-10 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213841', 'tblTempUsageDetail_20' ) start [2025-01-10 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213841', 'tblTempUsageDetail_20' ) end [2025-01-10 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:25:21] Production.INFO: ==31400== Releasing lock... [2025-01-10 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:26:04 [end_date_ymd] => 2025-01-10 02:26:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:26:04' and `end` < '2025-01-10 02: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-01-10 02:26:18] Production.INFO: count ==201 [2025-01-10 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:26:04 - End Time 2025-01-10 02:26:04 [2025-01-10 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213846', 'tblTempUsageDetail_20' ) start [2025-01-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213846', 'tblTempUsageDetail_20' ) end [2025-01-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213846', 'tblTempVendorCDR_20' ) start [2025-01-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213846', 'tblTempVendorCDR_20' ) end [2025-01-10 02:26:18] Production.INFO: ProcessCDR(1,14213846,1,1,2) [2025-01-10 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213846', 'tblTempUsageDetail_20' ) start [2025-01-10 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213846', 'tblTempUsageDetail_20' ) end [2025-01-10 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:26:21] Production.INFO: ==31498== Releasing lock... [2025-01-10 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:27:05 [end_date_ymd] => 2025-01-10 02:27:05 [RateCDR] => 1 ) [2025-01-10 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:27:05' and `end` < '2025-01-10 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:27:18] Production.INFO: count ==201 [2025-01-10 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:27:05 - End Time 2025-01-10 02:27:05 [2025-01-10 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213851', 'tblTempUsageDetail_20' ) start [2025-01-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213851', 'tblTempUsageDetail_20' ) end [2025-01-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213851', 'tblTempVendorCDR_20' ) start [2025-01-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213851', 'tblTempVendorCDR_20' ) end [2025-01-10 02:27:18] Production.INFO: ProcessCDR(1,14213851,1,1,2) [2025-01-10 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213851', 'tblTempUsageDetail_20' ) start [2025-01-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213851', 'tblTempUsageDetail_20' ) end [2025-01-10 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:27:21] Production.INFO: ==31605== Releasing lock... [2025-01-10 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:28:05 [end_date_ymd] => 2025-01-10 02:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:28:05' and `end` < '2025-01-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-01-10 02:28:18] Production.INFO: count ==201 [2025-01-10 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:28:05 - End Time 2025-01-10 02:28:05 [2025-01-10 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213856', 'tblTempUsageDetail_20' ) start [2025-01-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213856', 'tblTempUsageDetail_20' ) end [2025-01-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213856', 'tblTempVendorCDR_20' ) start [2025-01-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213856', 'tblTempVendorCDR_20' ) end [2025-01-10 02:28:18] Production.INFO: ProcessCDR(1,14213856,1,1,2) [2025-01-10 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213856', 'tblTempUsageDetail_20' ) start [2025-01-10 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213856', 'tblTempUsageDetail_20' ) end [2025-01-10 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:28:21] Production.INFO: ==31711== Releasing lock... [2025-01-10 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:29:04 [end_date_ymd] => 2025-01-10 02:29:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:29:04' and `end` < '2025-01-10 02: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-01-10 02:29:18] Production.INFO: count ==201 [2025-01-10 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:29:04 - End Time 2025-01-10 02:29:04 [2025-01-10 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213860', 'tblTempUsageDetail_20' ) start [2025-01-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213860', 'tblTempUsageDetail_20' ) end [2025-01-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213860', 'tblTempVendorCDR_20' ) start [2025-01-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213860', 'tblTempVendorCDR_20' ) end [2025-01-10 02:29:18] Production.INFO: ProcessCDR(1,14213860,1,1,2) [2025-01-10 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213860', 'tblTempUsageDetail_20' ) start [2025-01-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213860', 'tblTempUsageDetail_20' ) end [2025-01-10 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:29:21] Production.INFO: ==31813== Releasing lock... [2025-01-10 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:30:06 [end_date_ymd] => 2025-01-10 02:30:06 [RateCDR] => 1 ) [2025-01-10 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:30:06' and `end` < '2025-01-10 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:30:19] Production.INFO: count ==209 [2025-01-10 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:30:06 - End Time 2025-01-10 02:30:06 [2025-01-10 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213866', 'tblTempUsageDetail_20' ) start [2025-01-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213866', 'tblTempUsageDetail_20' ) end [2025-01-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213866', 'tblTempVendorCDR_20' ) start [2025-01-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213866', 'tblTempVendorCDR_20' ) end [2025-01-10 02:30:19] Production.INFO: ProcessCDR(1,14213866,1,1,2) [2025-01-10 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213866', 'tblTempUsageDetail_20' ) start [2025-01-10 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213866', 'tblTempUsageDetail_20' ) end [2025-01-10 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:30:22] Production.INFO: ==31922== Releasing lock... [2025-01-10 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:31:05 [end_date_ymd] => 2025-01-10 02:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:31:05' and `end` < '2025-01-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-01-10 02:31:18] Production.INFO: count ==216 [2025-01-10 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:31:05 - End Time 2025-01-10 02:31:05 [2025-01-10 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213872', 'tblTempUsageDetail_20' ) start [2025-01-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213872', 'tblTempUsageDetail_20' ) end [2025-01-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213872', 'tblTempVendorCDR_20' ) start [2025-01-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213872', 'tblTempVendorCDR_20' ) end [2025-01-10 02:31:18] Production.INFO: ProcessCDR(1,14213872,1,1,2) [2025-01-10 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213872', 'tblTempUsageDetail_20' ) start [2025-01-10 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213872', 'tblTempUsageDetail_20' ) end [2025-01-10 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:31:22] Production.INFO: ==32034== Releasing lock... [2025-01-10 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:32:06 [end_date_ymd] => 2025-01-10 02:32:06 [RateCDR] => 1 ) [2025-01-10 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:32:06' and `end` < '2025-01-10 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:32:20] Production.INFO: count ==213 [2025-01-10 02:32:20] Production.ERROR: pbx CDR StartTime 2025-01-09 23:32:06 - End Time 2025-01-10 02:32:06 [2025-01-10 02:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213877', 'tblTempUsageDetail_20' ) start [2025-01-10 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213877', 'tblTempUsageDetail_20' ) end [2025-01-10 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213877', 'tblTempVendorCDR_20' ) start [2025-01-10 02:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213877', 'tblTempVendorCDR_20' ) end [2025-01-10 02:32:20] Production.INFO: ProcessCDR(1,14213877,1,1,2) [2025-01-10 02:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213877', 'tblTempUsageDetail_20' ) start [2025-01-10 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213877', 'tblTempUsageDetail_20' ) end [2025-01-10 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:32:23] Production.INFO: ==32139== Releasing lock... [2025-01-10 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:32:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:33:05 [end_date_ymd] => 2025-01-10 02:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:33:05' and `end` < '2025-01-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-01-10 02:33:18] Production.INFO: count ==213 [2025-01-10 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:33:05 - End Time 2025-01-10 02:33:05 [2025-01-10 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213882', 'tblTempUsageDetail_20' ) start [2025-01-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213882', 'tblTempUsageDetail_20' ) end [2025-01-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213882', 'tblTempVendorCDR_20' ) start [2025-01-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213882', 'tblTempVendorCDR_20' ) end [2025-01-10 02:33:18] Production.INFO: ProcessCDR(1,14213882,1,1,2) [2025-01-10 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213882', 'tblTempUsageDetail_20' ) start [2025-01-10 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213882', 'tblTempUsageDetail_20' ) end [2025-01-10 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:33:21] Production.INFO: ==32242== Releasing lock... [2025-01-10 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:34:06 [end_date_ymd] => 2025-01-10 02:34:06 [RateCDR] => 1 ) [2025-01-10 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:34:06' and `end` < '2025-01-10 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:34:20] Production.INFO: count ==213 [2025-01-10 02:34:20] Production.ERROR: pbx CDR StartTime 2025-01-09 23:34:06 - End Time 2025-01-10 02:34:06 [2025-01-10 02:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213887', 'tblTempUsageDetail_20' ) start [2025-01-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213887', 'tblTempUsageDetail_20' ) end [2025-01-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213887', 'tblTempVendorCDR_20' ) start [2025-01-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213887', 'tblTempVendorCDR_20' ) end [2025-01-10 02:34:20] Production.INFO: ProcessCDR(1,14213887,1,1,2) [2025-01-10 02:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213887', 'tblTempUsageDetail_20' ) start [2025-01-10 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213887', 'tblTempUsageDetail_20' ) end [2025-01-10 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:34:23] Production.INFO: ==32351== Releasing lock... [2025-01-10 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:34:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:35:04 [end_date_ymd] => 2025-01-10 02:35:04 [RateCDR] => 1 ) [2025-01-10 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:35:04' and `end` < '2025-01-10 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:35:18] Production.INFO: count ==213 [2025-01-10 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:35:04 - End Time 2025-01-10 02:35:04 [2025-01-10 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213892', 'tblTempUsageDetail_20' ) start [2025-01-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213892', 'tblTempUsageDetail_20' ) end [2025-01-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213892', 'tblTempVendorCDR_20' ) start [2025-01-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213892', 'tblTempVendorCDR_20' ) end [2025-01-10 02:35:18] Production.INFO: ProcessCDR(1,14213892,1,1,2) [2025-01-10 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213892', 'tblTempUsageDetail_20' ) start [2025-01-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213892', 'tblTempUsageDetail_20' ) end [2025-01-10 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:35:22] Production.INFO: ==32452== Releasing lock... [2025-01-10 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:35:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:36:05 [end_date_ymd] => 2025-01-10 02:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:36:05' and `end` < '2025-01-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-01-10 02:36:19] Production.INFO: count ==213 [2025-01-10 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:36:05 - End Time 2025-01-10 02:36:05 [2025-01-10 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213897', 'tblTempUsageDetail_20' ) start [2025-01-10 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213897', 'tblTempUsageDetail_20' ) end [2025-01-10 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213897', 'tblTempVendorCDR_20' ) start [2025-01-10 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213897', 'tblTempVendorCDR_20' ) end [2025-01-10 02:36:19] Production.INFO: ProcessCDR(1,14213897,1,1,2) [2025-01-10 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213897', 'tblTempUsageDetail_20' ) start [2025-01-10 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213897', 'tblTempUsageDetail_20' ) end [2025-01-10 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:36:22] Production.INFO: ==32600== Releasing lock... [2025-01-10 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:36:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:37:04 [end_date_ymd] => 2025-01-10 02:37:04 [RateCDR] => 1 ) [2025-01-10 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:37:04' and `end` < '2025-01-10 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:37:17] Production.INFO: count ==210 [2025-01-10 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:37:04 - End Time 2025-01-10 02:37:04 [2025-01-10 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213902', 'tblTempUsageDetail_20' ) start [2025-01-10 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213902', 'tblTempUsageDetail_20' ) end [2025-01-10 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213902', 'tblTempVendorCDR_20' ) start [2025-01-10 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213902', 'tblTempVendorCDR_20' ) end [2025-01-10 02:37:17] Production.INFO: ProcessCDR(1,14213902,1,1,2) [2025-01-10 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213902', 'tblTempUsageDetail_20' ) start [2025-01-10 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213902', 'tblTempUsageDetail_20' ) end [2025-01-10 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:37:21] Production.INFO: ==32704== Releasing lock... [2025-01-10 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:38:05 [end_date_ymd] => 2025-01-10 02:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:38:05' and `end` < '2025-01-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-01-10 02:38:19] Production.INFO: count ==208 [2025-01-10 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:38:05 - End Time 2025-01-10 02:38:05 [2025-01-10 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213907', 'tblTempUsageDetail_20' ) start [2025-01-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213907', 'tblTempUsageDetail_20' ) end [2025-01-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213907', 'tblTempVendorCDR_20' ) start [2025-01-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213907', 'tblTempVendorCDR_20' ) end [2025-01-10 02:38:19] Production.INFO: ProcessCDR(1,14213907,1,1,2) [2025-01-10 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213907', 'tblTempUsageDetail_20' ) start [2025-01-10 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213907', 'tblTempUsageDetail_20' ) end [2025-01-10 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:38:22] Production.INFO: ==358== Releasing lock... [2025-01-10 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:39:05 [end_date_ymd] => 2025-01-10 02:39:05 [RateCDR] => 1 ) [2025-01-10 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:39:05' and `end` < '2025-01-10 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:39:18] Production.INFO: count ==208 [2025-01-10 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:39:05 - End Time 2025-01-10 02:39:05 [2025-01-10 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213912', 'tblTempUsageDetail_20' ) start [2025-01-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213912', 'tblTempUsageDetail_20' ) end [2025-01-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213912', 'tblTempVendorCDR_20' ) start [2025-01-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213912', 'tblTempVendorCDR_20' ) end [2025-01-10 02:39:18] Production.INFO: ProcessCDR(1,14213912,1,1,2) [2025-01-10 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213912', 'tblTempUsageDetail_20' ) start [2025-01-10 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213912', 'tblTempUsageDetail_20' ) end [2025-01-10 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:39:21] Production.INFO: ==460== Releasing lock... [2025-01-10 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:40:06 [end_date_ymd] => 2025-01-10 02:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 23:40:06' and `end` < '2025-01-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-01-10 02:40:19] Production.INFO: count ==212 [2025-01-10 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:40:06 - End Time 2025-01-10 02:40:06 [2025-01-10 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213918', 'tblTempUsageDetail_20' ) start [2025-01-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213918', 'tblTempUsageDetail_20' ) end [2025-01-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213918', 'tblTempVendorCDR_20' ) start [2025-01-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213918', 'tblTempVendorCDR_20' ) end [2025-01-10 02:40:19] Production.INFO: ProcessCDR(1,14213918,1,1,2) [2025-01-10 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213918', 'tblTempUsageDetail_20' ) start [2025-01-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213918', 'tblTempUsageDetail_20' ) end [2025-01-10 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:40:22] Production.INFO: ==573== Releasing lock... [2025-01-10 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:41:05 [end_date_ymd] => 2025-01-10 02:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:41:05' and `end` < '2025-01-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-01-10 02:41:19] Production.INFO: count ==211 [2025-01-10 02:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:41:05 - End Time 2025-01-10 02:41:05 [2025-01-10 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213923', 'tblTempUsageDetail_20' ) start [2025-01-10 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213923', 'tblTempUsageDetail_20' ) end [2025-01-10 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213923', 'tblTempVendorCDR_20' ) start [2025-01-10 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213923', 'tblTempVendorCDR_20' ) end [2025-01-10 02:41:19] Production.INFO: ProcessCDR(1,14213923,1,1,2) [2025-01-10 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213923', 'tblTempUsageDetail_20' ) start [2025-01-10 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213923', 'tblTempUsageDetail_20' ) end [2025-01-10 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:41:22] Production.INFO: ==706== Releasing lock... [2025-01-10 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:41:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:42:05 [end_date_ymd] => 2025-01-10 02:42:05 [RateCDR] => 1 ) [2025-01-10 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:42:05' and `end` < '2025-01-10 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:42:18] Production.INFO: count ==211 [2025-01-10 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:42:05 - End Time 2025-01-10 02:42:05 [2025-01-10 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213928', 'tblTempUsageDetail_20' ) start [2025-01-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213928', 'tblTempUsageDetail_20' ) end [2025-01-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213928', 'tblTempVendorCDR_20' ) start [2025-01-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213928', 'tblTempVendorCDR_20' ) end [2025-01-10 02:42:18] Production.INFO: ProcessCDR(1,14213928,1,1,2) [2025-01-10 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213928', 'tblTempUsageDetail_20' ) start [2025-01-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213928', 'tblTempUsageDetail_20' ) end [2025-01-10 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:42:21] Production.INFO: ==810== Releasing lock... [2025-01-10 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:43:04 [end_date_ymd] => 2025-01-10 02:43:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:43:04' and `end` < '2025-01-10 02: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-01-10 02:43:17] Production.INFO: count ==211 [2025-01-10 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:43:04 - End Time 2025-01-10 02:43:04 [2025-01-10 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213933', 'tblTempUsageDetail_20' ) start [2025-01-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213933', 'tblTempUsageDetail_20' ) end [2025-01-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213933', 'tblTempVendorCDR_20' ) start [2025-01-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213933', 'tblTempVendorCDR_20' ) end [2025-01-10 02:43:17] Production.INFO: ProcessCDR(1,14213933,1,1,2) [2025-01-10 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213933', 'tblTempUsageDetail_20' ) start [2025-01-10 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213933', 'tblTempUsageDetail_20' ) end [2025-01-10 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:43:20] Production.INFO: ==896== Releasing lock... [2025-01-10 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:43:20] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:44:05 [end_date_ymd] => 2025-01-10 02:44:05 [RateCDR] => 1 ) [2025-01-10 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:44:05' and `end` < '2025-01-10 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:44:18] Production.INFO: count ==212 [2025-01-10 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:44:05 - End Time 2025-01-10 02:44:05 [2025-01-10 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213938', 'tblTempUsageDetail_20' ) start [2025-01-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213938', 'tblTempUsageDetail_20' ) end [2025-01-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213938', 'tblTempVendorCDR_20' ) start [2025-01-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213938', 'tblTempVendorCDR_20' ) end [2025-01-10 02:44:18] Production.INFO: ProcessCDR(1,14213938,1,1,2) [2025-01-10 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213938', 'tblTempUsageDetail_20' ) start [2025-01-10 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213938', 'tblTempUsageDetail_20' ) end [2025-01-10 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:44:21] Production.INFO: ==985== Releasing lock... [2025-01-10 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:45:05 [end_date_ymd] => 2025-01-10 02:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:45:05' and `end` < '2025-01-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-01-10 02:45:18] Production.INFO: count ==213 [2025-01-10 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:45:05 - End Time 2025-01-10 02:45:05 [2025-01-10 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213943', 'tblTempUsageDetail_20' ) start [2025-01-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213943', 'tblTempUsageDetail_20' ) end [2025-01-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213943', 'tblTempVendorCDR_20' ) start [2025-01-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213943', 'tblTempVendorCDR_20' ) end [2025-01-10 02:45:18] Production.INFO: ProcessCDR(1,14213943,1,1,2) [2025-01-10 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213943', 'tblTempUsageDetail_20' ) start [2025-01-10 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213943', 'tblTempUsageDetail_20' ) end [2025-01-10 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:45:23] Production.INFO: ==1071== Releasing lock... [2025-01-10 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:45:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:46:05 [end_date_ymd] => 2025-01-10 02:46:05 [RateCDR] => 1 ) [2025-01-10 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:46:05' and `end` < '2025-01-10 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:46:19] Production.INFO: count ==213 [2025-01-10 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:46:05 - End Time 2025-01-10 02:46:05 [2025-01-10 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213948', 'tblTempUsageDetail_20' ) start [2025-01-10 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213948', 'tblTempUsageDetail_20' ) end [2025-01-10 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213948', 'tblTempVendorCDR_20' ) start [2025-01-10 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213948', 'tblTempVendorCDR_20' ) end [2025-01-10 02:46:19] Production.INFO: ProcessCDR(1,14213948,1,1,2) [2025-01-10 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213948', 'tblTempUsageDetail_20' ) start [2025-01-10 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213948', 'tblTempUsageDetail_20' ) end [2025-01-10 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:46:23] Production.INFO: ==1164== Releasing lock... [2025-01-10 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:46:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:47:05 [end_date_ymd] => 2025-01-10 02:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:47:05' and `end` < '2025-01-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-01-10 02:47:18] Production.INFO: count ==213 [2025-01-10 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:47:05 - End Time 2025-01-10 02:47:05 [2025-01-10 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213953', 'tblTempUsageDetail_20' ) start [2025-01-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213953', 'tblTempUsageDetail_20' ) end [2025-01-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213953', 'tblTempVendorCDR_20' ) start [2025-01-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213953', 'tblTempVendorCDR_20' ) end [2025-01-10 02:47:18] Production.INFO: ProcessCDR(1,14213953,1,1,2) [2025-01-10 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213953', 'tblTempUsageDetail_20' ) start [2025-01-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213953', 'tblTempUsageDetail_20' ) end [2025-01-10 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:47:21] Production.INFO: ==1266== Releasing lock... [2025-01-10 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:48:05 [end_date_ymd] => 2025-01-10 02:48:05 [RateCDR] => 1 ) [2025-01-10 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:48:05' and `end` < '2025-01-10 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:48:18] Production.INFO: count ==213 [2025-01-10 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:48:05 - End Time 2025-01-10 02:48:05 [2025-01-10 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213958', 'tblTempUsageDetail_20' ) start [2025-01-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213958', 'tblTempUsageDetail_20' ) end [2025-01-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213958', 'tblTempVendorCDR_20' ) start [2025-01-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213958', 'tblTempVendorCDR_20' ) end [2025-01-10 02:48:18] Production.INFO: ProcessCDR(1,14213958,1,1,2) [2025-01-10 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213958', 'tblTempUsageDetail_20' ) start [2025-01-10 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213958', 'tblTempUsageDetail_20' ) end [2025-01-10 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:48:21] Production.INFO: ==1356== Releasing lock... [2025-01-10 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:49:05 [end_date_ymd] => 2025-01-10 02:49:05 [RateCDR] => 1 ) [2025-01-10 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:49:05' and `end` < '2025-01-10 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:49:19] Production.INFO: count ==213 [2025-01-10 02:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:49:05 - End Time 2025-01-10 02:49:05 [2025-01-10 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213963', 'tblTempUsageDetail_20' ) start [2025-01-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213963', 'tblTempUsageDetail_20' ) end [2025-01-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213963', 'tblTempVendorCDR_20' ) start [2025-01-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213963', 'tblTempVendorCDR_20' ) end [2025-01-10 02:49:19] Production.INFO: ProcessCDR(1,14213963,1,1,2) [2025-01-10 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213963', 'tblTempUsageDetail_20' ) start [2025-01-10 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213963', 'tblTempUsageDetail_20' ) end [2025-01-10 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:49:22] Production.INFO: ==1443== Releasing lock... [2025-01-10 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:50:06 [end_date_ymd] => 2025-01-10 02:50:06 [RateCDR] => 1 ) [2025-01-10 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:50:06' and `end` < '2025-01-10 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:50:19] Production.INFO: count ==215 [2025-01-10 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:50:06 - End Time 2025-01-10 02:50:06 [2025-01-10 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213969', 'tblTempUsageDetail_20' ) start [2025-01-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213969', 'tblTempUsageDetail_20' ) end [2025-01-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213969', 'tblTempVendorCDR_20' ) start [2025-01-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213969', 'tblTempVendorCDR_20' ) end [2025-01-10 02:50:19] Production.INFO: ProcessCDR(1,14213969,1,1,2) [2025-01-10 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213969', 'tblTempUsageDetail_20' ) start [2025-01-10 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213969', 'tblTempUsageDetail_20' ) end [2025-01-10 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:50:22] Production.INFO: ==1577== Releasing lock... [2025-01-10 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:50:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:51:05 [end_date_ymd] => 2025-01-10 02:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:51:05' and `end` < '2025-01-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-01-10 02:51:18] Production.INFO: count ==215 [2025-01-10 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:51:05 - End Time 2025-01-10 02:51:05 [2025-01-10 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213974', 'tblTempUsageDetail_20' ) start [2025-01-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213974', 'tblTempUsageDetail_20' ) end [2025-01-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213974', 'tblTempVendorCDR_20' ) start [2025-01-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213974', 'tblTempVendorCDR_20' ) end [2025-01-10 02:51:18] Production.INFO: ProcessCDR(1,14213974,1,1,2) [2025-01-10 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213974', 'tblTempUsageDetail_20' ) start [2025-01-10 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213974', 'tblTempUsageDetail_20' ) end [2025-01-10 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:51:22] Production.INFO: ==1701== Releasing lock... [2025-01-10 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:51:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:52:04 [end_date_ymd] => 2025-01-10 02:52:04 [RateCDR] => 1 ) [2025-01-10 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:52:04' and `end` < '2025-01-10 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:52:18] Production.INFO: count ==215 [2025-01-10 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:52:04 - End Time 2025-01-10 02:52:04 [2025-01-10 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213979', 'tblTempUsageDetail_20' ) start [2025-01-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213979', 'tblTempUsageDetail_20' ) end [2025-01-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213979', 'tblTempVendorCDR_20' ) start [2025-01-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213979', 'tblTempVendorCDR_20' ) end [2025-01-10 02:52:18] Production.INFO: ProcessCDR(1,14213979,1,1,2) [2025-01-10 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213979', 'tblTempUsageDetail_20' ) start [2025-01-10 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213979', 'tblTempUsageDetail_20' ) end [2025-01-10 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:52:22] Production.INFO: ==1776== Releasing lock... [2025-01-10 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:52:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:53:05 [end_date_ymd] => 2025-01-10 02:53:05 [RateCDR] => 1 ) [2025-01-10 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:53:05' and `end` < '2025-01-10 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:53:19] Production.INFO: count ==215 [2025-01-10 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:53:05 - End Time 2025-01-10 02:53:05 [2025-01-10 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213984', 'tblTempUsageDetail_20' ) start [2025-01-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213984', 'tblTempUsageDetail_20' ) end [2025-01-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213984', 'tblTempVendorCDR_20' ) start [2025-01-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213984', 'tblTempVendorCDR_20' ) end [2025-01-10 02:53:19] Production.INFO: ProcessCDR(1,14213984,1,1,2) [2025-01-10 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213984', 'tblTempUsageDetail_20' ) start [2025-01-10 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213984', 'tblTempUsageDetail_20' ) end [2025-01-10 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:53:22] Production.INFO: ==1860== Releasing lock... [2025-01-10 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:54:05 [end_date_ymd] => 2025-01-10 02:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:54:05' and `end` < '2025-01-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-01-10 02:54:18] Production.INFO: count ==213 [2025-01-10 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:54:05 - End Time 2025-01-10 02:54:05 [2025-01-10 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213989', 'tblTempUsageDetail_20' ) start [2025-01-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213989', 'tblTempUsageDetail_20' ) end [2025-01-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213989', 'tblTempVendorCDR_20' ) start [2025-01-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213989', 'tblTempVendorCDR_20' ) end [2025-01-10 02:54:18] Production.INFO: ProcessCDR(1,14213989,1,1,2) [2025-01-10 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213989', 'tblTempUsageDetail_20' ) start [2025-01-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213989', 'tblTempUsageDetail_20' ) end [2025-01-10 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:54:21] Production.INFO: ==1938== Releasing lock... [2025-01-10 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:54:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:55:04 [end_date_ymd] => 2025-01-10 02:55:04 [RateCDR] => 1 ) [2025-01-10 02:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 23:55:04' and `end` < '2025-01-10 02:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 02:55:17] Production.INFO: count ==213 [2025-01-10 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-09 23:55:04 - End Time 2025-01-10 02:55:04 [2025-01-10 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213994', 'tblTempUsageDetail_20' ) start [2025-01-10 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213994', 'tblTempUsageDetail_20' ) end [2025-01-10 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213994', 'tblTempVendorCDR_20' ) start [2025-01-10 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213994', 'tblTempVendorCDR_20' ) end [2025-01-10 02:55:17] Production.INFO: ProcessCDR(1,14213994,1,1,2) [2025-01-10 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213994', 'tblTempUsageDetail_20' ) start [2025-01-10 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213994', 'tblTempUsageDetail_20' ) end [2025-01-10 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:55:21] Production.INFO: ==2013== Releasing lock... [2025-01-10 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:56:05 [end_date_ymd] => 2025-01-10 02:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 23:56:05' and `end` < '2025-01-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-01-10 02:56:19] Production.INFO: count ==210 [2025-01-10 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 23:56:05 - End Time 2025-01-10 02:56:05 [2025-01-10 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213999', 'tblTempUsageDetail_20' ) start [2025-01-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213999', 'tblTempUsageDetail_20' ) end [2025-01-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213999', 'tblTempVendorCDR_20' ) start [2025-01-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213999', 'tblTempVendorCDR_20' ) end [2025-01-10 02:56:19] Production.INFO: ProcessCDR(1,14213999,1,1,2) [2025-01-10 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213999', 'tblTempUsageDetail_20' ) start [2025-01-10 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213999', 'tblTempUsageDetail_20' ) end [2025-01-10 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:56:23] Production.INFO: ==2087== Releasing lock... [2025-01-10 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:56:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:57:05 [end_date_ymd] => 2025-01-10 02:57:05 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:57:05' and `end` < '2025-01-10 02: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-01-10 02:57:20] Production.INFO: count ==209 [2025-01-10 02:57:20] Production.ERROR: pbx CDR StartTime 2025-01-09 23:57:05 - End Time 2025-01-10 02:57:05 [2025-01-10 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214004', 'tblTempUsageDetail_20' ) start [2025-01-10 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214004', 'tblTempUsageDetail_20' ) end [2025-01-10 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214004', 'tblTempVendorCDR_20' ) start [2025-01-10 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214004', 'tblTempVendorCDR_20' ) end [2025-01-10 02:57:20] Production.INFO: ProcessCDR(1,14214004,1,1,2) [2025-01-10 02:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214004', 'tblTempUsageDetail_20' ) start [2025-01-10 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214004', 'tblTempUsageDetail_20' ) end [2025-01-10 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:57:23] Production.INFO: ==2162== Releasing lock... [2025-01-10 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:57:23] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:58:04 [end_date_ymd] => 2025-01-10 02:58:04 [RateCDR] => 1 ) [2025-01-10 02: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-01-09 23:58:04' and `end` < '2025-01-10 02: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-01-10 02:58:18] Production.INFO: count ==209 [2025-01-10 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:58:04 - End Time 2025-01-10 02:58:04 [2025-01-10 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214009', 'tblTempUsageDetail_20' ) start [2025-01-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214009', 'tblTempUsageDetail_20' ) end [2025-01-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214009', 'tblTempVendorCDR_20' ) start [2025-01-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214009', 'tblTempVendorCDR_20' ) end [2025-01-10 02:58:18] Production.INFO: ProcessCDR(1,14214009,1,1,2) [2025-01-10 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214009', 'tblTempUsageDetail_20' ) start [2025-01-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214009', 'tblTempUsageDetail_20' ) end [2025-01-10 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:58:21] Production.INFO: ==2234== Releasing lock... [2025-01-10 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 23:59:04 [end_date_ymd] => 2025-01-10 02:59:04 [RateCDR] => 1 ) [2025-01-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-01-09 23:59:04' and `end` < '2025-01-10 02: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-01-10 02:59:18] Production.INFO: count ==209 [2025-01-10 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 23:59:04 - End Time 2025-01-10 02:59:04 [2025-01-10 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214014', 'tblTempUsageDetail_20' ) start [2025-01-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214014', 'tblTempUsageDetail_20' ) end [2025-01-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214014', 'tblTempVendorCDR_20' ) start [2025-01-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214014', 'tblTempVendorCDR_20' ) end [2025-01-10 02:59:18] Production.INFO: ProcessCDR(1,14214014,1,1,2) [2025-01-10 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214014', 'tblTempUsageDetail_20' ) start [2025-01-10 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214014', 'tblTempUsageDetail_20' ) end [2025-01-10 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 02:59:22] Production.INFO: ==2306== Releasing lock... [2025-01-10 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 02:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:00:05 [end_date_ymd] => 2025-01-10 03:00:05 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:00:05' and `end` < '2025-01-10 03: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-01-10 03:00:18] Production.INFO: count ==208 [2025-01-10 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:00:05 - End Time 2025-01-10 03:00:05 [2025-01-10 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214020', 'tblTempUsageDetail_20' ) start [2025-01-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214020', 'tblTempUsageDetail_20' ) end [2025-01-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214020', 'tblTempVendorCDR_20' ) start [2025-01-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214020', 'tblTempVendorCDR_20' ) end [2025-01-10 03:00:18] Production.INFO: ProcessCDR(1,14214020,1,1,2) [2025-01-10 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214020', 'tblTempUsageDetail_20' ) start [2025-01-10 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214020', 'tblTempUsageDetail_20' ) end [2025-01-10 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:00:21] Production.INFO: ==2382== Releasing lock... [2025-01-10 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:00:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:01:05 [end_date_ymd] => 2025-01-10 03:01:05 [RateCDR] => 1 ) [2025-01-10 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:01:05' and `end` < '2025-01-10 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:01:19] Production.INFO: count ==207 [2025-01-10 03:01:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:01:05 - End Time 2025-01-10 03:01:05 [2025-01-10 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214025', 'tblTempUsageDetail_20' ) start [2025-01-10 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214025', 'tblTempUsageDetail_20' ) end [2025-01-10 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214025', 'tblTempVendorCDR_20' ) start [2025-01-10 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214025', 'tblTempVendorCDR_20' ) end [2025-01-10 03:01:19] Production.INFO: ProcessCDR(1,14214025,1,1,2) [2025-01-10 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214025', 'tblTempUsageDetail_20' ) start [2025-01-10 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214025', 'tblTempUsageDetail_20' ) end [2025-01-10 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:01:22] Production.INFO: ==2468== Releasing lock... [2025-01-10 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:01:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:02:05 [end_date_ymd] => 2025-01-10 03:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:02:05' and `end` < '2025-01-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-01-10 03:02:19] Production.INFO: count ==207 [2025-01-10 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:02:05 - End Time 2025-01-10 03:02:05 [2025-01-10 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214030', 'tblTempUsageDetail_20' ) start [2025-01-10 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214030', 'tblTempUsageDetail_20' ) end [2025-01-10 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214030', 'tblTempVendorCDR_20' ) start [2025-01-10 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214030', 'tblTempVendorCDR_20' ) end [2025-01-10 03:02:19] Production.INFO: ProcessCDR(1,14214030,1,1,2) [2025-01-10 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214030', 'tblTempUsageDetail_20' ) start [2025-01-10 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214030', 'tblTempUsageDetail_20' ) end [2025-01-10 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:02:22] Production.INFO: ==2616== Releasing lock... [2025-01-10 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:02:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:03:05 [end_date_ymd] => 2025-01-10 03:03:05 [RateCDR] => 1 ) [2025-01-10 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:03:05' and `end` < '2025-01-10 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:03:17] Production.INFO: count ==207 [2025-01-10 03:03:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:03:05 - End Time 2025-01-10 03:03:05 [2025-01-10 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214035', 'tblTempUsageDetail_20' ) start [2025-01-10 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214035', 'tblTempUsageDetail_20' ) end [2025-01-10 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214035', 'tblTempVendorCDR_20' ) start [2025-01-10 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214035', 'tblTempVendorCDR_20' ) end [2025-01-10 03:03:17] Production.INFO: ProcessCDR(1,14214035,1,1,2) [2025-01-10 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214035', 'tblTempUsageDetail_20' ) start [2025-01-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214035', 'tblTempUsageDetail_20' ) end [2025-01-10 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:03:21] Production.INFO: ==2688== Releasing lock... [2025-01-10 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:04:05 [end_date_ymd] => 2025-01-10 03:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:04:05' and `end` < '2025-01-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-01-10 03:04:19] Production.INFO: count ==207 [2025-01-10 03:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:04:05 - End Time 2025-01-10 03:04:05 [2025-01-10 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214040', 'tblTempUsageDetail_20' ) start [2025-01-10 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214040', 'tblTempUsageDetail_20' ) end [2025-01-10 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214040', 'tblTempVendorCDR_20' ) start [2025-01-10 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214040', 'tblTempVendorCDR_20' ) end [2025-01-10 03:04:19] Production.INFO: ProcessCDR(1,14214040,1,1,2) [2025-01-10 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214040', 'tblTempUsageDetail_20' ) start [2025-01-10 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214040', 'tblTempUsageDetail_20' ) end [2025-01-10 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:04:22] Production.INFO: ==2765== Releasing lock... [2025-01-10 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:05:04 [end_date_ymd] => 2025-01-10 03:05:04 [RateCDR] => 1 ) [2025-01-10 03:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:05:04' and `end` < '2025-01-10 03:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:05:17] Production.INFO: count ==207 [2025-01-10 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:05:04 - End Time 2025-01-10 03:05:04 [2025-01-10 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214045', 'tblTempUsageDetail_20' ) start [2025-01-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214045', 'tblTempUsageDetail_20' ) end [2025-01-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214045', 'tblTempVendorCDR_20' ) start [2025-01-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214045', 'tblTempVendorCDR_20' ) end [2025-01-10 03:05:17] Production.INFO: ProcessCDR(1,14214045,1,1,2) [2025-01-10 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214045', 'tblTempUsageDetail_20' ) start [2025-01-10 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214045', 'tblTempUsageDetail_20' ) end [2025-01-10 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:05:20] Production.INFO: ==2839== Releasing lock... [2025-01-10 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:05:20] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:06:04 [end_date_ymd] => 2025-01-10 03:06:04 [RateCDR] => 1 ) [2025-01-10 03:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:06:04' and `end` < '2025-01-10 03:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:06:18] Production.INFO: count ==207 [2025-01-10 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:06:04 - End Time 2025-01-10 03:06:04 [2025-01-10 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214050', 'tblTempUsageDetail_20' ) start [2025-01-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214050', 'tblTempUsageDetail_20' ) end [2025-01-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214050', 'tblTempVendorCDR_20' ) start [2025-01-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214050', 'tblTempVendorCDR_20' ) end [2025-01-10 03:06:18] Production.INFO: ProcessCDR(1,14214050,1,1,2) [2025-01-10 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214050', 'tblTempUsageDetail_20' ) start [2025-01-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214050', 'tblTempUsageDetail_20' ) end [2025-01-10 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:06:21] Production.INFO: ==2987== Releasing lock... [2025-01-10 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:07:05 [end_date_ymd] => 2025-01-10 03:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:07:05' and `end` < '2025-01-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-01-10 03:07:18] Production.INFO: count ==207 [2025-01-10 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:07:05 - End Time 2025-01-10 03:07:05 [2025-01-10 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214055', 'tblTempUsageDetail_20' ) start [2025-01-10 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214055', 'tblTempUsageDetail_20' ) end [2025-01-10 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214055', 'tblTempVendorCDR_20' ) start [2025-01-10 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214055', 'tblTempVendorCDR_20' ) end [2025-01-10 03:07:18] Production.INFO: ProcessCDR(1,14214055,1,1,2) [2025-01-10 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214055', 'tblTempUsageDetail_20' ) start [2025-01-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214055', 'tblTempUsageDetail_20' ) end [2025-01-10 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:07:21] Production.INFO: ==3099== Releasing lock... [2025-01-10 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:08:04 [end_date_ymd] => 2025-01-10 03:08:04 [RateCDR] => 1 ) [2025-01-10 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:08:04' and `end` < '2025-01-10 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:08:17] Production.INFO: count ==206 [2025-01-10 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:08:04 - End Time 2025-01-10 03:08:04 [2025-01-10 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214060', 'tblTempUsageDetail_20' ) start [2025-01-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214060', 'tblTempUsageDetail_20' ) end [2025-01-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214060', 'tblTempVendorCDR_20' ) start [2025-01-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214060', 'tblTempVendorCDR_20' ) end [2025-01-10 03:08:17] Production.INFO: ProcessCDR(1,14214060,1,1,2) [2025-01-10 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214060', 'tblTempUsageDetail_20' ) start [2025-01-10 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214060', 'tblTempUsageDetail_20' ) end [2025-01-10 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:08:20] Production.INFO: ==3171== Releasing lock... [2025-01-10 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:08:20] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:09:05 [end_date_ymd] => 2025-01-10 03:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:09:05' and `end` < '2025-01-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-01-10 03:09:18] Production.INFO: count ==205 [2025-01-10 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:09:05 - End Time 2025-01-10 03:09:05 [2025-01-10 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214065', 'tblTempUsageDetail_20' ) start [2025-01-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214065', 'tblTempUsageDetail_20' ) end [2025-01-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214065', 'tblTempVendorCDR_20' ) start [2025-01-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214065', 'tblTempVendorCDR_20' ) end [2025-01-10 03:09:18] Production.INFO: ProcessCDR(1,14214065,1,1,2) [2025-01-10 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214065', 'tblTempUsageDetail_20' ) start [2025-01-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214065', 'tblTempUsageDetail_20' ) end [2025-01-10 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:09:21] Production.INFO: ==3319== Releasing lock... [2025-01-10 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-10 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:10:05 [end_date_ymd] => 2025-01-10 03:10:05 [RateCDR] => 1 ) [2025-01-10 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:10:05' and `end` < '2025-01-10 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:10:18] Production.INFO: count ==201 [2025-01-10 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:10:05 - End Time 2025-01-10 03:10:05 [2025-01-10 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214071', 'tblTempUsageDetail_20' ) start [2025-01-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214071', 'tblTempUsageDetail_20' ) end [2025-01-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214071', 'tblTempVendorCDR_20' ) start [2025-01-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214071', 'tblTempVendorCDR_20' ) end [2025-01-10 03:10:18] Production.INFO: ProcessCDR(1,14214071,1,1,2) [2025-01-10 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214071', 'tblTempUsageDetail_20' ) start [2025-01-10 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214071', 'tblTempUsageDetail_20' ) end [2025-01-10 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:10:21] Production.INFO: ==3390== Releasing lock... [2025-01-10 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:11:05 [end_date_ymd] => 2025-01-10 03:11:05 [RateCDR] => 1 ) [2025-01-10 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:11:05' and `end` < '2025-01-10 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:11:19] Production.INFO: count ==179 [2025-01-10 03:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:11:05 - End Time 2025-01-10 03:11:05 [2025-01-10 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214076', 'tblTempUsageDetail_20' ) start [2025-01-10 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214076', 'tblTempUsageDetail_20' ) end [2025-01-10 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214076', 'tblTempVendorCDR_20' ) start [2025-01-10 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214076', 'tblTempVendorCDR_20' ) end [2025-01-10 03:11:19] Production.INFO: ProcessCDR(1,14214076,1,1,2) [2025-01-10 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214076', 'tblTempUsageDetail_20' ) start [2025-01-10 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214076', 'tblTempUsageDetail_20' ) end [2025-01-10 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:11:22] Production.INFO: ==3464== Releasing lock... [2025-01-10 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:12:04 [end_date_ymd] => 2025-01-10 03:12:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:12:04' and `end` < '2025-01-10 03: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-01-10 03:12:17] Production.INFO: count ==179 [2025-01-10 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:12:04 - End Time 2025-01-10 03:12:04 [2025-01-10 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214081', 'tblTempUsageDetail_20' ) start [2025-01-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214081', 'tblTempUsageDetail_20' ) end [2025-01-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214081', 'tblTempVendorCDR_20' ) start [2025-01-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214081', 'tblTempVendorCDR_20' ) end [2025-01-10 03:12:17] Production.INFO: ProcessCDR(1,14214081,1,1,2) [2025-01-10 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214081', 'tblTempUsageDetail_20' ) start [2025-01-10 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214081', 'tblTempUsageDetail_20' ) end [2025-01-10 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:12:20] Production.INFO: ==3534== Releasing lock... [2025-01-10 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:13:05 [end_date_ymd] => 2025-01-10 03:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:13:05' and `end` < '2025-01-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-01-10 03:13:19] Production.INFO: count ==176 [2025-01-10 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:13:05 - End Time 2025-01-10 03:13:05 [2025-01-10 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214086', 'tblTempUsageDetail_20' ) start [2025-01-10 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214086', 'tblTempUsageDetail_20' ) end [2025-01-10 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214086', 'tblTempVendorCDR_20' ) start [2025-01-10 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214086', 'tblTempVendorCDR_20' ) end [2025-01-10 03:13:19] Production.INFO: ProcessCDR(1,14214086,1,1,2) [2025-01-10 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214086', 'tblTempUsageDetail_20' ) start [2025-01-10 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214086', 'tblTempUsageDetail_20' ) end [2025-01-10 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:13:22] Production.INFO: ==3683== Releasing lock... [2025-01-10 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:14:04 [end_date_ymd] => 2025-01-10 03:14:04 [RateCDR] => 1 ) [2025-01-10 03:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:14:04' and `end` < '2025-01-10 03:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:14:18] Production.INFO: count ==176 [2025-01-10 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:14:04 - End Time 2025-01-10 03:14:04 [2025-01-10 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214091', 'tblTempUsageDetail_20' ) start [2025-01-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214091', 'tblTempUsageDetail_20' ) end [2025-01-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214091', 'tblTempVendorCDR_20' ) start [2025-01-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214091', 'tblTempVendorCDR_20' ) end [2025-01-10 03:14:18] Production.INFO: ProcessCDR(1,14214091,1,1,2) [2025-01-10 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214091', 'tblTempUsageDetail_20' ) start [2025-01-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214091', 'tblTempUsageDetail_20' ) end [2025-01-10 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:14:22] Production.INFO: ==3752== Releasing lock... [2025-01-10 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:15:05 [end_date_ymd] => 2025-01-10 03:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:15:05' and `end` < '2025-01-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-01-10 03:15:18] Production.INFO: count ==176 [2025-01-10 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:15:05 - End Time 2025-01-10 03:15:05 [2025-01-10 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214096', 'tblTempUsageDetail_20' ) start [2025-01-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214096', 'tblTempUsageDetail_20' ) end [2025-01-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214096', 'tblTempVendorCDR_20' ) start [2025-01-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214096', 'tblTempVendorCDR_20' ) end [2025-01-10 03:15:18] Production.INFO: ProcessCDR(1,14214096,1,1,2) [2025-01-10 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214096', 'tblTempUsageDetail_20' ) start [2025-01-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214096', 'tblTempUsageDetail_20' ) end [2025-01-10 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:15:21] Production.INFO: ==3822== Releasing lock... [2025-01-10 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:16:04 [end_date_ymd] => 2025-01-10 03:16:04 [RateCDR] => 1 ) [2025-01-10 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:16:04' and `end` < '2025-01-10 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:16:18] Production.INFO: count ==176 [2025-01-10 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:16:04 - End Time 2025-01-10 03:16:04 [2025-01-10 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214101', 'tblTempUsageDetail_20' ) start [2025-01-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214101', 'tblTempUsageDetail_20' ) end [2025-01-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214101', 'tblTempVendorCDR_20' ) start [2025-01-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214101', 'tblTempVendorCDR_20' ) end [2025-01-10 03:16:18] Production.INFO: ProcessCDR(1,14214101,1,1,2) [2025-01-10 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214101', 'tblTempUsageDetail_20' ) start [2025-01-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214101', 'tblTempUsageDetail_20' ) end [2025-01-10 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:16:21] Production.INFO: ==3889== Releasing lock... [2025-01-10 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:17:05 [end_date_ymd] => 2025-01-10 03:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:17:05' and `end` < '2025-01-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-01-10 03:17:18] Production.INFO: count ==176 [2025-01-10 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:17:05 - End Time 2025-01-10 03:17:05 [2025-01-10 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214106', 'tblTempUsageDetail_20' ) start [2025-01-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214106', 'tblTempUsageDetail_20' ) end [2025-01-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214106', 'tblTempVendorCDR_20' ) start [2025-01-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214106', 'tblTempVendorCDR_20' ) end [2025-01-10 03:17:19] Production.INFO: ProcessCDR(1,14214106,1,1,2) [2025-01-10 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214106', 'tblTempUsageDetail_20' ) start [2025-01-10 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214106', 'tblTempUsageDetail_20' ) end [2025-01-10 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:17:22] Production.INFO: ==4042== Releasing lock... [2025-01-10 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:18:04 [end_date_ymd] => 2025-01-10 03:18:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:18:04' and `end` < '2025-01-10 03: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-01-10 03:18:17] Production.INFO: count ==176 [2025-01-10 03:18:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:18:04 - End Time 2025-01-10 03:18:04 [2025-01-10 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214111', 'tblTempUsageDetail_20' ) start [2025-01-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214111', 'tblTempUsageDetail_20' ) end [2025-01-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214111', 'tblTempVendorCDR_20' ) start [2025-01-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214111', 'tblTempVendorCDR_20' ) end [2025-01-10 03:18:17] Production.INFO: ProcessCDR(1,14214111,1,1,2) [2025-01-10 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214111', 'tblTempUsageDetail_20' ) start [2025-01-10 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214111', 'tblTempUsageDetail_20' ) end [2025-01-10 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:18:20] Production.INFO: ==4120== Releasing lock... [2025-01-10 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:19:04 [end_date_ymd] => 2025-01-10 03:19:04 [RateCDR] => 1 ) [2025-01-10 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:19:04' and `end` < '2025-01-10 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:19:19] Production.INFO: count ==176 [2025-01-10 03:19:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:19:04 - End Time 2025-01-10 03:19:04 [2025-01-10 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214116', 'tblTempUsageDetail_20' ) start [2025-01-10 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214116', 'tblTempUsageDetail_20' ) end [2025-01-10 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214116', 'tblTempVendorCDR_20' ) start [2025-01-10 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214116', 'tblTempVendorCDR_20' ) end [2025-01-10 03:19:19] Production.INFO: ProcessCDR(1,14214116,1,1,2) [2025-01-10 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214116', 'tblTempUsageDetail_20' ) start [2025-01-10 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214116', 'tblTempUsageDetail_20' ) end [2025-01-10 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:19:22] Production.INFO: ==4188== Releasing lock... [2025-01-10 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:20:05 [end_date_ymd] => 2025-01-10 03:20:05 [RateCDR] => 1 ) [2025-01-10 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:20:05' and `end` < '2025-01-10 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:20:19] Production.INFO: count ==178 [2025-01-10 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:20:05 - End Time 2025-01-10 03:20:05 [2025-01-10 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214121', 'tblTempUsageDetail_20' ) start [2025-01-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214121', 'tblTempUsageDetail_20' ) end [2025-01-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214121', 'tblTempVendorCDR_20' ) start [2025-01-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214121', 'tblTempVendorCDR_20' ) end [2025-01-10 03:20:19] Production.INFO: ProcessCDR(1,14214121,1,1,2) [2025-01-10 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214121', 'tblTempUsageDetail_20' ) start [2025-01-10 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214121', 'tblTempUsageDetail_20' ) end [2025-01-10 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:20:23] Production.INFO: ==4262== Releasing lock... [2025-01-10 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:21:04 [end_date_ymd] => 2025-01-10 03:21:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:21:04' and `end` < '2025-01-10 03: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-01-10 03:21:17] Production.INFO: count ==178 [2025-01-10 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:21:04 - End Time 2025-01-10 03:21:04 [2025-01-10 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214127', 'tblTempUsageDetail_20' ) start [2025-01-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214127', 'tblTempUsageDetail_20' ) end [2025-01-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214127', 'tblTempVendorCDR_20' ) start [2025-01-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214127', 'tblTempVendorCDR_20' ) end [2025-01-10 03:21:17] Production.INFO: ProcessCDR(1,14214127,1,1,2) [2025-01-10 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214127', 'tblTempUsageDetail_20' ) start [2025-01-10 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214127', 'tblTempUsageDetail_20' ) end [2025-01-10 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:21:20] Production.INFO: ==4341== Releasing lock... [2025-01-10 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:22:05 [end_date_ymd] => 2025-01-10 03:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:22:05' and `end` < '2025-01-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-01-10 03:22:18] Production.INFO: count ==178 [2025-01-10 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:22:05 - End Time 2025-01-10 03:22:05 [2025-01-10 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214132', 'tblTempUsageDetail_20' ) start [2025-01-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214132', 'tblTempUsageDetail_20' ) end [2025-01-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214132', 'tblTempVendorCDR_20' ) start [2025-01-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214132', 'tblTempVendorCDR_20' ) end [2025-01-10 03:22:18] Production.INFO: ProcessCDR(1,14214132,1,1,2) [2025-01-10 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214132', 'tblTempUsageDetail_20' ) start [2025-01-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214132', 'tblTempUsageDetail_20' ) end [2025-01-10 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:22:21] Production.INFO: ==4417== Releasing lock... [2025-01-10 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:23:04 [end_date_ymd] => 2025-01-10 03:23:04 [RateCDR] => 1 ) [2025-01-10 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:23:04' and `end` < '2025-01-10 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:23:17] Production.INFO: count ==178 [2025-01-10 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:23:04 - End Time 2025-01-10 03:23:04 [2025-01-10 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214137', 'tblTempUsageDetail_20' ) start [2025-01-10 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214137', 'tblTempUsageDetail_20' ) end [2025-01-10 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214137', 'tblTempVendorCDR_20' ) start [2025-01-10 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214137', 'tblTempVendorCDR_20' ) end [2025-01-10 03:23:17] Production.INFO: ProcessCDR(1,14214137,1,1,2) [2025-01-10 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214137', 'tblTempUsageDetail_20' ) start [2025-01-10 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214137', 'tblTempUsageDetail_20' ) end [2025-01-10 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:23:20] Production.INFO: ==4494== Releasing lock... [2025-01-10 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:24:05 [end_date_ymd] => 2025-01-10 03:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:24:05' and `end` < '2025-01-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-01-10 03:24:17] Production.INFO: count ==178 [2025-01-10 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:24:05 - End Time 2025-01-10 03:24:05 [2025-01-10 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214142', 'tblTempUsageDetail_20' ) start [2025-01-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214142', 'tblTempUsageDetail_20' ) end [2025-01-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214142', 'tblTempVendorCDR_20' ) start [2025-01-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214142', 'tblTempVendorCDR_20' ) end [2025-01-10 03:24:18] Production.INFO: ProcessCDR(1,14214142,1,1,2) [2025-01-10 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214142', 'tblTempUsageDetail_20' ) start [2025-01-10 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214142', 'tblTempUsageDetail_20' ) end [2025-01-10 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:24:21] Production.INFO: ==4620== Releasing lock... [2025-01-10 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:25:05 [end_date_ymd] => 2025-01-10 03:25:05 [RateCDR] => 1 ) [2025-01-10 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:25:05' and `end` < '2025-01-10 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:25:18] Production.INFO: count ==178 [2025-01-10 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:25:05 - End Time 2025-01-10 03:25:05 [2025-01-10 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214147', 'tblTempUsageDetail_20' ) start [2025-01-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214147', 'tblTempUsageDetail_20' ) end [2025-01-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214147', 'tblTempVendorCDR_20' ) start [2025-01-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214147', 'tblTempVendorCDR_20' ) end [2025-01-10 03:25:18] Production.INFO: ProcessCDR(1,14214147,1,1,2) [2025-01-10 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214147', 'tblTempUsageDetail_20' ) start [2025-01-10 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214147', 'tblTempUsageDetail_20' ) end [2025-01-10 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:25:22] Production.INFO: ==4701== Releasing lock... [2025-01-10 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:26:05 [end_date_ymd] => 2025-01-10 03:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:26:05' and `end` < '2025-01-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-01-10 03:26:18] Production.INFO: count ==178 [2025-01-10 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:26:05 - End Time 2025-01-10 03:26:05 [2025-01-10 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214152', 'tblTempUsageDetail_20' ) start [2025-01-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214152', 'tblTempUsageDetail_20' ) end [2025-01-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214152', 'tblTempVendorCDR_20' ) start [2025-01-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214152', 'tblTempVendorCDR_20' ) end [2025-01-10 03:26:18] Production.INFO: ProcessCDR(1,14214152,1,1,2) [2025-01-10 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214152', 'tblTempUsageDetail_20' ) start [2025-01-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214152', 'tblTempUsageDetail_20' ) end [2025-01-10 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:26:21] Production.INFO: ==4778== Releasing lock... [2025-01-10 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:27:05 [end_date_ymd] => 2025-01-10 03:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:27:05' and `end` < '2025-01-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-01-10 03:27:17] Production.INFO: count ==178 [2025-01-10 03:27:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:27:05 - End Time 2025-01-10 03:27:05 [2025-01-10 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214157', 'tblTempUsageDetail_20' ) start [2025-01-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214157', 'tblTempUsageDetail_20' ) end [2025-01-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214157', 'tblTempVendorCDR_20' ) start [2025-01-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214157', 'tblTempVendorCDR_20' ) end [2025-01-10 03:27:17] Production.INFO: ProcessCDR(1,14214157,1,1,2) [2025-01-10 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214157', 'tblTempUsageDetail_20' ) start [2025-01-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214157', 'tblTempUsageDetail_20' ) end [2025-01-10 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:27:21] Production.INFO: ==4856== Releasing lock... [2025-01-10 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:28:04 [end_date_ymd] => 2025-01-10 03:28:04 [RateCDR] => 1 ) [2025-01-10 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:28:04' and `end` < '2025-01-10 03: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-01-10 03:28:18] Production.INFO: count ==178 [2025-01-10 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:28:04 - End Time 2025-01-10 03:28:04 [2025-01-10 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214162', 'tblTempUsageDetail_20' ) start [2025-01-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214162', 'tblTempUsageDetail_20' ) end [2025-01-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214162', 'tblTempVendorCDR_20' ) start [2025-01-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214162', 'tblTempVendorCDR_20' ) end [2025-01-10 03:28:18] Production.INFO: ProcessCDR(1,14214162,1,1,2) [2025-01-10 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214162', 'tblTempUsageDetail_20' ) start [2025-01-10 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214162', 'tblTempUsageDetail_20' ) end [2025-01-10 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:28:22] Production.INFO: ==4935== Releasing lock... [2025-01-10 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:29:05 [end_date_ymd] => 2025-01-10 03:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:29:05' and `end` < '2025-01-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-01-10 03:29:18] Production.INFO: count ==178 [2025-01-10 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:29:05 - End Time 2025-01-10 03:29:05 [2025-01-10 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214167', 'tblTempUsageDetail_20' ) start [2025-01-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214167', 'tblTempUsageDetail_20' ) end [2025-01-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214167', 'tblTempVendorCDR_20' ) start [2025-01-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214167', 'tblTempVendorCDR_20' ) end [2025-01-10 03:29:18] Production.INFO: ProcessCDR(1,14214167,1,1,2) [2025-01-10 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214167', 'tblTempUsageDetail_20' ) start [2025-01-10 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214167', 'tblTempUsageDetail_20' ) end [2025-01-10 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:29:21] Production.INFO: ==5016== Releasing lock... [2025-01-10 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:30:06 [end_date_ymd] => 2025-01-10 03:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 00:30:06' and `end` < '2025-01-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-01-10 03:30:19] Production.INFO: count ==172 [2025-01-10 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:30:06 - End Time 2025-01-10 03:30:06 [2025-01-10 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214173', 'tblTempUsageDetail_20' ) start [2025-01-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214173', 'tblTempUsageDetail_20' ) end [2025-01-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214173', 'tblTempVendorCDR_20' ) start [2025-01-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214173', 'tblTempVendorCDR_20' ) end [2025-01-10 03:30:19] Production.INFO: ProcessCDR(1,14214173,1,1,2) [2025-01-10 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214173', 'tblTempUsageDetail_20' ) start [2025-01-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214173', 'tblTempUsageDetail_20' ) end [2025-01-10 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:30:22] Production.INFO: ==5103== Releasing lock... [2025-01-10 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:31:05 [end_date_ymd] => 2025-01-10 03:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:31:05' and `end` < '2025-01-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-01-10 03:31:19] Production.INFO: count ==159 [2025-01-10 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:31:05 - End Time 2025-01-10 03:31:05 [2025-01-10 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214178', 'tblTempUsageDetail_20' ) start [2025-01-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214178', 'tblTempUsageDetail_20' ) end [2025-01-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214178', 'tblTempVendorCDR_20' ) start [2025-01-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214178', 'tblTempVendorCDR_20' ) end [2025-01-10 03:31:19] Production.INFO: ProcessCDR(1,14214178,1,1,2) [2025-01-10 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214178', 'tblTempUsageDetail_20' ) start [2025-01-10 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214178', 'tblTempUsageDetail_20' ) end [2025-01-10 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:31:22] Production.INFO: ==5185== Releasing lock... [2025-01-10 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:32:04 [end_date_ymd] => 2025-01-10 03:32:04 [RateCDR] => 1 ) [2025-01-10 03:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:32:04' and `end` < '2025-01-10 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:32:17] Production.INFO: count ==159 [2025-01-10 03:32:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:32:04 - End Time 2025-01-10 03:32:04 [2025-01-10 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214183', 'tblTempUsageDetail_20' ) start [2025-01-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214183', 'tblTempUsageDetail_20' ) end [2025-01-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214183', 'tblTempVendorCDR_20' ) start [2025-01-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214183', 'tblTempVendorCDR_20' ) end [2025-01-10 03:32:18] Production.INFO: ProcessCDR(1,14214183,1,1,2) [2025-01-10 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214183', 'tblTempUsageDetail_20' ) start [2025-01-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214183', 'tblTempUsageDetail_20' ) end [2025-01-10 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:32:21] Production.INFO: ==5262== Releasing lock... [2025-01-10 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:33:04 [end_date_ymd] => 2025-01-10 03:33:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:33:04' and `end` < '2025-01-10 03: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-01-10 03:33:17] Production.INFO: count ==159 [2025-01-10 03:33:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:33:04 - End Time 2025-01-10 03:33:04 [2025-01-10 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214188', 'tblTempUsageDetail_20' ) start [2025-01-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214188', 'tblTempUsageDetail_20' ) end [2025-01-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214188', 'tblTempVendorCDR_20' ) start [2025-01-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214188', 'tblTempVendorCDR_20' ) end [2025-01-10 03:33:17] Production.INFO: ProcessCDR(1,14214188,1,1,2) [2025-01-10 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214188', 'tblTempUsageDetail_20' ) start [2025-01-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214188', 'tblTempUsageDetail_20' ) end [2025-01-10 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:33:21] Production.INFO: ==5340== Releasing lock... [2025-01-10 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:34:05 [end_date_ymd] => 2025-01-10 03:34:05 [RateCDR] => 1 ) [2025-01-10 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:34:05' and `end` < '2025-01-10 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:34:18] Production.INFO: count ==159 [2025-01-10 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:34:05 - End Time 2025-01-10 03:34:05 [2025-01-10 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214193', 'tblTempUsageDetail_20' ) start [2025-01-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214193', 'tblTempUsageDetail_20' ) end [2025-01-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214193', 'tblTempVendorCDR_20' ) start [2025-01-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214193', 'tblTempVendorCDR_20' ) end [2025-01-10 03:34:18] Production.INFO: ProcessCDR(1,14214193,1,1,2) [2025-01-10 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214193', 'tblTempUsageDetail_20' ) start [2025-01-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214193', 'tblTempUsageDetail_20' ) end [2025-01-10 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:34:21] Production.INFO: ==5449== Releasing lock... [2025-01-10 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:35:05 [end_date_ymd] => 2025-01-10 03:35:05 [RateCDR] => 1 ) [2025-01-10 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:35:05' and `end` < '2025-01-10 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:35:18] Production.INFO: count ==158 [2025-01-10 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:35:05 - End Time 2025-01-10 03:35:05 [2025-01-10 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214198', 'tblTempUsageDetail_20' ) start [2025-01-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214198', 'tblTempUsageDetail_20' ) end [2025-01-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214198', 'tblTempVendorCDR_20' ) start [2025-01-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214198', 'tblTempVendorCDR_20' ) end [2025-01-10 03:35:18] Production.INFO: ProcessCDR(1,14214198,1,1,2) [2025-01-10 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214198', 'tblTempUsageDetail_20' ) start [2025-01-10 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214198', 'tblTempUsageDetail_20' ) end [2025-01-10 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:35:21] Production.INFO: ==5527== Releasing lock... [2025-01-10 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:36:05 [end_date_ymd] => 2025-01-10 03:36:05 [RateCDR] => 1 ) [2025-01-10 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:36:05' and `end` < '2025-01-10 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:36:19] Production.INFO: count ==158 [2025-01-10 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:36:05 - End Time 2025-01-10 03:36:05 [2025-01-10 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214203', 'tblTempUsageDetail_20' ) start [2025-01-10 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214203', 'tblTempUsageDetail_20' ) end [2025-01-10 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214203', 'tblTempVendorCDR_20' ) start [2025-01-10 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214203', 'tblTempVendorCDR_20' ) end [2025-01-10 03:36:19] Production.INFO: ProcessCDR(1,14214203,1,1,2) [2025-01-10 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214203', 'tblTempUsageDetail_20' ) start [2025-01-10 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214203', 'tblTempUsageDetail_20' ) end [2025-01-10 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:36:22] Production.INFO: ==5605== Releasing lock... [2025-01-10 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:37:05 [end_date_ymd] => 2025-01-10 03:37:05 [RateCDR] => 1 ) [2025-01-10 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:37:05' and `end` < '2025-01-10 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:37:19] Production.INFO: count ==158 [2025-01-10 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:37:05 - End Time 2025-01-10 03:37:05 [2025-01-10 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214208', 'tblTempUsageDetail_20' ) start [2025-01-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214208', 'tblTempUsageDetail_20' ) end [2025-01-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214208', 'tblTempVendorCDR_20' ) start [2025-01-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214208', 'tblTempVendorCDR_20' ) end [2025-01-10 03:37:19] Production.INFO: ProcessCDR(1,14214208,1,1,2) [2025-01-10 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214208', 'tblTempUsageDetail_20' ) start [2025-01-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214208', 'tblTempUsageDetail_20' ) end [2025-01-10 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:37:22] Production.INFO: ==5685== Releasing lock... [2025-01-10 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:38:05 [end_date_ymd] => 2025-01-10 03:38:05 [RateCDR] => 1 ) [2025-01-10 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:38:05' and `end` < '2025-01-10 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:38:19] Production.INFO: count ==158 [2025-01-10 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:38:05 - End Time 2025-01-10 03:38:05 [2025-01-10 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214213', 'tblTempUsageDetail_20' ) start [2025-01-10 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214213', 'tblTempUsageDetail_20' ) end [2025-01-10 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214213', 'tblTempVendorCDR_20' ) start [2025-01-10 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214213', 'tblTempVendorCDR_20' ) end [2025-01-10 03:38:19] Production.INFO: ProcessCDR(1,14214213,1,1,2) [2025-01-10 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214213', 'tblTempUsageDetail_20' ) start [2025-01-10 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214213', 'tblTempUsageDetail_20' ) end [2025-01-10 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:38:22] Production.INFO: ==5762== Releasing lock... [2025-01-10 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:39:05 [end_date_ymd] => 2025-01-10 03:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:39:05' and `end` < '2025-01-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-01-10 03:39:18] Production.INFO: count ==158 [2025-01-10 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:39:05 - End Time 2025-01-10 03:39:05 [2025-01-10 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214218', 'tblTempUsageDetail_20' ) start [2025-01-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214218', 'tblTempUsageDetail_20' ) end [2025-01-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214218', 'tblTempVendorCDR_20' ) start [2025-01-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214218', 'tblTempVendorCDR_20' ) end [2025-01-10 03:39:18] Production.INFO: ProcessCDR(1,14214218,1,1,2) [2025-01-10 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214218', 'tblTempUsageDetail_20' ) start [2025-01-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214218', 'tblTempUsageDetail_20' ) end [2025-01-10 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:39:21] Production.INFO: ==5837== Releasing lock... [2025-01-10 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:40:06 [end_date_ymd] => 2025-01-10 03:40:06 [RateCDR] => 1 ) [2025-01-10 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:40:06' and `end` < '2025-01-10 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:40:19] Production.INFO: count ==158 [2025-01-10 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:40:06 - End Time 2025-01-10 03:40:06 [2025-01-10 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214222', 'tblTempUsageDetail_20' ) start [2025-01-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214222', 'tblTempUsageDetail_20' ) end [2025-01-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214222', 'tblTempVendorCDR_20' ) start [2025-01-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214222', 'tblTempVendorCDR_20' ) end [2025-01-10 03:40:19] Production.INFO: ProcessCDR(1,14214222,1,1,2) [2025-01-10 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214222', 'tblTempUsageDetail_20' ) start [2025-01-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214222', 'tblTempUsageDetail_20' ) end [2025-01-10 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:40:22] Production.INFO: ==5954== Releasing lock... [2025-01-10 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:41:05 [end_date_ymd] => 2025-01-10 03:41:05 [RateCDR] => 1 ) [2025-01-10 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:41:05' and `end` < '2025-01-10 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:41:19] Production.INFO: count ==154 [2025-01-10 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:41:05 - End Time 2025-01-10 03:41:05 [2025-01-10 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214229', 'tblTempUsageDetail_20' ) start [2025-01-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214229', 'tblTempUsageDetail_20' ) end [2025-01-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214229', 'tblTempVendorCDR_20' ) start [2025-01-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214229', 'tblTempVendorCDR_20' ) end [2025-01-10 03:41:19] Production.INFO: ProcessCDR(1,14214229,1,1,2) [2025-01-10 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214229', 'tblTempUsageDetail_20' ) start [2025-01-10 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214229', 'tblTempUsageDetail_20' ) end [2025-01-10 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:41:23] Production.INFO: ==6028== Releasing lock... [2025-01-10 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:41:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:42:05 [end_date_ymd] => 2025-01-10 03:42:05 [RateCDR] => 1 ) [2025-01-10 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:42:05' and `end` < '2025-01-10 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:42:19] Production.INFO: count ==154 [2025-01-10 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:42:05 - End Time 2025-01-10 03:42:05 [2025-01-10 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214234', 'tblTempUsageDetail_20' ) start [2025-01-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214234', 'tblTempUsageDetail_20' ) end [2025-01-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214234', 'tblTempVendorCDR_20' ) start [2025-01-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214234', 'tblTempVendorCDR_20' ) end [2025-01-10 03:42:19] Production.INFO: ProcessCDR(1,14214234,1,1,2) [2025-01-10 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214234', 'tblTempUsageDetail_20' ) start [2025-01-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214234', 'tblTempUsageDetail_20' ) end [2025-01-10 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:42:22] Production.INFO: ==6099== Releasing lock... [2025-01-10 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:43:05 [end_date_ymd] => 2025-01-10 03:43:05 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:43:05' and `end` < '2025-01-10 03: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-01-10 03:43:18] Production.INFO: count ==154 [2025-01-10 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:43:05 - End Time 2025-01-10 03:43:05 [2025-01-10 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214239', 'tblTempUsageDetail_20' ) start [2025-01-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214239', 'tblTempUsageDetail_20' ) end [2025-01-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214239', 'tblTempVendorCDR_20' ) start [2025-01-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214239', 'tblTempVendorCDR_20' ) end [2025-01-10 03:43:18] Production.INFO: ProcessCDR(1,14214239,1,1,2) [2025-01-10 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214239', 'tblTempUsageDetail_20' ) start [2025-01-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214239', 'tblTempUsageDetail_20' ) end [2025-01-10 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:43:22] Production.INFO: ==6171== Releasing lock... [2025-01-10 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:44:05 [end_date_ymd] => 2025-01-10 03:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:44:05' and `end` < '2025-01-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-01-10 03:44:18] Production.INFO: count ==154 [2025-01-10 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:44:05 - End Time 2025-01-10 03:44:05 [2025-01-10 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214244', 'tblTempUsageDetail_20' ) start [2025-01-10 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214244', 'tblTempUsageDetail_20' ) end [2025-01-10 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214244', 'tblTempVendorCDR_20' ) start [2025-01-10 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214244', 'tblTempVendorCDR_20' ) end [2025-01-10 03:44:18] Production.INFO: ProcessCDR(1,14214244,1,1,2) [2025-01-10 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214244', 'tblTempUsageDetail_20' ) start [2025-01-10 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214244', 'tblTempUsageDetail_20' ) end [2025-01-10 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:44:21] Production.INFO: ==6243== Releasing lock... [2025-01-10 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:45:04 [end_date_ymd] => 2025-01-10 03:45:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:45:04' and `end` < '2025-01-10 03: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-01-10 03:45:17] Production.INFO: count ==154 [2025-01-10 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-10 00:45:04 - End Time 2025-01-10 03:45:04 [2025-01-10 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214249', 'tblTempUsageDetail_20' ) start [2025-01-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214249', 'tblTempUsageDetail_20' ) end [2025-01-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214249', 'tblTempVendorCDR_20' ) start [2025-01-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214249', 'tblTempVendorCDR_20' ) end [2025-01-10 03:45:17] Production.INFO: ProcessCDR(1,14214249,1,1,2) [2025-01-10 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214249', 'tblTempUsageDetail_20' ) start [2025-01-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214249', 'tblTempUsageDetail_20' ) end [2025-01-10 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:45:21] Production.INFO: ==6333== Releasing lock... [2025-01-10 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:46:05 [end_date_ymd] => 2025-01-10 03:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:46:05' and `end` < '2025-01-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-01-10 03:46:19] Production.INFO: count ==154 [2025-01-10 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:46:05 - End Time 2025-01-10 03:46:05 [2025-01-10 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214254', 'tblTempUsageDetail_20' ) start [2025-01-10 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214254', 'tblTempUsageDetail_20' ) end [2025-01-10 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214254', 'tblTempVendorCDR_20' ) start [2025-01-10 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214254', 'tblTempVendorCDR_20' ) end [2025-01-10 03:46:19] Production.INFO: ProcessCDR(1,14214254,1,1,2) [2025-01-10 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214254', 'tblTempUsageDetail_20' ) start [2025-01-10 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214254', 'tblTempUsageDetail_20' ) end [2025-01-10 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:46:23] Production.INFO: ==6428== Releasing lock... [2025-01-10 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:46:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:47:04 [end_date_ymd] => 2025-01-10 03:47:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:47:04' and `end` < '2025-01-10 03: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-01-10 03:47:18] Production.INFO: count ==154 [2025-01-10 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:47:04 - End Time 2025-01-10 03:47:04 [2025-01-10 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214259', 'tblTempUsageDetail_20' ) start [2025-01-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214259', 'tblTempUsageDetail_20' ) end [2025-01-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214259', 'tblTempVendorCDR_20' ) start [2025-01-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214259', 'tblTempVendorCDR_20' ) end [2025-01-10 03:47:18] Production.INFO: ProcessCDR(1,14214259,1,1,2) [2025-01-10 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214259', 'tblTempUsageDetail_20' ) start [2025-01-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214259', 'tblTempUsageDetail_20' ) end [2025-01-10 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:47:21] Production.INFO: ==6498== Releasing lock... [2025-01-10 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:48:05 [end_date_ymd] => 2025-01-10 03:48:05 [RateCDR] => 1 ) [2025-01-10 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:48:05' and `end` < '2025-01-10 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:48:18] Production.INFO: count ==154 [2025-01-10 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:48:05 - End Time 2025-01-10 03:48:05 [2025-01-10 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214264', 'tblTempUsageDetail_20' ) start [2025-01-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214264', 'tblTempUsageDetail_20' ) end [2025-01-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214264', 'tblTempVendorCDR_20' ) start [2025-01-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214264', 'tblTempVendorCDR_20' ) end [2025-01-10 03:48:18] Production.INFO: ProcessCDR(1,14214264,1,1,2) [2025-01-10 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214264', 'tblTempUsageDetail_20' ) start [2025-01-10 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214264', 'tblTempUsageDetail_20' ) end [2025-01-10 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:48:21] Production.INFO: ==6574== Releasing lock... [2025-01-10 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:49:05 [end_date_ymd] => 2025-01-10 03:49:05 [RateCDR] => 1 ) [2025-01-10 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:49:05' and `end` < '2025-01-10 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:49:18] Production.INFO: count ==154 [2025-01-10 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:49:05 - End Time 2025-01-10 03:49:05 [2025-01-10 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214269', 'tblTempUsageDetail_20' ) start [2025-01-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214269', 'tblTempUsageDetail_20' ) end [2025-01-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214269', 'tblTempVendorCDR_20' ) start [2025-01-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214269', 'tblTempVendorCDR_20' ) end [2025-01-10 03:49:18] Production.INFO: ProcessCDR(1,14214269,1,1,2) [2025-01-10 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214269', 'tblTempUsageDetail_20' ) start [2025-01-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214269', 'tblTempUsageDetail_20' ) end [2025-01-10 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:49:22] Production.INFO: ==6649== Releasing lock... [2025-01-10 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:50:05 [end_date_ymd] => 2025-01-10 03:50:05 [RateCDR] => 1 ) [2025-01-10 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:50:05' and `end` < '2025-01-10 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:50:18] Production.INFO: count ==150 [2025-01-10 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:50:05 - End Time 2025-01-10 03:50:05 [2025-01-10 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214275', 'tblTempUsageDetail_20' ) start [2025-01-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214275', 'tblTempUsageDetail_20' ) end [2025-01-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214275', 'tblTempVendorCDR_20' ) start [2025-01-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214275', 'tblTempVendorCDR_20' ) end [2025-01-10 03:50:18] Production.INFO: ProcessCDR(1,14214275,1,1,2) [2025-01-10 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214275', 'tblTempUsageDetail_20' ) start [2025-01-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214275', 'tblTempUsageDetail_20' ) end [2025-01-10 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:50:22] Production.INFO: ==6728== Releasing lock... [2025-01-10 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:51:05 [end_date_ymd] => 2025-01-10 03:51:05 [RateCDR] => 1 ) [2025-01-10 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:51:05' and `end` < '2025-01-10 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:51:19] Production.INFO: count ==150 [2025-01-10 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:51:05 - End Time 2025-01-10 03:51:05 [2025-01-10 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214280', 'tblTempUsageDetail_20' ) start [2025-01-10 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214280', 'tblTempUsageDetail_20' ) end [2025-01-10 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214280', 'tblTempVendorCDR_20' ) start [2025-01-10 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214280', 'tblTempVendorCDR_20' ) end [2025-01-10 03:51:19] Production.INFO: ProcessCDR(1,14214280,1,1,2) [2025-01-10 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214280', 'tblTempUsageDetail_20' ) start [2025-01-10 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214280', 'tblTempUsageDetail_20' ) end [2025-01-10 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:51:22] Production.INFO: ==6813== Releasing lock... [2025-01-10 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:52:05 [end_date_ymd] => 2025-01-10 03:52:05 [RateCDR] => 1 ) [2025-01-10 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:52:05' and `end` < '2025-01-10 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:52:19] Production.INFO: count ==150 [2025-01-10 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:52:05 - End Time 2025-01-10 03:52:05 [2025-01-10 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214285', 'tblTempUsageDetail_20' ) start [2025-01-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214285', 'tblTempUsageDetail_20' ) end [2025-01-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214285', 'tblTempVendorCDR_20' ) start [2025-01-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214285', 'tblTempVendorCDR_20' ) end [2025-01-10 03:52:19] Production.INFO: ProcessCDR(1,14214285,1,1,2) [2025-01-10 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214285', 'tblTempUsageDetail_20' ) start [2025-01-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214285', 'tblTempUsageDetail_20' ) end [2025-01-10 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:52:22] Production.INFO: ==6891== Releasing lock... [2025-01-10 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:53:05 [end_date_ymd] => 2025-01-10 03:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:53:05' and `end` < '2025-01-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-01-10 03:53:19] Production.INFO: count ==150 [2025-01-10 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:53:05 - End Time 2025-01-10 03:53:05 [2025-01-10 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214290', 'tblTempUsageDetail_20' ) start [2025-01-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214290', 'tblTempUsageDetail_20' ) end [2025-01-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214290', 'tblTempVendorCDR_20' ) start [2025-01-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214290', 'tblTempVendorCDR_20' ) end [2025-01-10 03:53:19] Production.INFO: ProcessCDR(1,14214290,1,1,2) [2025-01-10 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214290', 'tblTempUsageDetail_20' ) start [2025-01-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214290', 'tblTempUsageDetail_20' ) end [2025-01-10 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:53:22] Production.INFO: ==6970== Releasing lock... [2025-01-10 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:54:05 [end_date_ymd] => 2025-01-10 03:54:05 [RateCDR] => 1 ) [2025-01-10 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:54:05' and `end` < '2025-01-10 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:54:20] Production.INFO: count ==150 [2025-01-10 03:54:20] Production.ERROR: pbx CDR StartTime 2025-01-10 00:54:05 - End Time 2025-01-10 03:54:05 [2025-01-10 03:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214295', 'tblTempUsageDetail_20' ) start [2025-01-10 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214295', 'tblTempUsageDetail_20' ) end [2025-01-10 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214295', 'tblTempVendorCDR_20' ) start [2025-01-10 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214295', 'tblTempVendorCDR_20' ) end [2025-01-10 03:54:20] Production.INFO: ProcessCDR(1,14214295,1,1,2) [2025-01-10 03:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214295', 'tblTempUsageDetail_20' ) start [2025-01-10 03:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214295', 'tblTempUsageDetail_20' ) end [2025-01-10 03:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:54:24] Production.INFO: ==7050== Releasing lock... [2025-01-10 03:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:54:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:55:05 [end_date_ymd] => 2025-01-10 03:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:55:05' and `end` < '2025-01-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-01-10 03:55:18] Production.INFO: count ==150 [2025-01-10 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:55:05 - End Time 2025-01-10 03:55:05 [2025-01-10 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214300', 'tblTempUsageDetail_20' ) start [2025-01-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214300', 'tblTempUsageDetail_20' ) end [2025-01-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214300', 'tblTempVendorCDR_20' ) start [2025-01-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214300', 'tblTempVendorCDR_20' ) end [2025-01-10 03:55:18] Production.INFO: ProcessCDR(1,14214300,1,1,2) [2025-01-10 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214300', 'tblTempUsageDetail_20' ) start [2025-01-10 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214300', 'tblTempUsageDetail_20' ) end [2025-01-10 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:55:21] Production.INFO: ==7176== Releasing lock... [2025-01-10 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:56:04 [end_date_ymd] => 2025-01-10 03:56:04 [RateCDR] => 1 ) [2025-01-10 03: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-01-10 00:56:04' and `end` < '2025-01-10 03: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-01-10 03:56:18] Production.INFO: count ==150 [2025-01-10 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:56:04 - End Time 2025-01-10 03:56:04 [2025-01-10 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214305', 'tblTempUsageDetail_20' ) start [2025-01-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214305', 'tblTempUsageDetail_20' ) end [2025-01-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214305', 'tblTempVendorCDR_20' ) start [2025-01-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214305', 'tblTempVendorCDR_20' ) end [2025-01-10 03:56:18] Production.INFO: ProcessCDR(1,14214305,1,1,2) [2025-01-10 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214305', 'tblTempUsageDetail_20' ) start [2025-01-10 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214305', 'tblTempUsageDetail_20' ) end [2025-01-10 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:56:22] Production.INFO: ==7266== Releasing lock... [2025-01-10 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:57:05 [end_date_ymd] => 2025-01-10 03:57:05 [RateCDR] => 1 ) [2025-01-10 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 00:57:05' and `end` < '2025-01-10 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 03:57:18] Production.INFO: count ==150 [2025-01-10 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:57:05 - End Time 2025-01-10 03:57:05 [2025-01-10 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214310', 'tblTempUsageDetail_20' ) start [2025-01-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214310', 'tblTempUsageDetail_20' ) end [2025-01-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214310', 'tblTempVendorCDR_20' ) start [2025-01-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214310', 'tblTempVendorCDR_20' ) end [2025-01-10 03:57:18] Production.INFO: ProcessCDR(1,14214310,1,1,2) [2025-01-10 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214310', 'tblTempUsageDetail_20' ) start [2025-01-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214310', 'tblTempUsageDetail_20' ) end [2025-01-10 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:57:21] Production.INFO: ==7352== Releasing lock... [2025-01-10 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:58:05 [end_date_ymd] => 2025-01-10 03:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:58:05' and `end` < '2025-01-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-01-10 03:58:18] Production.INFO: count ==150 [2025-01-10 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 00:58:05 - End Time 2025-01-10 03:58:05 [2025-01-10 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214315', 'tblTempUsageDetail_20' ) start [2025-01-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214315', 'tblTempUsageDetail_20' ) end [2025-01-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214315', 'tblTempVendorCDR_20' ) start [2025-01-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214315', 'tblTempVendorCDR_20' ) end [2025-01-10 03:58:18] Production.INFO: ProcessCDR(1,14214315,1,1,2) [2025-01-10 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214315', 'tblTempUsageDetail_20' ) start [2025-01-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214315', 'tblTempUsageDetail_20' ) end [2025-01-10 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:58:21] Production.INFO: ==7426== Releasing lock... [2025-01-10 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 00:59:05 [end_date_ymd] => 2025-01-10 03:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 00:59:05' and `end` < '2025-01-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-01-10 03:59:19] Production.INFO: count ==150 [2025-01-10 03:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 00:59:05 - End Time 2025-01-10 03:59:05 [2025-01-10 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214320', 'tblTempUsageDetail_20' ) start [2025-01-10 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214320', 'tblTempUsageDetail_20' ) end [2025-01-10 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214320', 'tblTempVendorCDR_20' ) start [2025-01-10 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214320', 'tblTempVendorCDR_20' ) end [2025-01-10 03:59:19] Production.INFO: ProcessCDR(1,14214320,1,1,2) [2025-01-10 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214320', 'tblTempUsageDetail_20' ) start [2025-01-10 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214320', 'tblTempUsageDetail_20' ) end [2025-01-10 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 03:59:22] Production.INFO: ==7502== Releasing lock... [2025-01-10 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 03:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:00:06 [end_date_ymd] => 2025-01-10 04:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 01:00:06' and `end` < '2025-01-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-01-10 04:00:19] Production.INFO: count ==146 [2025-01-10 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:00:06 - End Time 2025-01-10 04:00:06 [2025-01-10 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214326', 'tblTempUsageDetail_20' ) start [2025-01-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214326', 'tblTempUsageDetail_20' ) end [2025-01-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214326', 'tblTempVendorCDR_20' ) start [2025-01-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214326', 'tblTempVendorCDR_20' ) end [2025-01-10 04:00:19] Production.INFO: ProcessCDR(1,14214326,1,1,2) [2025-01-10 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214326', 'tblTempUsageDetail_20' ) start [2025-01-10 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214326', 'tblTempUsageDetail_20' ) end [2025-01-10 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:00:22] Production.INFO: ==7577== Releasing lock... [2025-01-10 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:01:05 [end_date_ymd] => 2025-01-10 04:01:05 [RateCDR] => 1 ) [2025-01-10 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:01:05' and `end` < '2025-01-10 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:01:18] Production.INFO: count ==138 [2025-01-10 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:01:05 - End Time 2025-01-10 04:01:05 [2025-01-10 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214332', 'tblTempUsageDetail_20' ) start [2025-01-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214332', 'tblTempUsageDetail_20' ) end [2025-01-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214332', 'tblTempVendorCDR_20' ) start [2025-01-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214332', 'tblTempVendorCDR_20' ) end [2025-01-10 04:01:18] Production.INFO: ProcessCDR(1,14214332,1,1,2) [2025-01-10 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214332', 'tblTempUsageDetail_20' ) start [2025-01-10 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214332', 'tblTempUsageDetail_20' ) end [2025-01-10 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:01:21] Production.INFO: ==7662== Releasing lock... [2025-01-10 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:02:04 [end_date_ymd] => 2025-01-10 04:02:04 [RateCDR] => 1 ) [2025-01-10 04:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:02:04' and `end` < '2025-01-10 04:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:02:17] Production.INFO: count ==138 [2025-01-10 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:02:04 - End Time 2025-01-10 04:02:04 [2025-01-10 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214337', 'tblTempUsageDetail_20' ) start [2025-01-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214337', 'tblTempUsageDetail_20' ) end [2025-01-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214337', 'tblTempVendorCDR_20' ) start [2025-01-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214337', 'tblTempVendorCDR_20' ) end [2025-01-10 04:02:17] Production.INFO: ProcessCDR(1,14214337,1,1,2) [2025-01-10 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214337', 'tblTempUsageDetail_20' ) start [2025-01-10 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214337', 'tblTempUsageDetail_20' ) end [2025-01-10 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:02:21] Production.INFO: ==7731== Releasing lock... [2025-01-10 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:03:05 [end_date_ymd] => 2025-01-10 04:03:05 [RateCDR] => 1 ) [2025-01-10 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:03:05' and `end` < '2025-01-10 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:03:18] Production.INFO: count ==138 [2025-01-10 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:03:05 - End Time 2025-01-10 04:03:05 [2025-01-10 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214342', 'tblTempUsageDetail_20' ) start [2025-01-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214342', 'tblTempUsageDetail_20' ) end [2025-01-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214342', 'tblTempVendorCDR_20' ) start [2025-01-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214342', 'tblTempVendorCDR_20' ) end [2025-01-10 04:03:18] Production.INFO: ProcessCDR(1,14214342,1,1,2) [2025-01-10 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214342', 'tblTempUsageDetail_20' ) start [2025-01-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214342', 'tblTempUsageDetail_20' ) end [2025-01-10 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:03:21] Production.INFO: ==7805== Releasing lock... [2025-01-10 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:04:05 [end_date_ymd] => 2025-01-10 04:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:04:05' and `end` < '2025-01-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-01-10 04:04:18] Production.INFO: count ==138 [2025-01-10 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:04:05 - End Time 2025-01-10 04:04:05 [2025-01-10 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214347', 'tblTempUsageDetail_20' ) start [2025-01-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214347', 'tblTempUsageDetail_20' ) end [2025-01-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214347', 'tblTempVendorCDR_20' ) start [2025-01-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214347', 'tblTempVendorCDR_20' ) end [2025-01-10 04:04:18] Production.INFO: ProcessCDR(1,14214347,1,1,2) [2025-01-10 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214347', 'tblTempUsageDetail_20' ) start [2025-01-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214347', 'tblTempUsageDetail_20' ) end [2025-01-10 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:04:21] Production.INFO: ==7883== Releasing lock... [2025-01-10 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:05:05 [end_date_ymd] => 2025-01-10 04:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:05:05' and `end` < '2025-01-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-01-10 04:05:18] Production.INFO: count ==138 [2025-01-10 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:05:05 - End Time 2025-01-10 04:05:05 [2025-01-10 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214352', 'tblTempUsageDetail_20' ) start [2025-01-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214352', 'tblTempUsageDetail_20' ) end [2025-01-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214352', 'tblTempVendorCDR_20' ) start [2025-01-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214352', 'tblTempVendorCDR_20' ) end [2025-01-10 04:05:18] Production.INFO: ProcessCDR(1,14214352,1,1,2) [2025-01-10 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214352', 'tblTempUsageDetail_20' ) start [2025-01-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214352', 'tblTempUsageDetail_20' ) end [2025-01-10 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:05:21] Production.INFO: ==7970== Releasing lock... [2025-01-10 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:06:05 [end_date_ymd] => 2025-01-10 04:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:06:05' and `end` < '2025-01-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-01-10 04:06:19] Production.INFO: count ==138 [2025-01-10 04:06:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:06:05 - End Time 2025-01-10 04:06:05 [2025-01-10 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214357', 'tblTempUsageDetail_20' ) start [2025-01-10 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214357', 'tblTempUsageDetail_20' ) end [2025-01-10 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214357', 'tblTempVendorCDR_20' ) start [2025-01-10 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214357', 'tblTempVendorCDR_20' ) end [2025-01-10 04:06:19] Production.INFO: ProcessCDR(1,14214357,1,1,2) [2025-01-10 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214357', 'tblTempUsageDetail_20' ) start [2025-01-10 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214357', 'tblTempUsageDetail_20' ) end [2025-01-10 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:06:22] Production.INFO: ==8056== Releasing lock... [2025-01-10 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:07:05 [end_date_ymd] => 2025-01-10 04:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:07:05' and `end` < '2025-01-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-01-10 04:07:18] Production.INFO: count ==138 [2025-01-10 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:07:05 - End Time 2025-01-10 04:07:05 [2025-01-10 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214362', 'tblTempUsageDetail_20' ) start [2025-01-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214362', 'tblTempUsageDetail_20' ) end [2025-01-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214362', 'tblTempVendorCDR_20' ) start [2025-01-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214362', 'tblTempVendorCDR_20' ) end [2025-01-10 04:07:18] Production.INFO: ProcessCDR(1,14214362,1,1,2) [2025-01-10 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214362', 'tblTempUsageDetail_20' ) start [2025-01-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214362', 'tblTempUsageDetail_20' ) end [2025-01-10 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:07:21] Production.INFO: ==8125== Releasing lock... [2025-01-10 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:08:04 [end_date_ymd] => 2025-01-10 04:08:04 [RateCDR] => 1 ) [2025-01-10 04:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:08:04' and `end` < '2025-01-10 04:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:08:18] Production.INFO: count ==138 [2025-01-10 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:08:04 - End Time 2025-01-10 04:08:04 [2025-01-10 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214367', 'tblTempUsageDetail_20' ) start [2025-01-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214367', 'tblTempUsageDetail_20' ) end [2025-01-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214367', 'tblTempVendorCDR_20' ) start [2025-01-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214367', 'tblTempVendorCDR_20' ) end [2025-01-10 04:08:18] Production.INFO: ProcessCDR(1,14214367,1,1,2) [2025-01-10 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214367', 'tblTempUsageDetail_20' ) start [2025-01-10 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214367', 'tblTempUsageDetail_20' ) end [2025-01-10 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:08:21] Production.INFO: ==8195== Releasing lock... [2025-01-10 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:09:04 [end_date_ymd] => 2025-01-10 04:09:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:09:04' and `end` < '2025-01-10 04: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-01-10 04:09:17] Production.INFO: count ==138 [2025-01-10 04:09:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:09:04 - End Time 2025-01-10 04:09:04 [2025-01-10 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214372', 'tblTempUsageDetail_20' ) start [2025-01-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214372', 'tblTempUsageDetail_20' ) end [2025-01-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214372', 'tblTempVendorCDR_20' ) start [2025-01-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214372', 'tblTempVendorCDR_20' ) end [2025-01-10 04:09:17] Production.INFO: ProcessCDR(1,14214372,1,1,2) [2025-01-10 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214372', 'tblTempUsageDetail_20' ) start [2025-01-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214372', 'tblTempUsageDetail_20' ) end [2025-01-10 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:09:20] Production.INFO: ==8265== Releasing lock... [2025-01-10 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:10:06 [end_date_ymd] => 2025-01-10 04:10:06 [RateCDR] => 1 ) [2025-01-10 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:10:06' and `end` < '2025-01-10 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:10:19] Production.INFO: count ==132 [2025-01-10 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:10:06 - End Time 2025-01-10 04:10:06 [2025-01-10 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214378', 'tblTempUsageDetail_20' ) start [2025-01-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214378', 'tblTempUsageDetail_20' ) end [2025-01-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214378', 'tblTempVendorCDR_20' ) start [2025-01-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214378', 'tblTempVendorCDR_20' ) end [2025-01-10 04:10:19] Production.INFO: ProcessCDR(1,14214378,1,1,2) [2025-01-10 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214378', 'tblTempUsageDetail_20' ) start [2025-01-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214378', 'tblTempUsageDetail_20' ) end [2025-01-10 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:10:22] Production.INFO: ==8338== Releasing lock... [2025-01-10 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:11:04 [end_date_ymd] => 2025-01-10 04:11:04 [RateCDR] => 1 ) [2025-01-10 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:11:04' and `end` < '2025-01-10 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:11:19] Production.INFO: count ==132 [2025-01-10 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:11:04 - End Time 2025-01-10 04:11:04 [2025-01-10 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214383', 'tblTempUsageDetail_20' ) start [2025-01-10 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214383', 'tblTempUsageDetail_20' ) end [2025-01-10 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214383', 'tblTempVendorCDR_20' ) start [2025-01-10 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214383', 'tblTempVendorCDR_20' ) end [2025-01-10 04:11:19] Production.INFO: ProcessCDR(1,14214383,1,1,2) [2025-01-10 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214383', 'tblTempUsageDetail_20' ) start [2025-01-10 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214383', 'tblTempUsageDetail_20' ) end [2025-01-10 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:11:22] Production.INFO: ==8449== Releasing lock... [2025-01-10 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:12:05 [end_date_ymd] => 2025-01-10 04:12:05 [RateCDR] => 1 ) [2025-01-10 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:12:05' and `end` < '2025-01-10 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:12:19] Production.INFO: count ==132 [2025-01-10 04:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:12:05 - End Time 2025-01-10 04:12:05 [2025-01-10 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214388', 'tblTempUsageDetail_20' ) start [2025-01-10 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214388', 'tblTempUsageDetail_20' ) end [2025-01-10 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214388', 'tblTempVendorCDR_20' ) start [2025-01-10 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214388', 'tblTempVendorCDR_20' ) end [2025-01-10 04:12:19] Production.INFO: ProcessCDR(1,14214388,1,1,2) [2025-01-10 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214388', 'tblTempUsageDetail_20' ) start [2025-01-10 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214388', 'tblTempUsageDetail_20' ) end [2025-01-10 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:12:23] Production.INFO: ==8520== Releasing lock... [2025-01-10 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:12:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:13:04 [end_date_ymd] => 2025-01-10 04:13:04 [RateCDR] => 1 ) [2025-01-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-01-10 01:13:04' and `end` < '2025-01-10 04: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-01-10 04:13:18] Production.INFO: count ==132 [2025-01-10 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:13:04 - End Time 2025-01-10 04:13:04 [2025-01-10 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214393', 'tblTempUsageDetail_20' ) start [2025-01-10 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214393', 'tblTempUsageDetail_20' ) end [2025-01-10 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214393', 'tblTempVendorCDR_20' ) start [2025-01-10 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214393', 'tblTempVendorCDR_20' ) end [2025-01-10 04:13:18] Production.INFO: ProcessCDR(1,14214393,1,1,2) [2025-01-10 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214393', 'tblTempUsageDetail_20' ) start [2025-01-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214393', 'tblTempUsageDetail_20' ) end [2025-01-10 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:13:21] Production.INFO: ==8602== Releasing lock... [2025-01-10 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:14:05 [end_date_ymd] => 2025-01-10 04:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:14:05' and `end` < '2025-01-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-01-10 04:14:19] Production.INFO: count ==132 [2025-01-10 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:14:05 - End Time 2025-01-10 04:14:05 [2025-01-10 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214398', 'tblTempUsageDetail_20' ) start [2025-01-10 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214398', 'tblTempUsageDetail_20' ) end [2025-01-10 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214398', 'tblTempVendorCDR_20' ) start [2025-01-10 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214398', 'tblTempVendorCDR_20' ) end [2025-01-10 04:14:19] Production.INFO: ProcessCDR(1,14214398,1,1,2) [2025-01-10 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214398', 'tblTempUsageDetail_20' ) start [2025-01-10 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214398', 'tblTempUsageDetail_20' ) end [2025-01-10 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:14:22] Production.INFO: ==8680== Releasing lock... [2025-01-10 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:15:05 [end_date_ymd] => 2025-01-10 04:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:15:05' and `end` < '2025-01-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-01-10 04:15:18] Production.INFO: count ==132 [2025-01-10 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:15:05 - End Time 2025-01-10 04:15:05 [2025-01-10 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214403', 'tblTempUsageDetail_20' ) start [2025-01-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214403', 'tblTempUsageDetail_20' ) end [2025-01-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214403', 'tblTempVendorCDR_20' ) start [2025-01-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214403', 'tblTempVendorCDR_20' ) end [2025-01-10 04:15:18] Production.INFO: ProcessCDR(1,14214403,1,1,2) [2025-01-10 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214403', 'tblTempUsageDetail_20' ) start [2025-01-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214403', 'tblTempUsageDetail_20' ) end [2025-01-10 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:15:21] Production.INFO: ==8771== Releasing lock... [2025-01-10 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:16:05 [end_date_ymd] => 2025-01-10 04:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:16:05' and `end` < '2025-01-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-01-10 04:16:20] Production.INFO: count ==132 [2025-01-10 04:16:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:16:05 - End Time 2025-01-10 04:16:05 [2025-01-10 04:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214408', 'tblTempUsageDetail_20' ) start [2025-01-10 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214408', 'tblTempUsageDetail_20' ) end [2025-01-10 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214408', 'tblTempVendorCDR_20' ) start [2025-01-10 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214408', 'tblTempVendorCDR_20' ) end [2025-01-10 04:16:20] Production.INFO: ProcessCDR(1,14214408,1,1,2) [2025-01-10 04:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214408', 'tblTempUsageDetail_20' ) start [2025-01-10 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214408', 'tblTempUsageDetail_20' ) end [2025-01-10 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:16:23] Production.INFO: ==8852== Releasing lock... [2025-01-10 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:17:05 [end_date_ymd] => 2025-01-10 04:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:17:05' and `end` < '2025-01-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-01-10 04:17:20] Production.INFO: count ==132 [2025-01-10 04:17:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:17:05 - End Time 2025-01-10 04:17:05 [2025-01-10 04:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214413', 'tblTempUsageDetail_20' ) start [2025-01-10 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214413', 'tblTempUsageDetail_20' ) end [2025-01-10 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214413', 'tblTempVendorCDR_20' ) start [2025-01-10 04:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214413', 'tblTempVendorCDR_20' ) end [2025-01-10 04:17:20] Production.INFO: ProcessCDR(1,14214413,1,1,2) [2025-01-10 04:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214413', 'tblTempUsageDetail_20' ) start [2025-01-10 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214413', 'tblTempUsageDetail_20' ) end [2025-01-10 04:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:17:23] Production.INFO: ==8923== Releasing lock... [2025-01-10 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:17:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:18:06 [end_date_ymd] => 2025-01-10 04:18:06 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:18:06' and `end` < '2025-01-10 04: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-01-10 04:18:20] Production.INFO: count ==132 [2025-01-10 04:18:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:18:06 - End Time 2025-01-10 04:18:06 [2025-01-10 04:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214418', 'tblTempUsageDetail_20' ) start [2025-01-10 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214418', 'tblTempUsageDetail_20' ) end [2025-01-10 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214418', 'tblTempVendorCDR_20' ) start [2025-01-10 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214418', 'tblTempVendorCDR_20' ) end [2025-01-10 04:18:20] Production.INFO: ProcessCDR(1,14214418,1,1,2) [2025-01-10 04:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214418', 'tblTempUsageDetail_20' ) start [2025-01-10 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214418', 'tblTempUsageDetail_20' ) end [2025-01-10 04:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:18:23] Production.INFO: ==9006== Releasing lock... [2025-01-10 04:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:19:04 [end_date_ymd] => 2025-01-10 04:19:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:19:04' and `end` < '2025-01-10 04: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-01-10 04:19:18] Production.INFO: count ==132 [2025-01-10 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:19:04 - End Time 2025-01-10 04:19:04 [2025-01-10 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214423', 'tblTempUsageDetail_20' ) start [2025-01-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214423', 'tblTempUsageDetail_20' ) end [2025-01-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214423', 'tblTempVendorCDR_20' ) start [2025-01-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214423', 'tblTempVendorCDR_20' ) end [2025-01-10 04:19:18] Production.INFO: ProcessCDR(1,14214423,1,1,2) [2025-01-10 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214423', 'tblTempUsageDetail_20' ) start [2025-01-10 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214423', 'tblTempUsageDetail_20' ) end [2025-01-10 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:19:21] Production.INFO: ==9076== Releasing lock... [2025-01-10 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:20:06 [end_date_ymd] => 2025-01-10 04:20:06 [RateCDR] => 1 ) [2025-01-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-01-10 01:20:06' and `end` < '2025-01-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-01-10 04:20:19] Production.INFO: count ==126 [2025-01-10 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:20:06 - End Time 2025-01-10 04:20:06 [2025-01-10 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214429', 'tblTempUsageDetail_20' ) start [2025-01-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214429', 'tblTempUsageDetail_20' ) end [2025-01-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214429', 'tblTempVendorCDR_20' ) start [2025-01-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214429', 'tblTempVendorCDR_20' ) end [2025-01-10 04:20:19] Production.INFO: ProcessCDR(1,14214429,1,1,2) [2025-01-10 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214429', 'tblTempUsageDetail_20' ) start [2025-01-10 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214429', 'tblTempUsageDetail_20' ) end [2025-01-10 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:20:22] Production.INFO: ==9162== Releasing lock... [2025-01-10 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:21:04 [end_date_ymd] => 2025-01-10 04:21:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:21:04' and `end` < '2025-01-10 04: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-01-10 04:21:17] Production.INFO: count ==122 [2025-01-10 04:21:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:21:04 - End Time 2025-01-10 04:21:04 [2025-01-10 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214434', 'tblTempUsageDetail_20' ) start [2025-01-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214434', 'tblTempUsageDetail_20' ) end [2025-01-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214434', 'tblTempVendorCDR_20' ) start [2025-01-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214434', 'tblTempVendorCDR_20' ) end [2025-01-10 04:21:17] Production.INFO: ProcessCDR(1,14214434,1,1,2) [2025-01-10 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214434', 'tblTempUsageDetail_20' ) start [2025-01-10 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214434', 'tblTempUsageDetail_20' ) end [2025-01-10 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:21:20] Production.INFO: ==9252== Releasing lock... [2025-01-10 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:22:05 [end_date_ymd] => 2025-01-10 04:22:05 [RateCDR] => 1 ) [2025-01-10 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:22:05' and `end` < '2025-01-10 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:22:18] Production.INFO: count ==122 [2025-01-10 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:22:05 - End Time 2025-01-10 04:22:05 [2025-01-10 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214439', 'tblTempUsageDetail_20' ) start [2025-01-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214439', 'tblTempUsageDetail_20' ) end [2025-01-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214439', 'tblTempVendorCDR_20' ) start [2025-01-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214439', 'tblTempVendorCDR_20' ) end [2025-01-10 04:22:18] Production.INFO: ProcessCDR(1,14214439,1,1,2) [2025-01-10 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214439', 'tblTempUsageDetail_20' ) start [2025-01-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214439', 'tblTempUsageDetail_20' ) end [2025-01-10 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:22:21] Production.INFO: ==9335== Releasing lock... [2025-01-10 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:23:05 [end_date_ymd] => 2025-01-10 04:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:23:05' and `end` < '2025-01-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-01-10 04:23:19] Production.INFO: count ==122 [2025-01-10 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:23:05 - End Time 2025-01-10 04:23:05 [2025-01-10 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214444', 'tblTempUsageDetail_20' ) start [2025-01-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214444', 'tblTempUsageDetail_20' ) end [2025-01-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214444', 'tblTempVendorCDR_20' ) start [2025-01-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214444', 'tblTempVendorCDR_20' ) end [2025-01-10 04:23:19] Production.INFO: ProcessCDR(1,14214444,1,1,2) [2025-01-10 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214444', 'tblTempUsageDetail_20' ) start [2025-01-10 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214444', 'tblTempUsageDetail_20' ) end [2025-01-10 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:23:22] Production.INFO: ==9417== Releasing lock... [2025-01-10 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:24:05 [end_date_ymd] => 2025-01-10 04:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:24:05' and `end` < '2025-01-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-01-10 04:24:18] Production.INFO: count ==122 [2025-01-10 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:24:05 - End Time 2025-01-10 04:24:05 [2025-01-10 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214449', 'tblTempUsageDetail_20' ) start [2025-01-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214449', 'tblTempUsageDetail_20' ) end [2025-01-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214449', 'tblTempVendorCDR_20' ) start [2025-01-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214449', 'tblTempVendorCDR_20' ) end [2025-01-10 04:24:18] Production.INFO: ProcessCDR(1,14214449,1,1,2) [2025-01-10 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214449', 'tblTempUsageDetail_20' ) start [2025-01-10 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214449', 'tblTempUsageDetail_20' ) end [2025-01-10 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:24:21] Production.INFO: ==9491== Releasing lock... [2025-01-10 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:25:05 [end_date_ymd] => 2025-01-10 04:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:25:05' and `end` < '2025-01-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-01-10 04:25:18] Production.INFO: count ==122 [2025-01-10 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:25:05 - End Time 2025-01-10 04:25:05 [2025-01-10 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214454', 'tblTempUsageDetail_20' ) start [2025-01-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214454', 'tblTempUsageDetail_20' ) end [2025-01-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214454', 'tblTempVendorCDR_20' ) start [2025-01-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214454', 'tblTempVendorCDR_20' ) end [2025-01-10 04:25:18] Production.INFO: ProcessCDR(1,14214454,1,1,2) [2025-01-10 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214454', 'tblTempUsageDetail_20' ) start [2025-01-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214454', 'tblTempUsageDetail_20' ) end [2025-01-10 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:25:21] Production.INFO: ==9563== Releasing lock... [2025-01-10 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:26:05 [end_date_ymd] => 2025-01-10 04:26:05 [RateCDR] => 1 ) [2025-01-10 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:26:05' and `end` < '2025-01-10 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:26:18] Production.INFO: count ==122 [2025-01-10 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:26:05 - End Time 2025-01-10 04:26:05 [2025-01-10 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214459', 'tblTempUsageDetail_20' ) start [2025-01-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214459', 'tblTempUsageDetail_20' ) end [2025-01-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214459', 'tblTempVendorCDR_20' ) start [2025-01-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214459', 'tblTempVendorCDR_20' ) end [2025-01-10 04:26:18] Production.INFO: ProcessCDR(1,14214459,1,1,2) [2025-01-10 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214459', 'tblTempUsageDetail_20' ) start [2025-01-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214459', 'tblTempUsageDetail_20' ) end [2025-01-10 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:26:21] Production.INFO: ==9674== Releasing lock... [2025-01-10 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:27:06 [end_date_ymd] => 2025-01-10 04:27:06 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:27:06' and `end` < '2025-01-10 04: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-01-10 04:27:18] Production.INFO: count ==120 [2025-01-10 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:27:06 - End Time 2025-01-10 04:27:06 [2025-01-10 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214464', 'tblTempUsageDetail_20' ) start [2025-01-10 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214464', 'tblTempUsageDetail_20' ) end [2025-01-10 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214464', 'tblTempVendorCDR_20' ) start [2025-01-10 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214464', 'tblTempVendorCDR_20' ) end [2025-01-10 04:27:19] Production.INFO: ProcessCDR(1,14214464,1,1,2) [2025-01-10 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214464', 'tblTempUsageDetail_20' ) start [2025-01-10 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214464', 'tblTempUsageDetail_20' ) end [2025-01-10 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:27:22] Production.INFO: ==9749== Releasing lock... [2025-01-10 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:28:04 [end_date_ymd] => 2025-01-10 04:28:04 [RateCDR] => 1 ) [2025-01-10 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:28:04' and `end` < '2025-01-10 04: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-01-10 04:28:19] Production.INFO: count ==120 [2025-01-10 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:28:04 - End Time 2025-01-10 04:28:04 [2025-01-10 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214469', 'tblTempUsageDetail_20' ) start [2025-01-10 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214469', 'tblTempUsageDetail_20' ) end [2025-01-10 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214469', 'tblTempVendorCDR_20' ) start [2025-01-10 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214469', 'tblTempVendorCDR_20' ) end [2025-01-10 04:28:19] Production.INFO: ProcessCDR(1,14214469,1,1,2) [2025-01-10 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214469', 'tblTempUsageDetail_20' ) start [2025-01-10 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214469', 'tblTempUsageDetail_20' ) end [2025-01-10 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:28:22] Production.INFO: ==9827== Releasing lock... [2025-01-10 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:29:04 [end_date_ymd] => 2025-01-10 04:29:04 [RateCDR] => 1 ) [2025-01-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-01-10 01:29:04' and `end` < '2025-01-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-01-10 04:29:17] Production.INFO: count ==119 [2025-01-10 04:29:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:29:04 - End Time 2025-01-10 04:29:04 [2025-01-10 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214473', 'tblTempUsageDetail_20' ) start [2025-01-10 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214473', 'tblTempUsageDetail_20' ) end [2025-01-10 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214473', 'tblTempVendorCDR_20' ) start [2025-01-10 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214473', 'tblTempVendorCDR_20' ) end [2025-01-10 04:29:17] Production.INFO: ProcessCDR(1,14214473,1,1,2) [2025-01-10 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214473', 'tblTempUsageDetail_20' ) start [2025-01-10 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214473', 'tblTempUsageDetail_20' ) end [2025-01-10 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:29:20] Production.INFO: ==9913== Releasing lock... [2025-01-10 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:30:06 [end_date_ymd] => 2025-01-10 04:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 01:30:06' and `end` < '2025-01-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-01-10 04:30:19] Production.INFO: count ==119 [2025-01-10 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:30:06 - End Time 2025-01-10 04:30:06 [2025-01-10 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214481', 'tblTempUsageDetail_20' ) start [2025-01-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214481', 'tblTempUsageDetail_20' ) end [2025-01-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214481', 'tblTempVendorCDR_20' ) start [2025-01-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214481', 'tblTempVendorCDR_20' ) end [2025-01-10 04:30:19] Production.INFO: ProcessCDR(1,14214481,1,1,2) [2025-01-10 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214481', 'tblTempUsageDetail_20' ) start [2025-01-10 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214481', 'tblTempUsageDetail_20' ) end [2025-01-10 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:30:23] Production.INFO: ==10006== Releasing lock... [2025-01-10 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:31:05 [end_date_ymd] => 2025-01-10 04:31:05 [RateCDR] => 1 ) [2025-01-10 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:31:05' and `end` < '2025-01-10 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:31:18] Production.INFO: count ==119 [2025-01-10 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:31:05 - End Time 2025-01-10 04:31:05 [2025-01-10 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214486', 'tblTempUsageDetail_20' ) start [2025-01-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214486', 'tblTempUsageDetail_20' ) end [2025-01-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214486', 'tblTempVendorCDR_20' ) start [2025-01-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214486', 'tblTempVendorCDR_20' ) end [2025-01-10 04:31:18] Production.INFO: ProcessCDR(1,14214486,1,1,2) [2025-01-10 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214486', 'tblTempUsageDetail_20' ) start [2025-01-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214486', 'tblTempUsageDetail_20' ) end [2025-01-10 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:31:22] Production.INFO: ==10155== Releasing lock... [2025-01-10 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:32:04 [end_date_ymd] => 2025-01-10 04:32:04 [RateCDR] => 1 ) [2025-01-10 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:32:04' and `end` < '2025-01-10 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:32:18] Production.INFO: count ==119 [2025-01-10 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:32:04 - End Time 2025-01-10 04:32:04 [2025-01-10 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214491', 'tblTempUsageDetail_20' ) start [2025-01-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214491', 'tblTempUsageDetail_20' ) end [2025-01-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214491', 'tblTempVendorCDR_20' ) start [2025-01-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214491', 'tblTempVendorCDR_20' ) end [2025-01-10 04:32:18] Production.INFO: ProcessCDR(1,14214491,1,1,2) [2025-01-10 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214491', 'tblTempUsageDetail_20' ) start [2025-01-10 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214491', 'tblTempUsageDetail_20' ) end [2025-01-10 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:32:21] Production.INFO: ==10225== Releasing lock... [2025-01-10 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:33:05 [end_date_ymd] => 2025-01-10 04:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:33:05' and `end` < '2025-01-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-01-10 04:33:18] Production.INFO: count ==120 [2025-01-10 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:33:05 - End Time 2025-01-10 04:33:05 [2025-01-10 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214496', 'tblTempUsageDetail_20' ) start [2025-01-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214496', 'tblTempUsageDetail_20' ) end [2025-01-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214496', 'tblTempVendorCDR_20' ) start [2025-01-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214496', 'tblTempVendorCDR_20' ) end [2025-01-10 04:33:18] Production.INFO: ProcessCDR(1,14214496,1,1,2) [2025-01-10 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214496', 'tblTempUsageDetail_20' ) start [2025-01-10 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214496', 'tblTempUsageDetail_20' ) end [2025-01-10 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:33:22] Production.INFO: ==10296== Releasing lock... [2025-01-10 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:34:05 [end_date_ymd] => 2025-01-10 04:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:34:05' and `end` < '2025-01-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-01-10 04:34:18] Production.INFO: count ==120 [2025-01-10 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:34:05 - End Time 2025-01-10 04:34:05 [2025-01-10 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214501', 'tblTempUsageDetail_20' ) start [2025-01-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214501', 'tblTempUsageDetail_20' ) end [2025-01-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214501', 'tblTempVendorCDR_20' ) start [2025-01-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214501', 'tblTempVendorCDR_20' ) end [2025-01-10 04:34:18] Production.INFO: ProcessCDR(1,14214501,1,1,2) [2025-01-10 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214501', 'tblTempUsageDetail_20' ) start [2025-01-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214501', 'tblTempUsageDetail_20' ) end [2025-01-10 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:34:21] Production.INFO: ==10373== Releasing lock... [2025-01-10 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:35:04 [end_date_ymd] => 2025-01-10 04:35:04 [RateCDR] => 1 ) [2025-01-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-01-10 01:35:04' and `end` < '2025-01-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-01-10 04:35:17] Production.INFO: count ==120 [2025-01-10 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:35:04 - End Time 2025-01-10 04:35:04 [2025-01-10 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214506', 'tblTempUsageDetail_20' ) start [2025-01-10 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214506', 'tblTempUsageDetail_20' ) end [2025-01-10 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214506', 'tblTempVendorCDR_20' ) start [2025-01-10 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214506', 'tblTempVendorCDR_20' ) end [2025-01-10 04:35:17] Production.INFO: ProcessCDR(1,14214506,1,1,2) [2025-01-10 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214506', 'tblTempUsageDetail_20' ) start [2025-01-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214506', 'tblTempUsageDetail_20' ) end [2025-01-10 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:35:21] Production.INFO: ==10463== Releasing lock... [2025-01-10 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:36:05 [end_date_ymd] => 2025-01-10 04:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:36:05' and `end` < '2025-01-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-01-10 04:36:19] Production.INFO: count ==120 [2025-01-10 04:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:36:05 - End Time 2025-01-10 04:36:05 [2025-01-10 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214511', 'tblTempUsageDetail_20' ) start [2025-01-10 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214511', 'tblTempUsageDetail_20' ) end [2025-01-10 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214511', 'tblTempVendorCDR_20' ) start [2025-01-10 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214511', 'tblTempVendorCDR_20' ) end [2025-01-10 04:36:19] Production.INFO: ProcessCDR(1,14214511,1,1,2) [2025-01-10 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214511', 'tblTempUsageDetail_20' ) start [2025-01-10 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214511', 'tblTempUsageDetail_20' ) end [2025-01-10 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:36:22] Production.INFO: ==10553== Releasing lock... [2025-01-10 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:37:05 [end_date_ymd] => 2025-01-10 04:37:05 [RateCDR] => 1 ) [2025-01-10 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:37:05' and `end` < '2025-01-10 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:37:18] Production.INFO: count ==120 [2025-01-10 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:37:05 - End Time 2025-01-10 04:37:05 [2025-01-10 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214516', 'tblTempUsageDetail_20' ) start [2025-01-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214516', 'tblTempUsageDetail_20' ) end [2025-01-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214516', 'tblTempVendorCDR_20' ) start [2025-01-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214516', 'tblTempVendorCDR_20' ) end [2025-01-10 04:37:18] Production.INFO: ProcessCDR(1,14214516,1,1,2) [2025-01-10 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214516', 'tblTempUsageDetail_20' ) start [2025-01-10 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214516', 'tblTempUsageDetail_20' ) end [2025-01-10 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:37:22] Production.INFO: ==10633== Releasing lock... [2025-01-10 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:38:05 [end_date_ymd] => 2025-01-10 04:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:38:05' and `end` < '2025-01-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-01-10 04:38:19] Production.INFO: count ==120 [2025-01-10 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:38:05 - End Time 2025-01-10 04:38:05 [2025-01-10 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214521', 'tblTempUsageDetail_20' ) start [2025-01-10 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214521', 'tblTempUsageDetail_20' ) end [2025-01-10 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214521', 'tblTempVendorCDR_20' ) start [2025-01-10 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214521', 'tblTempVendorCDR_20' ) end [2025-01-10 04:38:19] Production.INFO: ProcessCDR(1,14214521,1,1,2) [2025-01-10 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214521', 'tblTempUsageDetail_20' ) start [2025-01-10 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214521', 'tblTempUsageDetail_20' ) end [2025-01-10 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:38:22] Production.INFO: ==10704== Releasing lock... [2025-01-10 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:39:04 [end_date_ymd] => 2025-01-10 04:39:04 [RateCDR] => 1 ) [2025-01-10 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:39:04' and `end` < '2025-01-10 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:39:17] Production.INFO: count ==120 [2025-01-10 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:39:04 - End Time 2025-01-10 04:39:04 [2025-01-10 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214526', 'tblTempUsageDetail_20' ) start [2025-01-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214526', 'tblTempUsageDetail_20' ) end [2025-01-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214526', 'tblTempVendorCDR_20' ) start [2025-01-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214526', 'tblTempVendorCDR_20' ) end [2025-01-10 04:39:17] Production.INFO: ProcessCDR(1,14214526,1,1,2) [2025-01-10 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214526', 'tblTempUsageDetail_20' ) start [2025-01-10 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214526', 'tblTempUsageDetail_20' ) end [2025-01-10 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:39:20] Production.INFO: ==10774== Releasing lock... [2025-01-10 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:40:05 [end_date_ymd] => 2025-01-10 04:40:05 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:40:05' and `end` < '2025-01-10 04: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-01-10 04:40:18] Production.INFO: count ==118 [2025-01-10 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:40:05 - End Time 2025-01-10 04:40:05 [2025-01-10 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214530', 'tblTempUsageDetail_20' ) start [2025-01-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214530', 'tblTempUsageDetail_20' ) end [2025-01-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214530', 'tblTempVendorCDR_20' ) start [2025-01-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214530', 'tblTempVendorCDR_20' ) end [2025-01-10 04:40:18] Production.INFO: ProcessCDR(1,14214530,1,1,2) [2025-01-10 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214530', 'tblTempUsageDetail_20' ) start [2025-01-10 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214530', 'tblTempUsageDetail_20' ) end [2025-01-10 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:40:21] Production.INFO: ==10851== Releasing lock... [2025-01-10 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:41:04 [end_date_ymd] => 2025-01-10 04:41:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:41:04' and `end` < '2025-01-10 04: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-01-10 04:41:17] Production.INFO: count ==108 [2025-01-10 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-10 01:41:04 - End Time 2025-01-10 04:41:04 [2025-01-10 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214537', 'tblTempUsageDetail_20' ) start [2025-01-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214537', 'tblTempUsageDetail_20' ) end [2025-01-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214537', 'tblTempVendorCDR_20' ) start [2025-01-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214537', 'tblTempVendorCDR_20' ) end [2025-01-10 04:41:17] Production.INFO: ProcessCDR(1,14214537,1,1,2) [2025-01-10 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214537', 'tblTempUsageDetail_20' ) start [2025-01-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214537', 'tblTempUsageDetail_20' ) end [2025-01-10 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:41:21] Production.INFO: ==10927== Releasing lock... [2025-01-10 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:42:05 [end_date_ymd] => 2025-01-10 04:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:42:05' and `end` < '2025-01-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-01-10 04:42:18] Production.INFO: count ==108 [2025-01-10 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:42:05 - End Time 2025-01-10 04:42:05 [2025-01-10 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214542', 'tblTempUsageDetail_20' ) start [2025-01-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214542', 'tblTempUsageDetail_20' ) end [2025-01-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214542', 'tblTempVendorCDR_20' ) start [2025-01-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214542', 'tblTempVendorCDR_20' ) end [2025-01-10 04:42:18] Production.INFO: ProcessCDR(1,14214542,1,1,2) [2025-01-10 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214542', 'tblTempUsageDetail_20' ) start [2025-01-10 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214542', 'tblTempUsageDetail_20' ) end [2025-01-10 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:42:21] Production.INFO: ==11037== Releasing lock... [2025-01-10 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:43:05 [end_date_ymd] => 2025-01-10 04:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:43:05' and `end` < '2025-01-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-01-10 04:43:19] Production.INFO: count ==108 [2025-01-10 04:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:43:05 - End Time 2025-01-10 04:43:05 [2025-01-10 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214547', 'tblTempUsageDetail_20' ) start [2025-01-10 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214547', 'tblTempUsageDetail_20' ) end [2025-01-10 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214547', 'tblTempVendorCDR_20' ) start [2025-01-10 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214547', 'tblTempVendorCDR_20' ) end [2025-01-10 04:43:19] Production.INFO: ProcessCDR(1,14214547,1,1,2) [2025-01-10 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214547', 'tblTempUsageDetail_20' ) start [2025-01-10 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214547', 'tblTempUsageDetail_20' ) end [2025-01-10 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:43:22] Production.INFO: ==11122== Releasing lock... [2025-01-10 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:44:05 [end_date_ymd] => 2025-01-10 04:44:05 [RateCDR] => 1 ) [2025-01-10 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:44:05' and `end` < '2025-01-10 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:44:19] Production.INFO: count ==108 [2025-01-10 04:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 01:44:05 - End Time 2025-01-10 04:44:05 [2025-01-10 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214552', 'tblTempUsageDetail_20' ) start [2025-01-10 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214552', 'tblTempUsageDetail_20' ) end [2025-01-10 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214552', 'tblTempVendorCDR_20' ) start [2025-01-10 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214552', 'tblTempVendorCDR_20' ) end [2025-01-10 04:44:19] Production.INFO: ProcessCDR(1,14214552,1,1,2) [2025-01-10 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214552', 'tblTempUsageDetail_20' ) start [2025-01-10 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214552', 'tblTempUsageDetail_20' ) end [2025-01-10 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:44:22] Production.INFO: ==11210== Releasing lock... [2025-01-10 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:45:05 [end_date_ymd] => 2025-01-10 04:45:05 [RateCDR] => 1 ) [2025-01-10 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:45:05' and `end` < '2025-01-10 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:45:18] Production.INFO: count ==108 [2025-01-10 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-10 01:45:05 - End Time 2025-01-10 04:45:05 [2025-01-10 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214557', 'tblTempUsageDetail_20' ) start [2025-01-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214557', 'tblTempUsageDetail_20' ) end [2025-01-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214557', 'tblTempVendorCDR_20' ) start [2025-01-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214557', 'tblTempVendorCDR_20' ) end [2025-01-10 04:45:18] Production.INFO: ProcessCDR(1,14214557,1,1,2) [2025-01-10 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214557', 'tblTempUsageDetail_20' ) start [2025-01-10 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214557', 'tblTempUsageDetail_20' ) end [2025-01-10 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:45:21] Production.INFO: ==11284== Releasing lock... [2025-01-10 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:46:04 [end_date_ymd] => 2025-01-10 04:46:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:46:04' and `end` < '2025-01-10 04: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-01-10 04:46:26] Production.INFO: count ==108 [2025-01-10 04:46:26] Production.ERROR: pbx CDR StartTime 2025-01-10 01:46:04 - End Time 2025-01-10 04:46:04 [2025-01-10 04:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214562', 'tblTempUsageDetail_20' ) start [2025-01-10 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214562', 'tblTempUsageDetail_20' ) end [2025-01-10 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214562', 'tblTempVendorCDR_20' ) start [2025-01-10 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214562', 'tblTempVendorCDR_20' ) end [2025-01-10 04:46:26] Production.INFO: ProcessCDR(1,14214562,1,1,2) [2025-01-10 04:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214562', 'tblTempUsageDetail_20' ) start [2025-01-10 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214562', 'tblTempUsageDetail_20' ) end [2025-01-10 04:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:46:29] Production.INFO: ==11354== Releasing lock... [2025-01-10 04:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:46:29] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:47:05 [end_date_ymd] => 2025-01-10 04:47:05 [RateCDR] => 1 ) [2025-01-10 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:47:05' and `end` < '2025-01-10 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:47:22] Production.INFO: count ==108 [2025-01-10 04:47:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:47:05 - End Time 2025-01-10 04:47:05 [2025-01-10 04:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214567', 'tblTempUsageDetail_20' ) start [2025-01-10 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214567', 'tblTempUsageDetail_20' ) end [2025-01-10 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214567', 'tblTempVendorCDR_20' ) start [2025-01-10 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214567', 'tblTempVendorCDR_20' ) end [2025-01-10 04:47:22] Production.INFO: ProcessCDR(1,14214567,1,1,2) [2025-01-10 04:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214567', 'tblTempUsageDetail_20' ) start [2025-01-10 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214567', 'tblTempUsageDetail_20' ) end [2025-01-10 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:47:25] Production.INFO: ==11429== Releasing lock... [2025-01-10 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:47:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:48:04 [end_date_ymd] => 2025-01-10 04:48:04 [RateCDR] => 1 ) [2025-01-10 04: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-01-10 01:48:04' and `end` < '2025-01-10 04: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-01-10 04:48:22] Production.INFO: count ==108 [2025-01-10 04:48:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:48:04 - End Time 2025-01-10 04:48:04 [2025-01-10 04:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214572', 'tblTempUsageDetail_20' ) start [2025-01-10 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214572', 'tblTempUsageDetail_20' ) end [2025-01-10 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214572', 'tblTempVendorCDR_20' ) start [2025-01-10 04:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214572', 'tblTempVendorCDR_20' ) end [2025-01-10 04:48:22] Production.INFO: ProcessCDR(1,14214572,1,1,2) [2025-01-10 04:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214572', 'tblTempUsageDetail_20' ) start [2025-01-10 04:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214572', 'tblTempUsageDetail_20' ) end [2025-01-10 04:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:48:25] Production.INFO: ==11499== Releasing lock... [2025-01-10 04:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:48:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:49:05 [end_date_ymd] => 2025-01-10 04:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:49:05' and `end` < '2025-01-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-01-10 04:49:21] Production.INFO: count ==108 [2025-01-10 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-10 01:49:05 - End Time 2025-01-10 04:49:05 [2025-01-10 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214577', 'tblTempUsageDetail_20' ) start [2025-01-10 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214577', 'tblTempUsageDetail_20' ) end [2025-01-10 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214577', 'tblTempVendorCDR_20' ) start [2025-01-10 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214577', 'tblTempVendorCDR_20' ) end [2025-01-10 04:49:21] Production.INFO: ProcessCDR(1,14214577,1,1,2) [2025-01-10 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214577', 'tblTempUsageDetail_20' ) start [2025-01-10 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214577', 'tblTempUsageDetail_20' ) end [2025-01-10 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:49:24] Production.INFO: ==11572== Releasing lock... [2025-01-10 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:49:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:50:06 [end_date_ymd] => 2025-01-10 04:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 01:50:06' and `end` < '2025-01-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-01-10 04:50:22] Production.INFO: count ==100 [2025-01-10 04:50:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:50:06 - End Time 2025-01-10 04:50:06 [2025-01-10 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214583', 'tblTempUsageDetail_20' ) start [2025-01-10 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214583', 'tblTempUsageDetail_20' ) end [2025-01-10 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214583', 'tblTempVendorCDR_20' ) start [2025-01-10 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214583', 'tblTempVendorCDR_20' ) end [2025-01-10 04:50:22] Production.INFO: ProcessCDR(1,14214583,1,1,2) [2025-01-10 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214583', 'tblTempUsageDetail_20' ) start [2025-01-10 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214583', 'tblTempUsageDetail_20' ) end [2025-01-10 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:50:25] Production.INFO: ==11645== Releasing lock... [2025-01-10 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:50:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:51:05 [end_date_ymd] => 2025-01-10 04:51:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:51:05' and `end` < '2025-01-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-01-10 04:51:20] Production.INFO: count ==94 [2025-01-10 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:51:05 - End Time 2025-01-10 04:51:05 [2025-01-10 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214588', 'tblTempUsageDetail_20' ) start [2025-01-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214588', 'tblTempUsageDetail_20' ) end [2025-01-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214588', 'tblTempVendorCDR_20' ) start [2025-01-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214588', 'tblTempVendorCDR_20' ) end [2025-01-10 04:51:20] Production.INFO: ProcessCDR(1,14214588,1,1,2) [2025-01-10 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214588', 'tblTempUsageDetail_20' ) start [2025-01-10 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214588', 'tblTempUsageDetail_20' ) end [2025-01-10 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:51:23] Production.INFO: ==11716== Releasing lock... [2025-01-10 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:51:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:52:05 [end_date_ymd] => 2025-01-10 04:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:52:05' and `end` < '2025-01-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-01-10 04:52:20] Production.INFO: count ==94 [2025-01-10 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:52:05 - End Time 2025-01-10 04:52:05 [2025-01-10 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214593', 'tblTempUsageDetail_20' ) start [2025-01-10 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214593', 'tblTempUsageDetail_20' ) end [2025-01-10 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214593', 'tblTempVendorCDR_20' ) start [2025-01-10 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214593', 'tblTempVendorCDR_20' ) end [2025-01-10 04:52:20] Production.INFO: ProcessCDR(1,14214593,1,1,2) [2025-01-10 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214593', 'tblTempUsageDetail_20' ) start [2025-01-10 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214593', 'tblTempUsageDetail_20' ) end [2025-01-10 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:52:23] Production.INFO: ==11786== Releasing lock... [2025-01-10 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:52:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:53:04 [end_date_ymd] => 2025-01-10 04:53:04 [RateCDR] => 1 ) [2025-01-10 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 01:53:04' and `end` < '2025-01-10 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 04:53:22] Production.INFO: count ==94 [2025-01-10 04:53:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:53:04 - End Time 2025-01-10 04:53:04 [2025-01-10 04:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214598', 'tblTempUsageDetail_20' ) start [2025-01-10 04:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214598', 'tblTempUsageDetail_20' ) end [2025-01-10 04:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214598', 'tblTempVendorCDR_20' ) start [2025-01-10 04:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214598', 'tblTempVendorCDR_20' ) end [2025-01-10 04:53:22] Production.INFO: ProcessCDR(1,14214598,1,1,2) [2025-01-10 04:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214598', 'tblTempUsageDetail_20' ) start [2025-01-10 04:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214598', 'tblTempUsageDetail_20' ) end [2025-01-10 04:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:53:25] Production.INFO: ==11857== Releasing lock... [2025-01-10 04:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:53:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:54:05 [end_date_ymd] => 2025-01-10 04:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:54:05' and `end` < '2025-01-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-01-10 04:54:22] Production.INFO: count ==94 [2025-01-10 04:54:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:54:05 - End Time 2025-01-10 04:54:05 [2025-01-10 04:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214603', 'tblTempUsageDetail_20' ) start [2025-01-10 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214603', 'tblTempUsageDetail_20' ) end [2025-01-10 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214603', 'tblTempVendorCDR_20' ) start [2025-01-10 04:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214603', 'tblTempVendorCDR_20' ) end [2025-01-10 04:54:22] Production.INFO: ProcessCDR(1,14214603,1,1,2) [2025-01-10 04:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214603', 'tblTempUsageDetail_20' ) start [2025-01-10 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214603', 'tblTempUsageDetail_20' ) end [2025-01-10 04:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:54:25] Production.INFO: ==11934== Releasing lock... [2025-01-10 04:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:54:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:55:05 [end_date_ymd] => 2025-01-10 04:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:55:05' and `end` < '2025-01-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-01-10 04:55:20] Production.INFO: count ==94 [2025-01-10 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:55:05 - End Time 2025-01-10 04:55:05 [2025-01-10 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214608', 'tblTempUsageDetail_20' ) start [2025-01-10 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214608', 'tblTempUsageDetail_20' ) end [2025-01-10 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214608', 'tblTempVendorCDR_20' ) start [2025-01-10 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214608', 'tblTempVendorCDR_20' ) end [2025-01-10 04:55:20] Production.INFO: ProcessCDR(1,14214608,1,1,2) [2025-01-10 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214608', 'tblTempUsageDetail_20' ) start [2025-01-10 04:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214608', 'tblTempUsageDetail_20' ) end [2025-01-10 04:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:55:24] Production.INFO: ==12003== Releasing lock... [2025-01-10 04:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:55:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:56:05 [end_date_ymd] => 2025-01-10 04:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:56:05' and `end` < '2025-01-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-01-10 04:56:22] Production.INFO: count ==94 [2025-01-10 04:56:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:56:05 - End Time 2025-01-10 04:56:05 [2025-01-10 04:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214613', 'tblTempUsageDetail_20' ) start [2025-01-10 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214613', 'tblTempUsageDetail_20' ) end [2025-01-10 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214613', 'tblTempVendorCDR_20' ) start [2025-01-10 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214613', 'tblTempVendorCDR_20' ) end [2025-01-10 04:56:22] Production.INFO: ProcessCDR(1,14214613,1,1,2) [2025-01-10 04:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214613', 'tblTempUsageDetail_20' ) start [2025-01-10 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214613', 'tblTempUsageDetail_20' ) end [2025-01-10 04:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:56:25] Production.INFO: ==12074== Releasing lock... [2025-01-10 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:56:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:57:05 [end_date_ymd] => 2025-01-10 04:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:57:05' and `end` < '2025-01-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-01-10 04:57:20] Production.INFO: count ==94 [2025-01-10 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-10 01:57:05 - End Time 2025-01-10 04:57:05 [2025-01-10 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214618', 'tblTempUsageDetail_20' ) start [2025-01-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214618', 'tblTempUsageDetail_20' ) end [2025-01-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214618', 'tblTempVendorCDR_20' ) start [2025-01-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214618', 'tblTempVendorCDR_20' ) end [2025-01-10 04:57:20] Production.INFO: ProcessCDR(1,14214618,1,1,2) [2025-01-10 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214618', 'tblTempUsageDetail_20' ) start [2025-01-10 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214618', 'tblTempUsageDetail_20' ) end [2025-01-10 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:57:23] Production.INFO: ==12143== Releasing lock... [2025-01-10 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:57:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:58:05 [end_date_ymd] => 2025-01-10 04:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:58:05' and `end` < '2025-01-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-01-10 04:58:22] Production.INFO: count ==94 [2025-01-10 04:58:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:58:05 - End Time 2025-01-10 04:58:05 [2025-01-10 04:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214623', 'tblTempUsageDetail_20' ) start [2025-01-10 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214623', 'tblTempUsageDetail_20' ) end [2025-01-10 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214623', 'tblTempVendorCDR_20' ) start [2025-01-10 04:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214623', 'tblTempVendorCDR_20' ) end [2025-01-10 04:58:22] Production.INFO: ProcessCDR(1,14214623,1,1,2) [2025-01-10 04:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214623', 'tblTempUsageDetail_20' ) start [2025-01-10 04:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214623', 'tblTempUsageDetail_20' ) end [2025-01-10 04:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:58:25] Production.INFO: ==12256== Releasing lock... [2025-01-10 04:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:58:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 01:59:05 [end_date_ymd] => 2025-01-10 04:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 01:59:05' and `end` < '2025-01-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-01-10 04:59:22] Production.INFO: count ==94 [2025-01-10 04:59:22] Production.ERROR: pbx CDR StartTime 2025-01-10 01:59:05 - End Time 2025-01-10 04:59:05 [2025-01-10 04:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 04:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214628', 'tblTempUsageDetail_20' ) start [2025-01-10 04:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214628', 'tblTempUsageDetail_20' ) end [2025-01-10 04:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214628', 'tblTempVendorCDR_20' ) start [2025-01-10 04:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214628', 'tblTempVendorCDR_20' ) end [2025-01-10 04:59:22] Production.INFO: ProcessCDR(1,14214628,1,1,2) [2025-01-10 04:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 04:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214628', 'tblTempUsageDetail_20' ) start [2025-01-10 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214628', 'tblTempUsageDetail_20' ) end [2025-01-10 04:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 04:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 04:59:25] Production.INFO: ==12326== Releasing lock... [2025-01-10 04:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 04:59:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:00:06 [end_date_ymd] => 2025-01-10 05:00:06 [RateCDR] => 1 ) [2025-01-10 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:00:06' and `end` < '2025-01-10 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:00:21] Production.INFO: count ==85 [2025-01-10 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-10 02:00:06 - End Time 2025-01-10 05:00:06 [2025-01-10 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214633', 'tblTempUsageDetail_20' ) start [2025-01-10 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214633', 'tblTempUsageDetail_20' ) end [2025-01-10 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214633', 'tblTempVendorCDR_20' ) start [2025-01-10 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214633', 'tblTempVendorCDR_20' ) end [2025-01-10 05:00:21] Production.INFO: ProcessCDR(1,14214633,1,1,2) [2025-01-10 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214633', 'tblTempUsageDetail_20' ) start [2025-01-10 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214633', 'tblTempUsageDetail_20' ) end [2025-01-10 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:00:25] Production.INFO: ==12398== Releasing lock... [2025-01-10 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:00:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:01:06 [end_date_ymd] => 2025-01-10 05:01:06 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:01:06' and `end` < '2025-01-10 05: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-01-10 05:01:21] Production.INFO: count ==79 [2025-01-10 05:01:21] Production.ERROR: pbx CDR StartTime 2025-01-10 02:01:06 - End Time 2025-01-10 05:01:06 [2025-01-10 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214639', 'tblTempUsageDetail_20' ) start [2025-01-10 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214639', 'tblTempUsageDetail_20' ) end [2025-01-10 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214639', 'tblTempVendorCDR_20' ) start [2025-01-10 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214639', 'tblTempVendorCDR_20' ) end [2025-01-10 05:01:21] Production.INFO: ProcessCDR(1,14214639,1,1,2) [2025-01-10 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214639', 'tblTempUsageDetail_20' ) start [2025-01-10 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214639', 'tblTempUsageDetail_20' ) end [2025-01-10 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:01:24] Production.INFO: ==12484== Releasing lock... [2025-01-10 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:01:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:02:06 [end_date_ymd] => 2025-01-10 05:02:06 [RateCDR] => 1 ) [2025-01-10 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:02:06' and `end` < '2025-01-10 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:02:22] Production.INFO: count ==79 [2025-01-10 05:02:22] Production.ERROR: pbx CDR StartTime 2025-01-10 02:02:06 - End Time 2025-01-10 05:02:06 [2025-01-10 05:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214644', 'tblTempUsageDetail_20' ) start [2025-01-10 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214644', 'tblTempUsageDetail_20' ) end [2025-01-10 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214644', 'tblTempVendorCDR_20' ) start [2025-01-10 05:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214644', 'tblTempVendorCDR_20' ) end [2025-01-10 05:02:22] Production.INFO: ProcessCDR(1,14214644,1,1,2) [2025-01-10 05:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214644', 'tblTempUsageDetail_20' ) start [2025-01-10 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214644', 'tblTempUsageDetail_20' ) end [2025-01-10 05:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:02:25] Production.INFO: ==12553== Releasing lock... [2025-01-10 05:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:02:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:03:05 [end_date_ymd] => 2025-01-10 05:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:03:05' and `end` < '2025-01-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-01-10 05:03:19] Production.INFO: count ==79 [2025-01-10 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:03:05 - End Time 2025-01-10 05:03:05 [2025-01-10 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214649', 'tblTempUsageDetail_20' ) start [2025-01-10 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214649', 'tblTempUsageDetail_20' ) end [2025-01-10 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214649', 'tblTempVendorCDR_20' ) start [2025-01-10 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214649', 'tblTempVendorCDR_20' ) end [2025-01-10 05:03:19] Production.INFO: ProcessCDR(1,14214649,1,1,2) [2025-01-10 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214649', 'tblTempUsageDetail_20' ) start [2025-01-10 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214649', 'tblTempUsageDetail_20' ) end [2025-01-10 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:03:22] Production.INFO: ==12622== Releasing lock... [2025-01-10 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:04:05 [end_date_ymd] => 2025-01-10 05:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:04:05' and `end` < '2025-01-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-01-10 05:04:17] Production.INFO: count ==79 [2025-01-10 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:04:05 - End Time 2025-01-10 05:04:05 [2025-01-10 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214652', 'tblTempUsageDetail_20' ) start [2025-01-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214652', 'tblTempUsageDetail_20' ) end [2025-01-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214652', 'tblTempVendorCDR_20' ) start [2025-01-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214652', 'tblTempVendorCDR_20' ) end [2025-01-10 05:04:18] Production.INFO: ProcessCDR(1,14214652,1,1,2) [2025-01-10 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214652', 'tblTempUsageDetail_20' ) start [2025-01-10 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214652', 'tblTempUsageDetail_20' ) end [2025-01-10 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:04:21] Production.INFO: ==12692== Releasing lock... [2025-01-10 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:05:05 [end_date_ymd] => 2025-01-10 05:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:05:05' and `end` < '2025-01-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-01-10 05:05:18] Production.INFO: count ==79 [2025-01-10 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:05:05 - End Time 2025-01-10 05:05:05 [2025-01-10 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214659', 'tblTempUsageDetail_20' ) start [2025-01-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214659', 'tblTempUsageDetail_20' ) end [2025-01-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214659', 'tblTempVendorCDR_20' ) start [2025-01-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214659', 'tblTempVendorCDR_20' ) end [2025-01-10 05:05:18] Production.INFO: ProcessCDR(1,14214659,1,1,2) [2025-01-10 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214659', 'tblTempUsageDetail_20' ) start [2025-01-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214659', 'tblTempUsageDetail_20' ) end [2025-01-10 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:05:21] Production.INFO: ==12762== Releasing lock... [2025-01-10 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:06:05 [end_date_ymd] => 2025-01-10 05:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:06:05' and `end` < '2025-01-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-01-10 05:06:18] Production.INFO: count ==79 [2025-01-10 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:06:05 - End Time 2025-01-10 05:06:05 [2025-01-10 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214664', 'tblTempUsageDetail_20' ) start [2025-01-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214664', 'tblTempUsageDetail_20' ) end [2025-01-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214664', 'tblTempVendorCDR_20' ) start [2025-01-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214664', 'tblTempVendorCDR_20' ) end [2025-01-10 05:06:18] Production.INFO: ProcessCDR(1,14214664,1,1,2) [2025-01-10 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214664', 'tblTempUsageDetail_20' ) start [2025-01-10 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214664', 'tblTempUsageDetail_20' ) end [2025-01-10 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:06:21] Production.INFO: ==12832== Releasing lock... [2025-01-10 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:07:05 [end_date_ymd] => 2025-01-10 05:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:07:05' and `end` < '2025-01-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-01-10 05:07:44] Production.INFO: count ==79 [2025-01-10 05:07:44] Production.ERROR: pbx CDR StartTime 2025-01-10 02:07:05 - End Time 2025-01-10 05:07:05 [2025-01-10 05:07:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:07:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214669', 'tblTempUsageDetail_20' ) start [2025-01-10 05:07:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214669', 'tblTempUsageDetail_20' ) end [2025-01-10 05:07:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214669', 'tblTempVendorCDR_20' ) start [2025-01-10 05:07:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214669', 'tblTempVendorCDR_20' ) end [2025-01-10 05:07:44] Production.INFO: ProcessCDR(1,14214669,1,1,2) [2025-01-10 05:07:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:07:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:07:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:07:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:07:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214669', 'tblTempUsageDetail_20' ) start [2025-01-10 05:07:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214669', 'tblTempUsageDetail_20' ) end [2025-01-10 05:07:47] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:07:47] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:07:47] Production.INFO: ==12907== Releasing lock... [2025-01-10 05:07:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:07:47] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:08:05 [end_date_ymd] => 2025-01-10 05:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:08:05' and `end` < '2025-01-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-01-10 05:08:19] Production.INFO: count ==79 [2025-01-10 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:08:05 - End Time 2025-01-10 05:08:05 [2025-01-10 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214674', 'tblTempUsageDetail_20' ) start [2025-01-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214674', 'tblTempUsageDetail_20' ) end [2025-01-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214674', 'tblTempVendorCDR_20' ) start [2025-01-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214674', 'tblTempVendorCDR_20' ) end [2025-01-10 05:08:19] Production.INFO: ProcessCDR(1,14214674,1,1,2) [2025-01-10 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214674', 'tblTempUsageDetail_20' ) start [2025-01-10 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214674', 'tblTempUsageDetail_20' ) end [2025-01-10 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:08:23] Production.INFO: ==12977== Releasing lock... [2025-01-10 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:09:05 [end_date_ymd] => 2025-01-10 05:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:09:05' and `end` < '2025-01-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-01-10 05:09:18] Production.INFO: count ==79 [2025-01-10 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:09:05 - End Time 2025-01-10 05:09:05 [2025-01-10 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214679', 'tblTempUsageDetail_20' ) start [2025-01-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214679', 'tblTempUsageDetail_20' ) end [2025-01-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214679', 'tblTempVendorCDR_20' ) start [2025-01-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214679', 'tblTempVendorCDR_20' ) end [2025-01-10 05:09:18] Production.INFO: ProcessCDR(1,14214679,1,1,2) [2025-01-10 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214679', 'tblTempUsageDetail_20' ) start [2025-01-10 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214679', 'tblTempUsageDetail_20' ) end [2025-01-10 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:09:21] Production.INFO: ==13047== Releasing lock... [2025-01-10 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:10:05 [end_date_ymd] => 2025-01-10 05:10:05 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:10:05' and `end` < '2025-01-10 05: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-01-10 05:10:18] Production.INFO: count ==79 [2025-01-10 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:10:05 - End Time 2025-01-10 05:10:05 [2025-01-10 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214684', 'tblTempUsageDetail_20' ) start [2025-01-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214684', 'tblTempUsageDetail_20' ) end [2025-01-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214684', 'tblTempVendorCDR_20' ) start [2025-01-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214684', 'tblTempVendorCDR_20' ) end [2025-01-10 05:10:18] Production.INFO: ProcessCDR(1,14214684,1,1,2) [2025-01-10 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214684', 'tblTempUsageDetail_20' ) start [2025-01-10 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214684', 'tblTempUsageDetail_20' ) end [2025-01-10 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:10:21] Production.INFO: ==13121== Releasing lock... [2025-01-10 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:11:05 [end_date_ymd] => 2025-01-10 05:11:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:11:05' and `end` < '2025-01-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-01-10 05:11:18] Production.INFO: count ==79 [2025-01-10 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:11:05 - End Time 2025-01-10 05:11:05 [2025-01-10 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214690', 'tblTempUsageDetail_20' ) start [2025-01-10 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214690', 'tblTempUsageDetail_20' ) end [2025-01-10 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214690', 'tblTempVendorCDR_20' ) start [2025-01-10 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214690', 'tblTempVendorCDR_20' ) end [2025-01-10 05:11:18] Production.INFO: ProcessCDR(1,14214690,1,1,2) [2025-01-10 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214690', 'tblTempUsageDetail_20' ) start [2025-01-10 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214690', 'tblTempUsageDetail_20' ) end [2025-01-10 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:11:22] Production.INFO: ==13196== Releasing lock... [2025-01-10 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:12:04 [end_date_ymd] => 2025-01-10 05:12:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:12:04' and `end` < '2025-01-10 05: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-01-10 05:12:17] Production.INFO: count ==79 [2025-01-10 05:12:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:12:04 - End Time 2025-01-10 05:12:04 [2025-01-10 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214695', 'tblTempUsageDetail_20' ) start [2025-01-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214695', 'tblTempUsageDetail_20' ) end [2025-01-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214695', 'tblTempVendorCDR_20' ) start [2025-01-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214695', 'tblTempVendorCDR_20' ) end [2025-01-10 05:12:17] Production.INFO: ProcessCDR(1,14214695,1,1,2) [2025-01-10 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214695', 'tblTempUsageDetail_20' ) start [2025-01-10 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214695', 'tblTempUsageDetail_20' ) end [2025-01-10 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:12:21] Production.INFO: ==13267== Releasing lock... [2025-01-10 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:13:05 [end_date_ymd] => 2025-01-10 05:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:13:05' and `end` < '2025-01-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-01-10 05:13:18] Production.INFO: count ==79 [2025-01-10 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:13:05 - End Time 2025-01-10 05:13:05 [2025-01-10 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214700', 'tblTempUsageDetail_20' ) start [2025-01-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214700', 'tblTempUsageDetail_20' ) end [2025-01-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214700', 'tblTempVendorCDR_20' ) start [2025-01-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214700', 'tblTempVendorCDR_20' ) end [2025-01-10 05:13:18] Production.INFO: ProcessCDR(1,14214700,1,1,2) [2025-01-10 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214700', 'tblTempUsageDetail_20' ) start [2025-01-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214700', 'tblTempUsageDetail_20' ) end [2025-01-10 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:13:22] Production.INFO: ==13376== Releasing lock... [2025-01-10 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:14:05 [end_date_ymd] => 2025-01-10 05:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:14:05' and `end` < '2025-01-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-01-10 05:14:17] Production.INFO: count ==79 [2025-01-10 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:14:05 - End Time 2025-01-10 05:14:05 [2025-01-10 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214705', 'tblTempUsageDetail_20' ) start [2025-01-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214705', 'tblTempUsageDetail_20' ) end [2025-01-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214705', 'tblTempVendorCDR_20' ) start [2025-01-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214705', 'tblTempVendorCDR_20' ) end [2025-01-10 05:14:17] Production.INFO: ProcessCDR(1,14214705,1,1,2) [2025-01-10 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214705', 'tblTempUsageDetail_20' ) start [2025-01-10 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214705', 'tblTempUsageDetail_20' ) end [2025-01-10 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:14:21] Production.INFO: ==13448== Releasing lock... [2025-01-10 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:15:06 [end_date_ymd] => 2025-01-10 05:15:06 [RateCDR] => 1 ) [2025-01-10 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:15:06' and `end` < '2025-01-10 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:15:18] Production.INFO: count ==79 [2025-01-10 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:15:06 - End Time 2025-01-10 05:15:06 [2025-01-10 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214710', 'tblTempUsageDetail_20' ) start [2025-01-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214710', 'tblTempUsageDetail_20' ) end [2025-01-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214710', 'tblTempVendorCDR_20' ) start [2025-01-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214710', 'tblTempVendorCDR_20' ) end [2025-01-10 05:15:18] Production.INFO: ProcessCDR(1,14214710,1,1,2) [2025-01-10 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214710', 'tblTempUsageDetail_20' ) start [2025-01-10 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214710', 'tblTempUsageDetail_20' ) end [2025-01-10 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:15:22] Production.INFO: ==13519== Releasing lock... [2025-01-10 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:16:05 [end_date_ymd] => 2025-01-10 05:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:16:05' and `end` < '2025-01-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-01-10 05:16:18] Production.INFO: count ==79 [2025-01-10 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:16:05 - End Time 2025-01-10 05:16:05 [2025-01-10 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214715', 'tblTempUsageDetail_20' ) start [2025-01-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214715', 'tblTempUsageDetail_20' ) end [2025-01-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214715', 'tblTempVendorCDR_20' ) start [2025-01-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214715', 'tblTempVendorCDR_20' ) end [2025-01-10 05:16:18] Production.INFO: ProcessCDR(1,14214715,1,1,2) [2025-01-10 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214715', 'tblTempUsageDetail_20' ) start [2025-01-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214715', 'tblTempUsageDetail_20' ) end [2025-01-10 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:16:21] Production.INFO: ==13590== Releasing lock... [2025-01-10 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:17:05 [end_date_ymd] => 2025-01-10 05:17:05 [RateCDR] => 1 ) [2025-01-10 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:17:05' and `end` < '2025-01-10 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:17:19] Production.INFO: count ==79 [2025-01-10 05:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:17:05 - End Time 2025-01-10 05:17:05 [2025-01-10 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214720', 'tblTempUsageDetail_20' ) start [2025-01-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214720', 'tblTempUsageDetail_20' ) end [2025-01-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214720', 'tblTempVendorCDR_20' ) start [2025-01-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214720', 'tblTempVendorCDR_20' ) end [2025-01-10 05:17:19] Production.INFO: ProcessCDR(1,14214720,1,1,2) [2025-01-10 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214720', 'tblTempUsageDetail_20' ) start [2025-01-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214720', 'tblTempUsageDetail_20' ) end [2025-01-10 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:17:22] Production.INFO: ==13660== Releasing lock... [2025-01-10 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:18:04 [end_date_ymd] => 2025-01-10 05:18:04 [RateCDR] => 1 ) [2025-01-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-01-10 02:18:04' and `end` < '2025-01-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-01-10 05:18:17] Production.INFO: count ==79 [2025-01-10 05:18:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:18:04 - End Time 2025-01-10 05:18:04 [2025-01-10 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214725', 'tblTempUsageDetail_20' ) start [2025-01-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214725', 'tblTempUsageDetail_20' ) end [2025-01-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214725', 'tblTempVendorCDR_20' ) start [2025-01-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214725', 'tblTempVendorCDR_20' ) end [2025-01-10 05:18:17] Production.INFO: ProcessCDR(1,14214725,1,1,2) [2025-01-10 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214725', 'tblTempUsageDetail_20' ) start [2025-01-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214725', 'tblTempUsageDetail_20' ) end [2025-01-10 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:18:20] Production.INFO: ==13730== Releasing lock... [2025-01-10 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:18:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:19:05 [end_date_ymd] => 2025-01-10 05:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:19:05' and `end` < '2025-01-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-01-10 05:19:18] Production.INFO: count ==79 [2025-01-10 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:19:05 - End Time 2025-01-10 05:19:05 [2025-01-10 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214730', 'tblTempUsageDetail_20' ) start [2025-01-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214730', 'tblTempUsageDetail_20' ) end [2025-01-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214730', 'tblTempVendorCDR_20' ) start [2025-01-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214730', 'tblTempVendorCDR_20' ) end [2025-01-10 05:19:18] Production.INFO: ProcessCDR(1,14214730,1,1,2) [2025-01-10 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214730', 'tblTempUsageDetail_20' ) start [2025-01-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214730', 'tblTempUsageDetail_20' ) end [2025-01-10 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:19:21] Production.INFO: ==13801== Releasing lock... [2025-01-10 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:20:05 [end_date_ymd] => 2025-01-10 05:20:05 [RateCDR] => 1 ) [2025-01-10 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:20:05' and `end` < '2025-01-10 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:20:18] Production.INFO: count ==75 [2025-01-10 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:20:05 - End Time 2025-01-10 05:20:05 [2025-01-10 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214736', 'tblTempUsageDetail_20' ) start [2025-01-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214736', 'tblTempUsageDetail_20' ) end [2025-01-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214736', 'tblTempVendorCDR_20' ) start [2025-01-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214736', 'tblTempVendorCDR_20' ) end [2025-01-10 05:20:18] Production.INFO: ProcessCDR(1,14214736,1,1,2) [2025-01-10 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214736', 'tblTempUsageDetail_20' ) start [2025-01-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214736', 'tblTempUsageDetail_20' ) end [2025-01-10 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:20:22] Production.INFO: ==13872== Releasing lock... [2025-01-10 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:21:05 [end_date_ymd] => 2025-01-10 05:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:21:05' and `end` < '2025-01-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-01-10 05:21:18] Production.INFO: count ==71 [2025-01-10 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:21:05 - End Time 2025-01-10 05:21:05 [2025-01-10 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214741', 'tblTempUsageDetail_20' ) start [2025-01-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214741', 'tblTempUsageDetail_20' ) end [2025-01-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214741', 'tblTempVendorCDR_20' ) start [2025-01-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214741', 'tblTempVendorCDR_20' ) end [2025-01-10 05:21:18] Production.INFO: ProcessCDR(1,14214741,1,1,2) [2025-01-10 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214741', 'tblTempUsageDetail_20' ) start [2025-01-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214741', 'tblTempUsageDetail_20' ) end [2025-01-10 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:21:21] Production.INFO: ==13948== Releasing lock... [2025-01-10 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:22:05 [end_date_ymd] => 2025-01-10 05:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:22:05' and `end` < '2025-01-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-01-10 05:22:19] Production.INFO: count ==71 [2025-01-10 05:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:22:05 - End Time 2025-01-10 05:22:05 [2025-01-10 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214746', 'tblTempUsageDetail_20' ) start [2025-01-10 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214746', 'tblTempUsageDetail_20' ) end [2025-01-10 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214746', 'tblTempVendorCDR_20' ) start [2025-01-10 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214746', 'tblTempVendorCDR_20' ) end [2025-01-10 05:22:19] Production.INFO: ProcessCDR(1,14214746,1,1,2) [2025-01-10 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214746', 'tblTempUsageDetail_20' ) start [2025-01-10 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214746', 'tblTempUsageDetail_20' ) end [2025-01-10 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:22:22] Production.INFO: ==14022== Releasing lock... [2025-01-10 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:23:04 [end_date_ymd] => 2025-01-10 05:23:04 [RateCDR] => 1 ) [2025-01-10 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:23:04' and `end` < '2025-01-10 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:23:18] Production.INFO: count ==71 [2025-01-10 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:23:04 - End Time 2025-01-10 05:23:04 [2025-01-10 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214751', 'tblTempUsageDetail_20' ) start [2025-01-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214751', 'tblTempUsageDetail_20' ) end [2025-01-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214751', 'tblTempVendorCDR_20' ) start [2025-01-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214751', 'tblTempVendorCDR_20' ) end [2025-01-10 05:23:18] Production.INFO: ProcessCDR(1,14214751,1,1,2) [2025-01-10 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214751', 'tblTempUsageDetail_20' ) start [2025-01-10 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214751', 'tblTempUsageDetail_20' ) end [2025-01-10 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:23:22] Production.INFO: ==14092== Releasing lock... [2025-01-10 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:24:05 [end_date_ymd] => 2025-01-10 05:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:24:05' and `end` < '2025-01-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-01-10 05:24:18] Production.INFO: count ==71 [2025-01-10 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:24:05 - End Time 2025-01-10 05:24:05 [2025-01-10 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214756', 'tblTempUsageDetail_20' ) start [2025-01-10 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214756', 'tblTempUsageDetail_20' ) end [2025-01-10 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214756', 'tblTempVendorCDR_20' ) start [2025-01-10 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214756', 'tblTempVendorCDR_20' ) end [2025-01-10 05:24:18] Production.INFO: ProcessCDR(1,14214756,1,1,2) [2025-01-10 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214756', 'tblTempUsageDetail_20' ) start [2025-01-10 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214756', 'tblTempUsageDetail_20' ) end [2025-01-10 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:24:21] Production.INFO: ==14163== Releasing lock... [2025-01-10 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:25:05 [end_date_ymd] => 2025-01-10 05:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:25:05' and `end` < '2025-01-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-01-10 05:25:18] Production.INFO: count ==71 [2025-01-10 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:25:05 - End Time 2025-01-10 05:25:05 [2025-01-10 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214761', 'tblTempUsageDetail_20' ) start [2025-01-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214761', 'tblTempUsageDetail_20' ) end [2025-01-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214761', 'tblTempVendorCDR_20' ) start [2025-01-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214761', 'tblTempVendorCDR_20' ) end [2025-01-10 05:25:18] Production.INFO: ProcessCDR(1,14214761,1,1,2) [2025-01-10 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214761', 'tblTempUsageDetail_20' ) start [2025-01-10 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214761', 'tblTempUsageDetail_20' ) end [2025-01-10 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:25:21] Production.INFO: ==14235== Releasing lock... [2025-01-10 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:26:05 [end_date_ymd] => 2025-01-10 05:26:05 [RateCDR] => 1 ) [2025-01-10 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:26:05' and `end` < '2025-01-10 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:26:19] Production.INFO: count ==71 [2025-01-10 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:26:05 - End Time 2025-01-10 05:26:05 [2025-01-10 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214766', 'tblTempUsageDetail_20' ) start [2025-01-10 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214766', 'tblTempUsageDetail_20' ) end [2025-01-10 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214766', 'tblTempVendorCDR_20' ) start [2025-01-10 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214766', 'tblTempVendorCDR_20' ) end [2025-01-10 05:26:19] Production.INFO: ProcessCDR(1,14214766,1,1,2) [2025-01-10 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214766', 'tblTempUsageDetail_20' ) start [2025-01-10 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214766', 'tblTempUsageDetail_20' ) end [2025-01-10 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:26:22] Production.INFO: ==14306== Releasing lock... [2025-01-10 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:27:05 [end_date_ymd] => 2025-01-10 05:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:27:05' and `end` < '2025-01-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-01-10 05:27:18] Production.INFO: count ==71 [2025-01-10 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:27:05 - End Time 2025-01-10 05:27:05 [2025-01-10 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214771', 'tblTempUsageDetail_20' ) start [2025-01-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214771', 'tblTempUsageDetail_20' ) end [2025-01-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214771', 'tblTempVendorCDR_20' ) start [2025-01-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214771', 'tblTempVendorCDR_20' ) end [2025-01-10 05:27:18] Production.INFO: ProcessCDR(1,14214771,1,1,2) [2025-01-10 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214771', 'tblTempUsageDetail_20' ) start [2025-01-10 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214771', 'tblTempUsageDetail_20' ) end [2025-01-10 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:27:21] Production.INFO: ==14378== Releasing lock... [2025-01-10 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:28:04 [end_date_ymd] => 2025-01-10 05:28:04 [RateCDR] => 1 ) [2025-01-10 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:28:04' and `end` < '2025-01-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-01-10 05:28:17] Production.INFO: count ==71 [2025-01-10 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:28:04 - End Time 2025-01-10 05:28:04 [2025-01-10 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214776', 'tblTempUsageDetail_20' ) start [2025-01-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214776', 'tblTempUsageDetail_20' ) end [2025-01-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214776', 'tblTempVendorCDR_20' ) start [2025-01-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214776', 'tblTempVendorCDR_20' ) end [2025-01-10 05:28:17] Production.INFO: ProcessCDR(1,14214776,1,1,2) [2025-01-10 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214776', 'tblTempUsageDetail_20' ) start [2025-01-10 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214776', 'tblTempUsageDetail_20' ) end [2025-01-10 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:28:20] Production.INFO: ==14447== Releasing lock... [2025-01-10 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:29:05 [end_date_ymd] => 2025-01-10 05:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:29:05' and `end` < '2025-01-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-01-10 05:29:19] Production.INFO: count ==71 [2025-01-10 05:29:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:29:05 - End Time 2025-01-10 05:29:05 [2025-01-10 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214781', 'tblTempUsageDetail_20' ) start [2025-01-10 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214781', 'tblTempUsageDetail_20' ) end [2025-01-10 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214781', 'tblTempVendorCDR_20' ) start [2025-01-10 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214781', 'tblTempVendorCDR_20' ) end [2025-01-10 05:29:19] Production.INFO: ProcessCDR(1,14214781,1,1,2) [2025-01-10 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214781', 'tblTempUsageDetail_20' ) start [2025-01-10 05:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214781', 'tblTempUsageDetail_20' ) end [2025-01-10 05:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:29:23] Production.INFO: ==14557== Releasing lock... [2025-01-10 05:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:29:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:30:05 [end_date_ymd] => 2025-01-10 05:30:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:30:05' and `end` < '2025-01-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-01-10 05:30:18] Production.INFO: count ==67 [2025-01-10 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:30:05 - End Time 2025-01-10 05:30:05 [2025-01-10 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214786', 'tblTempUsageDetail_20' ) start [2025-01-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214786', 'tblTempUsageDetail_20' ) end [2025-01-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214786', 'tblTempVendorCDR_20' ) start [2025-01-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214786', 'tblTempVendorCDR_20' ) end [2025-01-10 05:30:18] Production.INFO: ProcessCDR(1,14214786,1,1,2) [2025-01-10 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214786', 'tblTempUsageDetail_20' ) start [2025-01-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214786', 'tblTempUsageDetail_20' ) end [2025-01-10 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:30:21] Production.INFO: ==14629== Releasing lock... [2025-01-10 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:31:04 [end_date_ymd] => 2025-01-10 05:31:04 [RateCDR] => 1 ) [2025-01-10 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:31:04' and `end` < '2025-01-10 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:31:18] Production.INFO: count ==57 [2025-01-10 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:31:04 - End Time 2025-01-10 05:31:04 [2025-01-10 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214792', 'tblTempUsageDetail_20' ) start [2025-01-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214792', 'tblTempUsageDetail_20' ) end [2025-01-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214792', 'tblTempVendorCDR_20' ) start [2025-01-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214792', 'tblTempVendorCDR_20' ) end [2025-01-10 05:31:18] Production.INFO: ProcessCDR(1,14214792,1,1,2) [2025-01-10 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214792', 'tblTempUsageDetail_20' ) start [2025-01-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214792', 'tblTempUsageDetail_20' ) end [2025-01-10 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:31:21] Production.INFO: ==14704== Releasing lock... [2025-01-10 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:32:04 [end_date_ymd] => 2025-01-10 05:32:04 [RateCDR] => 1 ) [2025-01-10 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:32:04' and `end` < '2025-01-10 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:32:17] Production.INFO: count ==57 [2025-01-10 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:32:04 - End Time 2025-01-10 05:32:04 [2025-01-10 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214797', 'tblTempUsageDetail_20' ) start [2025-01-10 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214797', 'tblTempUsageDetail_20' ) end [2025-01-10 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214797', 'tblTempVendorCDR_20' ) start [2025-01-10 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214797', 'tblTempVendorCDR_20' ) end [2025-01-10 05:32:17] Production.INFO: ProcessCDR(1,14214797,1,1,2) [2025-01-10 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214797', 'tblTempUsageDetail_20' ) start [2025-01-10 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214797', 'tblTempUsageDetail_20' ) end [2025-01-10 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:32:21] Production.INFO: ==14773== Releasing lock... [2025-01-10 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:33:05 [end_date_ymd] => 2025-01-10 05:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:33:05' and `end` < '2025-01-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-01-10 05:33:18] Production.INFO: count ==57 [2025-01-10 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:33:05 - End Time 2025-01-10 05:33:05 [2025-01-10 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214802', 'tblTempUsageDetail_20' ) start [2025-01-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214802', 'tblTempUsageDetail_20' ) end [2025-01-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214802', 'tblTempVendorCDR_20' ) start [2025-01-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214802', 'tblTempVendorCDR_20' ) end [2025-01-10 05:33:18] Production.INFO: ProcessCDR(1,14214802,1,1,2) [2025-01-10 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214802', 'tblTempUsageDetail_20' ) start [2025-01-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214802', 'tblTempUsageDetail_20' ) end [2025-01-10 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:33:21] Production.INFO: ==14843== Releasing lock... [2025-01-10 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:34:05 [end_date_ymd] => 2025-01-10 05:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:34:05' and `end` < '2025-01-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-01-10 05:34:18] Production.INFO: count ==57 [2025-01-10 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:34:05 - End Time 2025-01-10 05:34:05 [2025-01-10 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214807', 'tblTempUsageDetail_20' ) start [2025-01-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214807', 'tblTempUsageDetail_20' ) end [2025-01-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214807', 'tblTempVendorCDR_20' ) start [2025-01-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214807', 'tblTempVendorCDR_20' ) end [2025-01-10 05:34:18] Production.INFO: ProcessCDR(1,14214807,1,1,2) [2025-01-10 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214807', 'tblTempUsageDetail_20' ) start [2025-01-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214807', 'tblTempUsageDetail_20' ) end [2025-01-10 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:34:21] Production.INFO: ==14916== Releasing lock... [2025-01-10 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:35:05 [end_date_ymd] => 2025-01-10 05:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:35:05' and `end` < '2025-01-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-01-10 05:35:18] Production.INFO: count ==57 [2025-01-10 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:35:05 - End Time 2025-01-10 05:35:05 [2025-01-10 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214812', 'tblTempUsageDetail_20' ) start [2025-01-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214812', 'tblTempUsageDetail_20' ) end [2025-01-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214812', 'tblTempVendorCDR_20' ) start [2025-01-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214812', 'tblTempVendorCDR_20' ) end [2025-01-10 05:35:18] Production.INFO: ProcessCDR(1,14214812,1,1,2) [2025-01-10 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214812', 'tblTempUsageDetail_20' ) start [2025-01-10 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214812', 'tblTempUsageDetail_20' ) end [2025-01-10 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:35:21] Production.INFO: ==14993== Releasing lock... [2025-01-10 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:36:05 [end_date_ymd] => 2025-01-10 05:36:05 [RateCDR] => 1 ) [2025-01-10 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:36:05' and `end` < '2025-01-10 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:36:18] Production.INFO: count ==57 [2025-01-10 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:36:05 - End Time 2025-01-10 05:36:05 [2025-01-10 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214817', 'tblTempUsageDetail_20' ) start [2025-01-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214817', 'tblTempUsageDetail_20' ) end [2025-01-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214817', 'tblTempVendorCDR_20' ) start [2025-01-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214817', 'tblTempVendorCDR_20' ) end [2025-01-10 05:36:18] Production.INFO: ProcessCDR(1,14214817,1,1,2) [2025-01-10 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214817', 'tblTempUsageDetail_20' ) start [2025-01-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214817', 'tblTempUsageDetail_20' ) end [2025-01-10 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:36:21] Production.INFO: ==15064== Releasing lock... [2025-01-10 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:37:05 [end_date_ymd] => 2025-01-10 05:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:37:05' and `end` < '2025-01-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-01-10 05:37:19] Production.INFO: count ==57 [2025-01-10 05:37:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:37:05 - End Time 2025-01-10 05:37:05 [2025-01-10 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214822', 'tblTempUsageDetail_20' ) start [2025-01-10 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214822', 'tblTempUsageDetail_20' ) end [2025-01-10 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214822', 'tblTempVendorCDR_20' ) start [2025-01-10 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214822', 'tblTempVendorCDR_20' ) end [2025-01-10 05:37:19] Production.INFO: ProcessCDR(1,14214822,1,1,2) [2025-01-10 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214822', 'tblTempUsageDetail_20' ) start [2025-01-10 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214822', 'tblTempUsageDetail_20' ) end [2025-01-10 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:37:22] Production.INFO: ==15134== Releasing lock... [2025-01-10 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:38:05 [end_date_ymd] => 2025-01-10 05:38:05 [RateCDR] => 1 ) [2025-01-10 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:38:05' and `end` < '2025-01-10 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:38:19] Production.INFO: count ==57 [2025-01-10 05:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 02:38:05 - End Time 2025-01-10 05:38:05 [2025-01-10 05:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214827', 'tblTempUsageDetail_20' ) start [2025-01-10 05:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214827', 'tblTempUsageDetail_20' ) end [2025-01-10 05:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214827', 'tblTempVendorCDR_20' ) start [2025-01-10 05:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214827', 'tblTempVendorCDR_20' ) end [2025-01-10 05:38:20] Production.INFO: ProcessCDR(1,14214827,1,1,2) [2025-01-10 05:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214827', 'tblTempUsageDetail_20' ) start [2025-01-10 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214827', 'tblTempUsageDetail_20' ) end [2025-01-10 05:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:38:23] Production.INFO: ==15204== Releasing lock... [2025-01-10 05:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:38:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:39:05 [end_date_ymd] => 2025-01-10 05:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:39:05' and `end` < '2025-01-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-01-10 05:39:18] Production.INFO: count ==57 [2025-01-10 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:39:05 - End Time 2025-01-10 05:39:05 [2025-01-10 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214832', 'tblTempUsageDetail_20' ) start [2025-01-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214832', 'tblTempUsageDetail_20' ) end [2025-01-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214832', 'tblTempVendorCDR_20' ) start [2025-01-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214832', 'tblTempVendorCDR_20' ) end [2025-01-10 05:39:18] Production.INFO: ProcessCDR(1,14214832,1,1,2) [2025-01-10 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214832', 'tblTempUsageDetail_20' ) start [2025-01-10 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214832', 'tblTempUsageDetail_20' ) end [2025-01-10 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:39:21] Production.INFO: ==15276== Releasing lock... [2025-01-10 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:40:06 [end_date_ymd] => 2025-01-10 05:40:06 [RateCDR] => 1 ) [2025-01-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-01-10 02:40:06' and `end` < '2025-01-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-01-10 05:40:19] Production.INFO: count ==61 [2025-01-10 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:40:06 - End Time 2025-01-10 05:40:06 [2025-01-10 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214838', 'tblTempUsageDetail_20' ) start [2025-01-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214838', 'tblTempUsageDetail_20' ) end [2025-01-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214838', 'tblTempVendorCDR_20' ) start [2025-01-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214838', 'tblTempVendorCDR_20' ) end [2025-01-10 05:40:19] Production.INFO: ProcessCDR(1,14214838,1,1,2) [2025-01-10 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214838', 'tblTempUsageDetail_20' ) start [2025-01-10 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214838', 'tblTempUsageDetail_20' ) end [2025-01-10 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:40:23] Production.INFO: ==15349== Releasing lock... [2025-01-10 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:40:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:41:04 [end_date_ymd] => 2025-01-10 05:41:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:41:04' and `end` < '2025-01-10 05: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-01-10 05:41:17] Production.INFO: count ==62 [2025-01-10 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:41:04 - End Time 2025-01-10 05:41:04 [2025-01-10 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214843', 'tblTempUsageDetail_20' ) start [2025-01-10 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214843', 'tblTempUsageDetail_20' ) end [2025-01-10 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214843', 'tblTempVendorCDR_20' ) start [2025-01-10 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214843', 'tblTempVendorCDR_20' ) end [2025-01-10 05:41:17] Production.INFO: ProcessCDR(1,14214843,1,1,2) [2025-01-10 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214843', 'tblTempUsageDetail_20' ) start [2025-01-10 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214843', 'tblTempUsageDetail_20' ) end [2025-01-10 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:41:22] Production.INFO: ==15420== Releasing lock... [2025-01-10 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:42:05 [end_date_ymd] => 2025-01-10 05:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:42:05' and `end` < '2025-01-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-01-10 05:42:18] Production.INFO: count ==62 [2025-01-10 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:42:05 - End Time 2025-01-10 05:42:05 [2025-01-10 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214848', 'tblTempUsageDetail_20' ) start [2025-01-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214848', 'tblTempUsageDetail_20' ) end [2025-01-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214848', 'tblTempVendorCDR_20' ) start [2025-01-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214848', 'tblTempVendorCDR_20' ) end [2025-01-10 05:42:18] Production.INFO: ProcessCDR(1,14214848,1,1,2) [2025-01-10 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214848', 'tblTempUsageDetail_20' ) start [2025-01-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214848', 'tblTempUsageDetail_20' ) end [2025-01-10 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:42:21] Production.INFO: ==15490== Releasing lock... [2025-01-10 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:43:04 [end_date_ymd] => 2025-01-10 05:43:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:43:04' and `end` < '2025-01-10 05: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-01-10 05:43:17] Production.INFO: count ==62 [2025-01-10 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:43:04 - End Time 2025-01-10 05:43:04 [2025-01-10 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214853', 'tblTempUsageDetail_20' ) start [2025-01-10 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214853', 'tblTempUsageDetail_20' ) end [2025-01-10 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214853', 'tblTempVendorCDR_20' ) start [2025-01-10 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214853', 'tblTempVendorCDR_20' ) end [2025-01-10 05:43:17] Production.INFO: ProcessCDR(1,14214853,1,1,2) [2025-01-10 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214853', 'tblTempUsageDetail_20' ) start [2025-01-10 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214853', 'tblTempUsageDetail_20' ) end [2025-01-10 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:43:20] Production.INFO: ==15560== Releasing lock... [2025-01-10 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:44:05 [end_date_ymd] => 2025-01-10 05:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:44:05' and `end` < '2025-01-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-01-10 05:44:19] Production.INFO: count ==61 [2025-01-10 05:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:44:05 - End Time 2025-01-10 05:44:05 [2025-01-10 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214858', 'tblTempUsageDetail_20' ) start [2025-01-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214858', 'tblTempUsageDetail_20' ) end [2025-01-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214858', 'tblTempVendorCDR_20' ) start [2025-01-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214858', 'tblTempVendorCDR_20' ) end [2025-01-10 05:44:19] Production.INFO: ProcessCDR(1,14214858,1,1,2) [2025-01-10 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214858', 'tblTempUsageDetail_20' ) start [2025-01-10 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214858', 'tblTempUsageDetail_20' ) end [2025-01-10 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:44:22] Production.INFO: ==15672== Releasing lock... [2025-01-10 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:45:04 [end_date_ymd] => 2025-01-10 05:45:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:45:04' and `end` < '2025-01-10 05: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-01-10 05:45:17] Production.INFO: count ==60 [2025-01-10 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:45:04 - End Time 2025-01-10 05:45:04 [2025-01-10 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214861', 'tblTempUsageDetail_20' ) start [2025-01-10 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214861', 'tblTempUsageDetail_20' ) end [2025-01-10 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214861', 'tblTempVendorCDR_20' ) start [2025-01-10 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214861', 'tblTempVendorCDR_20' ) end [2025-01-10 05:45:17] Production.INFO: ProcessCDR(1,14214861,1,1,2) [2025-01-10 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214861', 'tblTempUsageDetail_20' ) start [2025-01-10 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214861', 'tblTempUsageDetail_20' ) end [2025-01-10 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:45:20] Production.INFO: ==15744== Releasing lock... [2025-01-10 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:46:05 [end_date_ymd] => 2025-01-10 05:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:46:05' and `end` < '2025-01-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-01-10 05:46:19] Production.INFO: count ==60 [2025-01-10 05:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:46:05 - End Time 2025-01-10 05:46:05 [2025-01-10 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214868', 'tblTempUsageDetail_20' ) start [2025-01-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214868', 'tblTempUsageDetail_20' ) end [2025-01-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214868', 'tblTempVendorCDR_20' ) start [2025-01-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214868', 'tblTempVendorCDR_20' ) end [2025-01-10 05:46:19] Production.INFO: ProcessCDR(1,14214868,1,1,2) [2025-01-10 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214868', 'tblTempUsageDetail_20' ) start [2025-01-10 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214868', 'tblTempUsageDetail_20' ) end [2025-01-10 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:46:22] Production.INFO: ==15813== Releasing lock... [2025-01-10 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:46:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:47:05 [end_date_ymd] => 2025-01-10 05:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:47:05' and `end` < '2025-01-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-01-10 05:47:19] Production.INFO: count ==60 [2025-01-10 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:47:05 - End Time 2025-01-10 05:47:05 [2025-01-10 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214873', 'tblTempUsageDetail_20' ) start [2025-01-10 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214873', 'tblTempUsageDetail_20' ) end [2025-01-10 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214873', 'tblTempVendorCDR_20' ) start [2025-01-10 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214873', 'tblTempVendorCDR_20' ) end [2025-01-10 05:47:19] Production.INFO: ProcessCDR(1,14214873,1,1,2) [2025-01-10 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214873', 'tblTempUsageDetail_20' ) start [2025-01-10 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214873', 'tblTempUsageDetail_20' ) end [2025-01-10 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:47:22] Production.INFO: ==15887== Releasing lock... [2025-01-10 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:48:05 [end_date_ymd] => 2025-01-10 05:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:48:05' and `end` < '2025-01-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-01-10 05:48:18] Production.INFO: count ==60 [2025-01-10 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:48:05 - End Time 2025-01-10 05:48:05 [2025-01-10 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214878', 'tblTempUsageDetail_20' ) start [2025-01-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214878', 'tblTempUsageDetail_20' ) end [2025-01-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214878', 'tblTempVendorCDR_20' ) start [2025-01-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214878', 'tblTempVendorCDR_20' ) end [2025-01-10 05:48:18] Production.INFO: ProcessCDR(1,14214878,1,1,2) [2025-01-10 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214878', 'tblTempUsageDetail_20' ) start [2025-01-10 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214878', 'tblTempUsageDetail_20' ) end [2025-01-10 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:48:22] Production.INFO: ==15959== Releasing lock... [2025-01-10 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:49:05 [end_date_ymd] => 2025-01-10 05:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:49:05' and `end` < '2025-01-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-01-10 05:49:17] Production.INFO: count ==60 [2025-01-10 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:49:05 - End Time 2025-01-10 05:49:05 [2025-01-10 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214883', 'tblTempUsageDetail_20' ) start [2025-01-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214883', 'tblTempUsageDetail_20' ) end [2025-01-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214883', 'tblTempVendorCDR_20' ) start [2025-01-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214883', 'tblTempVendorCDR_20' ) end [2025-01-10 05:49:17] Production.INFO: ProcessCDR(1,14214883,1,1,2) [2025-01-10 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214883', 'tblTempUsageDetail_20' ) start [2025-01-10 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214883', 'tblTempUsageDetail_20' ) end [2025-01-10 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:49:21] Production.INFO: ==16033== Releasing lock... [2025-01-10 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:50:06 [end_date_ymd] => 2025-01-10 05:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 02:50:06' and `end` < '2025-01-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-01-10 05:50:19] Production.INFO: count ==60 [2025-01-10 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:50:06 - End Time 2025-01-10 05:50:06 [2025-01-10 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214889', 'tblTempUsageDetail_20' ) start [2025-01-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214889', 'tblTempUsageDetail_20' ) end [2025-01-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214889', 'tblTempVendorCDR_20' ) start [2025-01-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214889', 'tblTempVendorCDR_20' ) end [2025-01-10 05:50:19] Production.INFO: ProcessCDR(1,14214889,1,1,2) [2025-01-10 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214889', 'tblTempUsageDetail_20' ) start [2025-01-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214889', 'tblTempUsageDetail_20' ) end [2025-01-10 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:50:22] Production.INFO: ==16106== Releasing lock... [2025-01-10 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:51:04 [end_date_ymd] => 2025-01-10 05:51:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:51:04' and `end` < '2025-01-10 05: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-01-10 05:51:17] Production.INFO: count ==60 [2025-01-10 05:51:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:51:04 - End Time 2025-01-10 05:51:04 [2025-01-10 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214894', 'tblTempUsageDetail_20' ) start [2025-01-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214894', 'tblTempUsageDetail_20' ) end [2025-01-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214894', 'tblTempVendorCDR_20' ) start [2025-01-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214894', 'tblTempVendorCDR_20' ) end [2025-01-10 05:51:17] Production.INFO: ProcessCDR(1,14214894,1,1,2) [2025-01-10 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214894', 'tblTempUsageDetail_20' ) start [2025-01-10 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214894', 'tblTempUsageDetail_20' ) end [2025-01-10 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:51:20] Production.INFO: ==16179== Releasing lock... [2025-01-10 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:51:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:52:05 [end_date_ymd] => 2025-01-10 05:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:52:05' and `end` < '2025-01-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-01-10 05:52:18] Production.INFO: count ==60 [2025-01-10 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:52:05 - End Time 2025-01-10 05:52:05 [2025-01-10 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214899', 'tblTempUsageDetail_20' ) start [2025-01-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214899', 'tblTempUsageDetail_20' ) end [2025-01-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214899', 'tblTempVendorCDR_20' ) start [2025-01-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214899', 'tblTempVendorCDR_20' ) end [2025-01-10 05:52:18] Production.INFO: ProcessCDR(1,14214899,1,1,2) [2025-01-10 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214899', 'tblTempUsageDetail_20' ) start [2025-01-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214899', 'tblTempUsageDetail_20' ) end [2025-01-10 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:52:21] Production.INFO: ==16250== Releasing lock... [2025-01-10 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:53:04 [end_date_ymd] => 2025-01-10 05:53:04 [RateCDR] => 1 ) [2025-01-10 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:53:04' and `end` < '2025-01-10 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:53:19] Production.INFO: count ==60 [2025-01-10 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:53:04 - End Time 2025-01-10 05:53:04 [2025-01-10 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214904', 'tblTempUsageDetail_20' ) start [2025-01-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214904', 'tblTempUsageDetail_20' ) end [2025-01-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214904', 'tblTempVendorCDR_20' ) start [2025-01-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214904', 'tblTempVendorCDR_20' ) end [2025-01-10 05:53:19] Production.INFO: ProcessCDR(1,14214904,1,1,2) [2025-01-10 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214904', 'tblTempUsageDetail_20' ) start [2025-01-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214904', 'tblTempUsageDetail_20' ) end [2025-01-10 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:53:22] Production.INFO: ==16322== Releasing lock... [2025-01-10 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:54:04 [end_date_ymd] => 2025-01-10 05:54:04 [RateCDR] => 1 ) [2025-01-10 05: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-01-10 02:54:04' and `end` < '2025-01-10 05: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-01-10 05:54:17] Production.INFO: count ==60 [2025-01-10 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-10 02:54:04 - End Time 2025-01-10 05:54:04 [2025-01-10 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214909', 'tblTempUsageDetail_20' ) start [2025-01-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214909', 'tblTempUsageDetail_20' ) end [2025-01-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214909', 'tblTempVendorCDR_20' ) start [2025-01-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214909', 'tblTempVendorCDR_20' ) end [2025-01-10 05:54:17] Production.INFO: ProcessCDR(1,14214909,1,1,2) [2025-01-10 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214909', 'tblTempUsageDetail_20' ) start [2025-01-10 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214909', 'tblTempUsageDetail_20' ) end [2025-01-10 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:54:21] Production.INFO: ==16392== Releasing lock... [2025-01-10 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:55:05 [end_date_ymd] => 2025-01-10 05:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:55:05' and `end` < '2025-01-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-01-10 05:55:18] Production.INFO: count ==60 [2025-01-10 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:55:05 - End Time 2025-01-10 05:55:05 [2025-01-10 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214914', 'tblTempUsageDetail_20' ) start [2025-01-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214914', 'tblTempUsageDetail_20' ) end [2025-01-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214914', 'tblTempVendorCDR_20' ) start [2025-01-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214914', 'tblTempVendorCDR_20' ) end [2025-01-10 05:55:18] Production.INFO: ProcessCDR(1,14214914,1,1,2) [2025-01-10 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214914', 'tblTempUsageDetail_20' ) start [2025-01-10 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214914', 'tblTempUsageDetail_20' ) end [2025-01-10 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:55:21] Production.INFO: ==16462== Releasing lock... [2025-01-10 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:56:05 [end_date_ymd] => 2025-01-10 05:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:56:05' and `end` < '2025-01-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-01-10 05:56:19] Production.INFO: count ==60 [2025-01-10 05:56:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:56:05 - End Time 2025-01-10 05:56:05 [2025-01-10 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214919', 'tblTempUsageDetail_20' ) start [2025-01-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214919', 'tblTempUsageDetail_20' ) end [2025-01-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214919', 'tblTempVendorCDR_20' ) start [2025-01-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214919', 'tblTempVendorCDR_20' ) end [2025-01-10 05:56:19] Production.INFO: ProcessCDR(1,14214919,1,1,2) [2025-01-10 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214919', 'tblTempUsageDetail_20' ) start [2025-01-10 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214919', 'tblTempUsageDetail_20' ) end [2025-01-10 05:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:56:23] Production.INFO: ==16533== Releasing lock... [2025-01-10 05:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:56:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:57:04 [end_date_ymd] => 2025-01-10 05:57:04 [RateCDR] => 1 ) [2025-01-10 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:57:04' and `end` < '2025-01-10 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:57:18] Production.INFO: count ==60 [2025-01-10 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:57:04 - End Time 2025-01-10 05:57:04 [2025-01-10 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214924', 'tblTempUsageDetail_20' ) start [2025-01-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214924', 'tblTempUsageDetail_20' ) end [2025-01-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214924', 'tblTempVendorCDR_20' ) start [2025-01-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214924', 'tblTempVendorCDR_20' ) end [2025-01-10 05:57:18] Production.INFO: ProcessCDR(1,14214924,1,1,2) [2025-01-10 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214924', 'tblTempUsageDetail_20' ) start [2025-01-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214924', 'tblTempUsageDetail_20' ) end [2025-01-10 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:57:21] Production.INFO: ==16604== Releasing lock... [2025-01-10 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:58:05 [end_date_ymd] => 2025-01-10 05:58:05 [RateCDR] => 1 ) [2025-01-10 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 02:58:05' and `end` < '2025-01-10 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 05:58:19] Production.INFO: count ==60 [2025-01-10 05:58:19] Production.ERROR: pbx CDR StartTime 2025-01-10 02:58:05 - End Time 2025-01-10 05:58:05 [2025-01-10 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214929', 'tblTempUsageDetail_20' ) start [2025-01-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214929', 'tblTempUsageDetail_20' ) end [2025-01-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214929', 'tblTempVendorCDR_20' ) start [2025-01-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214929', 'tblTempVendorCDR_20' ) end [2025-01-10 05:58:19] Production.INFO: ProcessCDR(1,14214929,1,1,2) [2025-01-10 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214929', 'tblTempUsageDetail_20' ) start [2025-01-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214929', 'tblTempUsageDetail_20' ) end [2025-01-10 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:58:22] Production.INFO: ==16674== Releasing lock... [2025-01-10 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 02:59:05 [end_date_ymd] => 2025-01-10 05:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 02:59:05' and `end` < '2025-01-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-01-10 05:59:18] Production.INFO: count ==60 [2025-01-10 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 02:59:05 - End Time 2025-01-10 05:59:05 [2025-01-10 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214934', 'tblTempUsageDetail_20' ) start [2025-01-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214934', 'tblTempUsageDetail_20' ) end [2025-01-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214934', 'tblTempVendorCDR_20' ) start [2025-01-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214934', 'tblTempVendorCDR_20' ) end [2025-01-10 05:59:18] Production.INFO: ProcessCDR(1,14214934,1,1,2) [2025-01-10 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214934', 'tblTempUsageDetail_20' ) start [2025-01-10 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214934', 'tblTempUsageDetail_20' ) end [2025-01-10 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 05:59:22] Production.INFO: ==16746== Releasing lock... [2025-01-10 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 05:59:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:00:06 [end_date_ymd] => 2025-01-10 06:00:06 [RateCDR] => 1 ) [2025-01-10 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:00:06' and `end` < '2025-01-10 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:00:19] Production.INFO: count ==60 [2025-01-10 06:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:00:06 - End Time 2025-01-10 06:00:06 [2025-01-10 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214940', 'tblTempUsageDetail_20' ) start [2025-01-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214940', 'tblTempUsageDetail_20' ) end [2025-01-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214940', 'tblTempVendorCDR_20' ) start [2025-01-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214940', 'tblTempVendorCDR_20' ) end [2025-01-10 06:00:19] Production.INFO: ProcessCDR(1,14214940,1,1,2) [2025-01-10 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214940', 'tblTempUsageDetail_20' ) start [2025-01-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214940', 'tblTempUsageDetail_20' ) end [2025-01-10 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:00:22] Production.INFO: ==16859== Releasing lock... [2025-01-10 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:01:05 [end_date_ymd] => 2025-01-10 06:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:01:05' and `end` < '2025-01-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-01-10 06:01:18] Production.INFO: count ==60 [2025-01-10 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:01:05 - End Time 2025-01-10 06:01:05 [2025-01-10 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214945', 'tblTempUsageDetail_20' ) start [2025-01-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214945', 'tblTempUsageDetail_20' ) end [2025-01-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214945', 'tblTempVendorCDR_20' ) start [2025-01-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214945', 'tblTempVendorCDR_20' ) end [2025-01-10 06:01:18] Production.INFO: ProcessCDR(1,14214945,1,1,2) [2025-01-10 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214945', 'tblTempUsageDetail_20' ) start [2025-01-10 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214945', 'tblTempUsageDetail_20' ) end [2025-01-10 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:01:22] Production.INFO: ==16943== Releasing lock... [2025-01-10 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:01:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:02:05 [end_date_ymd] => 2025-01-10 06:02:05 [RateCDR] => 1 ) [2025-01-10 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:02:05' and `end` < '2025-01-10 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:02:19] Production.INFO: count ==60 [2025-01-10 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:02:05 - End Time 2025-01-10 06:02:05 [2025-01-10 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214950', 'tblTempUsageDetail_20' ) start [2025-01-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214950', 'tblTempUsageDetail_20' ) end [2025-01-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214950', 'tblTempVendorCDR_20' ) start [2025-01-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214950', 'tblTempVendorCDR_20' ) end [2025-01-10 06:02:19] Production.INFO: ProcessCDR(1,14214950,1,1,2) [2025-01-10 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214950', 'tblTempUsageDetail_20' ) start [2025-01-10 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214950', 'tblTempUsageDetail_20' ) end [2025-01-10 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:02:22] Production.INFO: ==17014== Releasing lock... [2025-01-10 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:03:04 [end_date_ymd] => 2025-01-10 06:03:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:03:04' and `end` < '2025-01-10 06: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-01-10 06:03:17] Production.INFO: count ==60 [2025-01-10 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:03:04 - End Time 2025-01-10 06:03:04 [2025-01-10 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214955', 'tblTempUsageDetail_20' ) start [2025-01-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214955', 'tblTempUsageDetail_20' ) end [2025-01-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214955', 'tblTempVendorCDR_20' ) start [2025-01-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214955', 'tblTempVendorCDR_20' ) end [2025-01-10 06:03:17] Production.INFO: ProcessCDR(1,14214955,1,1,2) [2025-01-10 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214955', 'tblTempUsageDetail_20' ) start [2025-01-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214955', 'tblTempUsageDetail_20' ) end [2025-01-10 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:03:21] Production.INFO: ==17088== Releasing lock... [2025-01-10 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:04:05 [end_date_ymd] => 2025-01-10 06:04:05 [RateCDR] => 1 ) [2025-01-10 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:04:05' and `end` < '2025-01-10 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:04:18] Production.INFO: count ==60 [2025-01-10 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:04:05 - End Time 2025-01-10 06:04:05 [2025-01-10 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214960', 'tblTempUsageDetail_20' ) start [2025-01-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214960', 'tblTempUsageDetail_20' ) end [2025-01-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214960', 'tblTempVendorCDR_20' ) start [2025-01-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214960', 'tblTempVendorCDR_20' ) end [2025-01-10 06:04:18] Production.INFO: ProcessCDR(1,14214960,1,1,2) [2025-01-10 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214960', 'tblTempUsageDetail_20' ) start [2025-01-10 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214960', 'tblTempUsageDetail_20' ) end [2025-01-10 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:04:21] Production.INFO: ==17158== Releasing lock... [2025-01-10 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:05:05 [end_date_ymd] => 2025-01-10 06:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:05:05' and `end` < '2025-01-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-01-10 06:05:18] Production.INFO: count ==60 [2025-01-10 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:05:05 - End Time 2025-01-10 06:05:05 [2025-01-10 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214965', 'tblTempUsageDetail_20' ) start [2025-01-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214965', 'tblTempUsageDetail_20' ) end [2025-01-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214965', 'tblTempVendorCDR_20' ) start [2025-01-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214965', 'tblTempVendorCDR_20' ) end [2025-01-10 06:05:18] Production.INFO: ProcessCDR(1,14214965,1,1,2) [2025-01-10 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214965', 'tblTempUsageDetail_20' ) start [2025-01-10 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214965', 'tblTempUsageDetail_20' ) end [2025-01-10 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:05:21] Production.INFO: ==17230== Releasing lock... [2025-01-10 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:06:05 [end_date_ymd] => 2025-01-10 06:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:06:05' and `end` < '2025-01-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-01-10 06:06:18] Production.INFO: count ==60 [2025-01-10 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:06:05 - End Time 2025-01-10 06:06:05 [2025-01-10 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214970', 'tblTempUsageDetail_20' ) start [2025-01-10 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214970', 'tblTempUsageDetail_20' ) end [2025-01-10 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214970', 'tblTempVendorCDR_20' ) start [2025-01-10 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214970', 'tblTempVendorCDR_20' ) end [2025-01-10 06:06:18] Production.INFO: ProcessCDR(1,14214970,1,1,2) [2025-01-10 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214970', 'tblTempUsageDetail_20' ) start [2025-01-10 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214970', 'tblTempUsageDetail_20' ) end [2025-01-10 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:06:21] Production.INFO: ==17300== Releasing lock... [2025-01-10 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:07:05 [end_date_ymd] => 2025-01-10 06:07:05 [RateCDR] => 1 ) [2025-01-10 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:07:05' and `end` < '2025-01-10 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:07:19] Production.INFO: count ==60 [2025-01-10 06:07:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:07:05 - End Time 2025-01-10 06:07:05 [2025-01-10 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214975', 'tblTempUsageDetail_20' ) start [2025-01-10 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214975', 'tblTempUsageDetail_20' ) end [2025-01-10 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214975', 'tblTempVendorCDR_20' ) start [2025-01-10 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214975', 'tblTempVendorCDR_20' ) end [2025-01-10 06:07:19] Production.INFO: ProcessCDR(1,14214975,1,1,2) [2025-01-10 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214975', 'tblTempUsageDetail_20' ) start [2025-01-10 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214975', 'tblTempUsageDetail_20' ) end [2025-01-10 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:07:22] Production.INFO: ==17373== Releasing lock... [2025-01-10 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:07:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:08:04 [end_date_ymd] => 2025-01-10 06:08:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:08:04' and `end` < '2025-01-10 06: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-01-10 06:08:18] Production.INFO: count ==60 [2025-01-10 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:08:04 - End Time 2025-01-10 06:08:04 [2025-01-10 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214980', 'tblTempUsageDetail_20' ) start [2025-01-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214980', 'tblTempUsageDetail_20' ) end [2025-01-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214980', 'tblTempVendorCDR_20' ) start [2025-01-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214980', 'tblTempVendorCDR_20' ) end [2025-01-10 06:08:18] Production.INFO: ProcessCDR(1,14214980,1,1,2) [2025-01-10 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214980', 'tblTempUsageDetail_20' ) start [2025-01-10 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214980', 'tblTempUsageDetail_20' ) end [2025-01-10 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:08:21] Production.INFO: ==17443== Releasing lock... [2025-01-10 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:09:05 [end_date_ymd] => 2025-01-10 06:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:09:05' and `end` < '2025-01-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-01-10 06:09:18] Production.INFO: count ==60 [2025-01-10 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:09:05 - End Time 2025-01-10 06:09:05 [2025-01-10 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214985', 'tblTempUsageDetail_20' ) start [2025-01-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214985', 'tblTempUsageDetail_20' ) end [2025-01-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214985', 'tblTempVendorCDR_20' ) start [2025-01-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214985', 'tblTempVendorCDR_20' ) end [2025-01-10 06:09:18] Production.INFO: ProcessCDR(1,14214985,1,1,2) [2025-01-10 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214985', 'tblTempUsageDetail_20' ) start [2025-01-10 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214985', 'tblTempUsageDetail_20' ) end [2025-01-10 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:09:21] Production.INFO: ==17517== Releasing lock... [2025-01-10 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:10:05 [end_date_ymd] => 2025-01-10 06:10:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:10:05' and `end` < '2025-01-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-01-10 06:10:18] Production.INFO: count ==60 [2025-01-10 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:10:05 - End Time 2025-01-10 06:10:05 [2025-01-10 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214991', 'tblTempUsageDetail_20' ) start [2025-01-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214991', 'tblTempUsageDetail_20' ) end [2025-01-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214991', 'tblTempVendorCDR_20' ) start [2025-01-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214991', 'tblTempVendorCDR_20' ) end [2025-01-10 06:10:18] Production.INFO: ProcessCDR(1,14214991,1,1,2) [2025-01-10 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214991', 'tblTempUsageDetail_20' ) start [2025-01-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214991', 'tblTempUsageDetail_20' ) end [2025-01-10 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:10:21] Production.INFO: ==17593== Releasing lock... [2025-01-10 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:11:05 [end_date_ymd] => 2025-01-10 06:11:05 [RateCDR] => 1 ) [2025-01-10 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:11:05' and `end` < '2025-01-10 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:11:18] Production.INFO: count ==60 [2025-01-10 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:11:05 - End Time 2025-01-10 06:11:05 [2025-01-10 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214996', 'tblTempUsageDetail_20' ) start [2025-01-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14214996', 'tblTempUsageDetail_20' ) end [2025-01-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214996', 'tblTempVendorCDR_20' ) start [2025-01-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14214996', 'tblTempVendorCDR_20' ) end [2025-01-10 06:11:18] Production.INFO: ProcessCDR(1,14214996,1,1,2) [2025-01-10 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14214996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14214996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14214996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14214996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214996', 'tblTempUsageDetail_20' ) start [2025-01-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14214996', 'tblTempUsageDetail_20' ) end [2025-01-10 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:11:21] Production.INFO: ==17666== Releasing lock... [2025-01-10 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:12:05 [end_date_ymd] => 2025-01-10 06:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:12:05' and `end` < '2025-01-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-01-10 06:12:18] Production.INFO: count ==60 [2025-01-10 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:12:05 - End Time 2025-01-10 06:12:05 [2025-01-10 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215001', 'tblTempUsageDetail_20' ) start [2025-01-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215001', 'tblTempUsageDetail_20' ) end [2025-01-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215001', 'tblTempVendorCDR_20' ) start [2025-01-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215001', 'tblTempVendorCDR_20' ) end [2025-01-10 06:12:18] Production.INFO: ProcessCDR(1,14215001,1,1,2) [2025-01-10 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215001', 'tblTempUsageDetail_20' ) start [2025-01-10 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215001', 'tblTempUsageDetail_20' ) end [2025-01-10 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:12:21] Production.INFO: ==17736== Releasing lock... [2025-01-10 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:13:04 [end_date_ymd] => 2025-01-10 06:13:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:13:04' and `end` < '2025-01-10 06: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-01-10 06:13:17] Production.INFO: count ==60 [2025-01-10 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:13:04 - End Time 2025-01-10 06:13:04 [2025-01-10 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215006', 'tblTempUsageDetail_20' ) start [2025-01-10 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215006', 'tblTempUsageDetail_20' ) end [2025-01-10 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215006', 'tblTempVendorCDR_20' ) start [2025-01-10 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215006', 'tblTempVendorCDR_20' ) end [2025-01-10 06:13:17] Production.INFO: ProcessCDR(1,14215006,1,1,2) [2025-01-10 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215006', 'tblTempUsageDetail_20' ) start [2025-01-10 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215006', 'tblTempUsageDetail_20' ) end [2025-01-10 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:13:20] Production.INFO: ==17806== Releasing lock... [2025-01-10 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:14:05 [end_date_ymd] => 2025-01-10 06:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:14:05' and `end` < '2025-01-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-01-10 06:14:19] Production.INFO: count ==60 [2025-01-10 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:14:05 - End Time 2025-01-10 06:14:05 [2025-01-10 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215011', 'tblTempUsageDetail_20' ) start [2025-01-10 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215011', 'tblTempUsageDetail_20' ) end [2025-01-10 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215011', 'tblTempVendorCDR_20' ) start [2025-01-10 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215011', 'tblTempVendorCDR_20' ) end [2025-01-10 06:14:19] Production.INFO: ProcessCDR(1,14215011,1,1,2) [2025-01-10 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215011', 'tblTempUsageDetail_20' ) start [2025-01-10 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215011', 'tblTempUsageDetail_20' ) end [2025-01-10 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:14:22] Production.INFO: ==17880== Releasing lock... [2025-01-10 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:15:04 [end_date_ymd] => 2025-01-10 06:15:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:15:04' and `end` < '2025-01-10 06: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-01-10 06:15:17] Production.INFO: count ==60 [2025-01-10 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:15:04 - End Time 2025-01-10 06:15:04 [2025-01-10 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215016', 'tblTempUsageDetail_20' ) start [2025-01-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215016', 'tblTempUsageDetail_20' ) end [2025-01-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215016', 'tblTempVendorCDR_20' ) start [2025-01-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215016', 'tblTempVendorCDR_20' ) end [2025-01-10 06:15:17] Production.INFO: ProcessCDR(1,14215016,1,1,2) [2025-01-10 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215016', 'tblTempUsageDetail_20' ) start [2025-01-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215016', 'tblTempUsageDetail_20' ) end [2025-01-10 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:15:21] Production.INFO: ==17952== Releasing lock... [2025-01-10 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:16:05 [end_date_ymd] => 2025-01-10 06:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:16:05' and `end` < '2025-01-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-01-10 06:16:19] Production.INFO: count ==60 [2025-01-10 06:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:16:05 - End Time 2025-01-10 06:16:05 [2025-01-10 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215021', 'tblTempUsageDetail_20' ) start [2025-01-10 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215021', 'tblTempUsageDetail_20' ) end [2025-01-10 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215021', 'tblTempVendorCDR_20' ) start [2025-01-10 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215021', 'tblTempVendorCDR_20' ) end [2025-01-10 06:16:19] Production.INFO: ProcessCDR(1,14215021,1,1,2) [2025-01-10 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215021', 'tblTempUsageDetail_20' ) start [2025-01-10 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215021', 'tblTempUsageDetail_20' ) end [2025-01-10 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:16:22] Production.INFO: ==18064== Releasing lock... [2025-01-10 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:17:04 [end_date_ymd] => 2025-01-10 06:17:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:17:04' and `end` < '2025-01-10 06: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-01-10 06:17:18] Production.INFO: count ==60 [2025-01-10 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:17:04 - End Time 2025-01-10 06:17:04 [2025-01-10 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215026', 'tblTempUsageDetail_20' ) start [2025-01-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215026', 'tblTempUsageDetail_20' ) end [2025-01-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215026', 'tblTempVendorCDR_20' ) start [2025-01-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215026', 'tblTempVendorCDR_20' ) end [2025-01-10 06:17:18] Production.INFO: ProcessCDR(1,14215026,1,1,2) [2025-01-10 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215026', 'tblTempUsageDetail_20' ) start [2025-01-10 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215026', 'tblTempUsageDetail_20' ) end [2025-01-10 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:17:21] Production.INFO: ==18136== Releasing lock... [2025-01-10 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:18:04 [end_date_ymd] => 2025-01-10 06:18:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:18:04' and `end` < '2025-01-10 06: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-01-10 06:18:17] Production.INFO: count ==60 [2025-01-10 06:18:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:18:04 - End Time 2025-01-10 06:18:04 [2025-01-10 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215031', 'tblTempUsageDetail_20' ) start [2025-01-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215031', 'tblTempUsageDetail_20' ) end [2025-01-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215031', 'tblTempVendorCDR_20' ) start [2025-01-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215031', 'tblTempVendorCDR_20' ) end [2025-01-10 06:18:17] Production.INFO: ProcessCDR(1,14215031,1,1,2) [2025-01-10 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215031', 'tblTempUsageDetail_20' ) start [2025-01-10 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215031', 'tblTempUsageDetail_20' ) end [2025-01-10 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:18:20] Production.INFO: ==18206== Releasing lock... [2025-01-10 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:18:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:19:05 [end_date_ymd] => 2025-01-10 06:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:19:05' and `end` < '2025-01-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-01-10 06:19:18] Production.INFO: count ==60 [2025-01-10 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:19:05 - End Time 2025-01-10 06:19:05 [2025-01-10 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215036', 'tblTempUsageDetail_20' ) start [2025-01-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215036', 'tblTempUsageDetail_20' ) end [2025-01-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215036', 'tblTempVendorCDR_20' ) start [2025-01-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215036', 'tblTempVendorCDR_20' ) end [2025-01-10 06:19:18] Production.INFO: ProcessCDR(1,14215036,1,1,2) [2025-01-10 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215036', 'tblTempUsageDetail_20' ) start [2025-01-10 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215036', 'tblTempUsageDetail_20' ) end [2025-01-10 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:19:21] Production.INFO: ==18276== Releasing lock... [2025-01-10 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:20:05 [end_date_ymd] => 2025-01-10 06:20:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:20:05' and `end` < '2025-01-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-01-10 06:20:17] Production.INFO: count ==58 [2025-01-10 06:20:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:20:05 - End Time 2025-01-10 06:20:05 [2025-01-10 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215041', 'tblTempUsageDetail_20' ) start [2025-01-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215041', 'tblTempUsageDetail_20' ) end [2025-01-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215041', 'tblTempVendorCDR_20' ) start [2025-01-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215041', 'tblTempVendorCDR_20' ) end [2025-01-10 06:20:17] Production.INFO: ProcessCDR(1,14215041,1,1,2) [2025-01-10 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215041', 'tblTempUsageDetail_20' ) start [2025-01-10 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215041', 'tblTempUsageDetail_20' ) end [2025-01-10 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:20:21] Production.INFO: ==18351== Releasing lock... [2025-01-10 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:21:04 [end_date_ymd] => 2025-01-10 06:21:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:21:04' and `end` < '2025-01-10 06: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-01-10 06:21:19] Production.INFO: count ==58 [2025-01-10 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:21:04 - End Time 2025-01-10 06:21:04 [2025-01-10 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215047', 'tblTempUsageDetail_20' ) start [2025-01-10 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215047', 'tblTempUsageDetail_20' ) end [2025-01-10 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215047', 'tblTempVendorCDR_20' ) start [2025-01-10 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215047', 'tblTempVendorCDR_20' ) end [2025-01-10 06:21:19] Production.INFO: ProcessCDR(1,14215047,1,1,2) [2025-01-10 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215047', 'tblTempUsageDetail_20' ) start [2025-01-10 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215047', 'tblTempUsageDetail_20' ) end [2025-01-10 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:21:22] Production.INFO: ==18425== Releasing lock... [2025-01-10 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:22:04 [end_date_ymd] => 2025-01-10 06:22:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:22:04' and `end` < '2025-01-10 06: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-01-10 06:22:19] Production.INFO: count ==58 [2025-01-10 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:22:04 - End Time 2025-01-10 06:22:04 [2025-01-10 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215052', 'tblTempUsageDetail_20' ) start [2025-01-10 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215052', 'tblTempUsageDetail_20' ) end [2025-01-10 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215052', 'tblTempVendorCDR_20' ) start [2025-01-10 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215052', 'tblTempVendorCDR_20' ) end [2025-01-10 06:22:19] Production.INFO: ProcessCDR(1,14215052,1,1,2) [2025-01-10 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215052', 'tblTempUsageDetail_20' ) start [2025-01-10 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215052', 'tblTempUsageDetail_20' ) end [2025-01-10 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:22:22] Production.INFO: ==18495== Releasing lock... [2025-01-10 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:23:05 [end_date_ymd] => 2025-01-10 06:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:23:05' and `end` < '2025-01-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-01-10 06:23:18] Production.INFO: count ==58 [2025-01-10 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:23:05 - End Time 2025-01-10 06:23:05 [2025-01-10 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215057', 'tblTempUsageDetail_20' ) start [2025-01-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215057', 'tblTempUsageDetail_20' ) end [2025-01-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215057', 'tblTempVendorCDR_20' ) start [2025-01-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215057', 'tblTempVendorCDR_20' ) end [2025-01-10 06:23:18] Production.INFO: ProcessCDR(1,14215057,1,1,2) [2025-01-10 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215057', 'tblTempUsageDetail_20' ) start [2025-01-10 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215057', 'tblTempUsageDetail_20' ) end [2025-01-10 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:23:21] Production.INFO: ==18566== Releasing lock... [2025-01-10 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:24:05 [end_date_ymd] => 2025-01-10 06:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:24:05' and `end` < '2025-01-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-01-10 06:24:19] Production.INFO: count ==58 [2025-01-10 06:24:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:24:05 - End Time 2025-01-10 06:24:05 [2025-01-10 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215062', 'tblTempUsageDetail_20' ) start [2025-01-10 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215062', 'tblTempUsageDetail_20' ) end [2025-01-10 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215062', 'tblTempVendorCDR_20' ) start [2025-01-10 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215062', 'tblTempVendorCDR_20' ) end [2025-01-10 06:24:19] Production.INFO: ProcessCDR(1,14215062,1,1,2) [2025-01-10 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215062', 'tblTempUsageDetail_20' ) start [2025-01-10 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215062', 'tblTempUsageDetail_20' ) end [2025-01-10 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:24:22] Production.INFO: ==18637== Releasing lock... [2025-01-10 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:25:05 [end_date_ymd] => 2025-01-10 06:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:25:05' and `end` < '2025-01-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-01-10 06:25:19] Production.INFO: count ==58 [2025-01-10 06:25:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:25:05 - End Time 2025-01-10 06:25:05 [2025-01-10 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215067', 'tblTempUsageDetail_20' ) start [2025-01-10 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215067', 'tblTempUsageDetail_20' ) end [2025-01-10 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215067', 'tblTempVendorCDR_20' ) start [2025-01-10 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215067', 'tblTempVendorCDR_20' ) end [2025-01-10 06:25:19] Production.INFO: ProcessCDR(1,14215067,1,1,2) [2025-01-10 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215067', 'tblTempUsageDetail_20' ) start [2025-01-10 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215067', 'tblTempUsageDetail_20' ) end [2025-01-10 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:25:22] Production.INFO: ==18708== Releasing lock... [2025-01-10 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:25:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:26:05 [end_date_ymd] => 2025-01-10 06:26:05 [RateCDR] => 1 ) [2025-01-10 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:26:05' and `end` < '2025-01-10 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:26:18] Production.INFO: count ==58 [2025-01-10 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:26:05 - End Time 2025-01-10 06:26:05 [2025-01-10 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215072', 'tblTempUsageDetail_20' ) start [2025-01-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215072', 'tblTempUsageDetail_20' ) end [2025-01-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215072', 'tblTempVendorCDR_20' ) start [2025-01-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215072', 'tblTempVendorCDR_20' ) end [2025-01-10 06:26:18] Production.INFO: ProcessCDR(1,14215072,1,1,2) [2025-01-10 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215072', 'tblTempUsageDetail_20' ) start [2025-01-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215072', 'tblTempUsageDetail_20' ) end [2025-01-10 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:26:21] Production.INFO: ==18780== Releasing lock... [2025-01-10 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:27:05 [end_date_ymd] => 2025-01-10 06:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:27:05' and `end` < '2025-01-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-01-10 06:27:18] Production.INFO: count ==58 [2025-01-10 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:27:05 - End Time 2025-01-10 06:27:05 [2025-01-10 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215077', 'tblTempUsageDetail_20' ) start [2025-01-10 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215077', 'tblTempUsageDetail_20' ) end [2025-01-10 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215077', 'tblTempVendorCDR_20' ) start [2025-01-10 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215077', 'tblTempVendorCDR_20' ) end [2025-01-10 06:27:18] Production.INFO: ProcessCDR(1,14215077,1,1,2) [2025-01-10 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215077', 'tblTempUsageDetail_20' ) start [2025-01-10 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215077', 'tblTempUsageDetail_20' ) end [2025-01-10 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:27:21] Production.INFO: ==18851== Releasing lock... [2025-01-10 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:28:04 [end_date_ymd] => 2025-01-10 06:28:04 [RateCDR] => 1 ) [2025-01-10 06:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:28:04' and `end` < '2025-01-10 06: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-01-10 06:28:18] Production.INFO: count ==58 [2025-01-10 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:28:04 - End Time 2025-01-10 06:28:04 [2025-01-10 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215082', 'tblTempUsageDetail_20' ) start [2025-01-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215082', 'tblTempUsageDetail_20' ) end [2025-01-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215082', 'tblTempVendorCDR_20' ) start [2025-01-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215082', 'tblTempVendorCDR_20' ) end [2025-01-10 06:28:18] Production.INFO: ProcessCDR(1,14215082,1,1,2) [2025-01-10 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215082', 'tblTempUsageDetail_20' ) start [2025-01-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215082', 'tblTempUsageDetail_20' ) end [2025-01-10 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:28:21] Production.INFO: ==18921== Releasing lock... [2025-01-10 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:29:04 [end_date_ymd] => 2025-01-10 06:29:04 [RateCDR] => 1 ) [2025-01-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-01-10 03:29:04' and `end` < '2025-01-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-01-10 06:29:18] Production.INFO: count ==58 [2025-01-10 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:29:04 - End Time 2025-01-10 06:29:04 [2025-01-10 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215087', 'tblTempUsageDetail_20' ) start [2025-01-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215087', 'tblTempUsageDetail_20' ) end [2025-01-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215087', 'tblTempVendorCDR_20' ) start [2025-01-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215087', 'tblTempVendorCDR_20' ) end [2025-01-10 06:29:18] Production.INFO: ProcessCDR(1,14215087,1,1,2) [2025-01-10 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215087', 'tblTempUsageDetail_20' ) start [2025-01-10 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215087', 'tblTempUsageDetail_20' ) end [2025-01-10 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:29:21] Production.INFO: ==18990== Releasing lock... [2025-01-10 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:30:05 [end_date_ymd] => 2025-01-10 06:30:05 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:30:05' and `end` < '2025-01-10 06: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-01-10 06:30:18] Production.INFO: count ==60 [2025-01-10 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:30:05 - End Time 2025-01-10 06:30:05 [2025-01-10 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215093', 'tblTempUsageDetail_20' ) start [2025-01-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215093', 'tblTempUsageDetail_20' ) end [2025-01-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215093', 'tblTempVendorCDR_20' ) start [2025-01-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215093', 'tblTempVendorCDR_20' ) end [2025-01-10 06:30:18] Production.INFO: ProcessCDR(1,14215093,1,1,2) [2025-01-10 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215093', 'tblTempUsageDetail_20' ) start [2025-01-10 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215093', 'tblTempUsageDetail_20' ) end [2025-01-10 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:30:21] Production.INFO: ==19065== Releasing lock... [2025-01-10 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:31:05 [end_date_ymd] => 2025-01-10 06:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:31:05' and `end` < '2025-01-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-01-10 06:31:19] Production.INFO: count ==61 [2025-01-10 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:31:05 - End Time 2025-01-10 06:31:05 [2025-01-10 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215098', 'tblTempUsageDetail_20' ) start [2025-01-10 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215098', 'tblTempUsageDetail_20' ) end [2025-01-10 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215098', 'tblTempVendorCDR_20' ) start [2025-01-10 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215098', 'tblTempVendorCDR_20' ) end [2025-01-10 06:31:19] Production.INFO: ProcessCDR(1,14215098,1,1,2) [2025-01-10 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215098', 'tblTempUsageDetail_20' ) start [2025-01-10 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215098', 'tblTempUsageDetail_20' ) end [2025-01-10 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:31:22] Production.INFO: ==19181== Releasing lock... [2025-01-10 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:32:05 [end_date_ymd] => 2025-01-10 06:32:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:32:05' and `end` < '2025-01-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-01-10 06:32:19] Production.INFO: count ==61 [2025-01-10 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:32:05 - End Time 2025-01-10 06:32:05 [2025-01-10 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215103', 'tblTempUsageDetail_20' ) start [2025-01-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215103', 'tblTempUsageDetail_20' ) end [2025-01-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215103', 'tblTempVendorCDR_20' ) start [2025-01-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215103', 'tblTempVendorCDR_20' ) end [2025-01-10 06:32:19] Production.INFO: ProcessCDR(1,14215103,1,1,2) [2025-01-10 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215103', 'tblTempUsageDetail_20' ) start [2025-01-10 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215103', 'tblTempUsageDetail_20' ) end [2025-01-10 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:32:22] Production.INFO: ==19252== Releasing lock... [2025-01-10 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:33:05 [end_date_ymd] => 2025-01-10 06:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:33:05' and `end` < '2025-01-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-01-10 06:33:18] Production.INFO: count ==61 [2025-01-10 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:33:05 - End Time 2025-01-10 06:33:05 [2025-01-10 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215108', 'tblTempUsageDetail_20' ) start [2025-01-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215108', 'tblTempUsageDetail_20' ) end [2025-01-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215108', 'tblTempVendorCDR_20' ) start [2025-01-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215108', 'tblTempVendorCDR_20' ) end [2025-01-10 06:33:18] Production.INFO: ProcessCDR(1,14215108,1,1,2) [2025-01-10 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215108', 'tblTempUsageDetail_20' ) start [2025-01-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215108', 'tblTempUsageDetail_20' ) end [2025-01-10 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:33:21] Production.INFO: ==19326== Releasing lock... [2025-01-10 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:34:04 [end_date_ymd] => 2025-01-10 06:34:04 [RateCDR] => 1 ) [2025-01-10 06:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:34:04' and `end` < '2025-01-10 06:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:34:17] Production.INFO: count ==61 [2025-01-10 06:34:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:34:04 - End Time 2025-01-10 06:34:04 [2025-01-10 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215113', 'tblTempUsageDetail_20' ) start [2025-01-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215113', 'tblTempUsageDetail_20' ) end [2025-01-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215113', 'tblTempVendorCDR_20' ) start [2025-01-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215113', 'tblTempVendorCDR_20' ) end [2025-01-10 06:34:17] Production.INFO: ProcessCDR(1,14215113,1,1,2) [2025-01-10 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215113', 'tblTempUsageDetail_20' ) start [2025-01-10 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215113', 'tblTempUsageDetail_20' ) end [2025-01-10 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:34:20] Production.INFO: ==19394== Releasing lock... [2025-01-10 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:34:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:35:04 [end_date_ymd] => 2025-01-10 06:35:04 [RateCDR] => 1 ) [2025-01-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-01-10 03:35:04' and `end` < '2025-01-10 06:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:35:18] Production.INFO: count ==61 [2025-01-10 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:35:04 - End Time 2025-01-10 06:35:04 [2025-01-10 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215118', 'tblTempUsageDetail_20' ) start [2025-01-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215118', 'tblTempUsageDetail_20' ) end [2025-01-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215118', 'tblTempVendorCDR_20' ) start [2025-01-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215118', 'tblTempVendorCDR_20' ) end [2025-01-10 06:35:18] Production.INFO: ProcessCDR(1,14215118,1,1,2) [2025-01-10 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215118', 'tblTempUsageDetail_20' ) start [2025-01-10 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215118', 'tblTempUsageDetail_20' ) end [2025-01-10 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:35:21] Production.INFO: ==19464== Releasing lock... [2025-01-10 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:36:05 [end_date_ymd] => 2025-01-10 06:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:36:05' and `end` < '2025-01-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-01-10 06:36:19] Production.INFO: count ==61 [2025-01-10 06:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:36:05 - End Time 2025-01-10 06:36:05 [2025-01-10 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215123', 'tblTempUsageDetail_20' ) start [2025-01-10 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215123', 'tblTempUsageDetail_20' ) end [2025-01-10 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215123', 'tblTempVendorCDR_20' ) start [2025-01-10 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215123', 'tblTempVendorCDR_20' ) end [2025-01-10 06:36:19] Production.INFO: ProcessCDR(1,14215123,1,1,2) [2025-01-10 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215123', 'tblTempUsageDetail_20' ) start [2025-01-10 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215123', 'tblTempUsageDetail_20' ) end [2025-01-10 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:36:22] Production.INFO: ==19535== Releasing lock... [2025-01-10 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:37:04 [end_date_ymd] => 2025-01-10 06:37:04 [RateCDR] => 1 ) [2025-01-10 06:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:37:04' and `end` < '2025-01-10 06:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:37:18] Production.INFO: count ==61 [2025-01-10 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:37:04 - End Time 2025-01-10 06:37:04 [2025-01-10 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215128', 'tblTempUsageDetail_20' ) start [2025-01-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215128', 'tblTempUsageDetail_20' ) end [2025-01-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215128', 'tblTempVendorCDR_20' ) start [2025-01-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215128', 'tblTempVendorCDR_20' ) end [2025-01-10 06:37:18] Production.INFO: ProcessCDR(1,14215128,1,1,2) [2025-01-10 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215128', 'tblTempUsageDetail_20' ) start [2025-01-10 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215128', 'tblTempUsageDetail_20' ) end [2025-01-10 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:37:22] Production.INFO: ==19605== Releasing lock... [2025-01-10 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:38:05 [end_date_ymd] => 2025-01-10 06:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:38:05' and `end` < '2025-01-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-01-10 06:38:19] Production.INFO: count ==61 [2025-01-10 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:38:05 - End Time 2025-01-10 06:38:05 [2025-01-10 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215133', 'tblTempUsageDetail_20' ) start [2025-01-10 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215133', 'tblTempUsageDetail_20' ) end [2025-01-10 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215133', 'tblTempVendorCDR_20' ) start [2025-01-10 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215133', 'tblTempVendorCDR_20' ) end [2025-01-10 06:38:19] Production.INFO: ProcessCDR(1,14215133,1,1,2) [2025-01-10 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215133', 'tblTempUsageDetail_20' ) start [2025-01-10 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215133', 'tblTempUsageDetail_20' ) end [2025-01-10 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:38:22] Production.INFO: ==19674== Releasing lock... [2025-01-10 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:39:04 [end_date_ymd] => 2025-01-10 06:39:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:39:04' and `end` < '2025-01-10 06: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-01-10 06:39:17] Production.INFO: count ==61 [2025-01-10 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:39:04 - End Time 2025-01-10 06:39:04 [2025-01-10 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215138', 'tblTempUsageDetail_20' ) start [2025-01-10 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215138', 'tblTempUsageDetail_20' ) end [2025-01-10 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215138', 'tblTempVendorCDR_20' ) start [2025-01-10 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215138', 'tblTempVendorCDR_20' ) end [2025-01-10 06:39:17] Production.INFO: ProcessCDR(1,14215138,1,1,2) [2025-01-10 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215138', 'tblTempUsageDetail_20' ) start [2025-01-10 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215138', 'tblTempUsageDetail_20' ) end [2025-01-10 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:39:20] Production.INFO: ==19745== Releasing lock... [2025-01-10 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:40:06 [end_date_ymd] => 2025-01-10 06:40:06 [RateCDR] => 1 ) [2025-01-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-01-10 03:40:06' and `end` < '2025-01-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-01-10 06:40:19] Production.INFO: count ==55 [2025-01-10 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:40:06 - End Time 2025-01-10 06:40:06 [2025-01-10 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215144', 'tblTempUsageDetail_20' ) start [2025-01-10 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215144', 'tblTempUsageDetail_20' ) end [2025-01-10 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215144', 'tblTempVendorCDR_20' ) start [2025-01-10 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215144', 'tblTempVendorCDR_20' ) end [2025-01-10 06:40:19] Production.INFO: ProcessCDR(1,14215144,1,1,2) [2025-01-10 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215144', 'tblTempUsageDetail_20' ) start [2025-01-10 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215144', 'tblTempUsageDetail_20' ) end [2025-01-10 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:40:22] Production.INFO: ==19819== Releasing lock... [2025-01-10 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:41:04 [end_date_ymd] => 2025-01-10 06:41:04 [RateCDR] => 1 ) [2025-01-10 06: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-01-10 03:41:04' and `end` < '2025-01-10 06: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-01-10 06:41:18] Production.INFO: count ==53 [2025-01-10 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:41:04 - End Time 2025-01-10 06:41:04 [2025-01-10 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215149', 'tblTempUsageDetail_20' ) start [2025-01-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215149', 'tblTempUsageDetail_20' ) end [2025-01-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215149', 'tblTempVendorCDR_20' ) start [2025-01-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215149', 'tblTempVendorCDR_20' ) end [2025-01-10 06:41:18] Production.INFO: ProcessCDR(1,14215149,1,1,2) [2025-01-10 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215149', 'tblTempUsageDetail_20' ) start [2025-01-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215149', 'tblTempUsageDetail_20' ) end [2025-01-10 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:41:21] Production.INFO: ==19890== Releasing lock... [2025-01-10 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:42:05 [end_date_ymd] => 2025-01-10 06:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:42:05' and `end` < '2025-01-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-01-10 06:42:18] Production.INFO: count ==53 [2025-01-10 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:42:05 - End Time 2025-01-10 06:42:05 [2025-01-10 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215154', 'tblTempUsageDetail_20' ) start [2025-01-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215154', 'tblTempUsageDetail_20' ) end [2025-01-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215154', 'tblTempVendorCDR_20' ) start [2025-01-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215154', 'tblTempVendorCDR_20' ) end [2025-01-10 06:42:18] Production.INFO: ProcessCDR(1,14215154,1,1,2) [2025-01-10 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215154', 'tblTempUsageDetail_20' ) start [2025-01-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215154', 'tblTempUsageDetail_20' ) end [2025-01-10 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:42:21] Production.INFO: ==19962== Releasing lock... [2025-01-10 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:43:05 [end_date_ymd] => 2025-01-10 06:43:05 [RateCDR] => 1 ) [2025-01-10 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:43:05' and `end` < '2025-01-10 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:43:18] Production.INFO: count ==53 [2025-01-10 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:43:05 - End Time 2025-01-10 06:43:05 [2025-01-10 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215159', 'tblTempUsageDetail_20' ) start [2025-01-10 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215159', 'tblTempUsageDetail_20' ) end [2025-01-10 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215159', 'tblTempVendorCDR_20' ) start [2025-01-10 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215159', 'tblTempVendorCDR_20' ) end [2025-01-10 06:43:18] Production.INFO: ProcessCDR(1,14215159,1,1,2) [2025-01-10 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215159', 'tblTempUsageDetail_20' ) start [2025-01-10 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215159', 'tblTempUsageDetail_20' ) end [2025-01-10 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:43:21] Production.INFO: ==20032== Releasing lock... [2025-01-10 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:44:05 [end_date_ymd] => 2025-01-10 06:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:44:05' and `end` < '2025-01-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-01-10 06:44:17] Production.INFO: count ==53 [2025-01-10 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:44:05 - End Time 2025-01-10 06:44:05 [2025-01-10 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215164', 'tblTempUsageDetail_20' ) start [2025-01-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215164', 'tblTempUsageDetail_20' ) end [2025-01-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215164', 'tblTempVendorCDR_20' ) start [2025-01-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215164', 'tblTempVendorCDR_20' ) end [2025-01-10 06:44:17] Production.INFO: ProcessCDR(1,14215164,1,1,2) [2025-01-10 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215164', 'tblTempUsageDetail_20' ) start [2025-01-10 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215164', 'tblTempUsageDetail_20' ) end [2025-01-10 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:44:21] Production.INFO: ==20111== Releasing lock... [2025-01-10 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:45:05 [end_date_ymd] => 2025-01-10 06:45:05 [RateCDR] => 1 ) [2025-01-10 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:45:05' and `end` < '2025-01-10 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:45:18] Production.INFO: count ==53 [2025-01-10 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:45:05 - End Time 2025-01-10 06:45:05 [2025-01-10 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215169', 'tblTempUsageDetail_20' ) start [2025-01-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215169', 'tblTempUsageDetail_20' ) end [2025-01-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215169', 'tblTempVendorCDR_20' ) start [2025-01-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215169', 'tblTempVendorCDR_20' ) end [2025-01-10 06:45:18] Production.INFO: ProcessCDR(1,14215169,1,1,2) [2025-01-10 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215169', 'tblTempUsageDetail_20' ) start [2025-01-10 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215169', 'tblTempUsageDetail_20' ) end [2025-01-10 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:45:22] Production.INFO: ==20182== Releasing lock... [2025-01-10 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:46:05 [end_date_ymd] => 2025-01-10 06:46:05 [RateCDR] => 1 ) [2025-01-10 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:46:05' and `end` < '2025-01-10 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:46:18] Production.INFO: count ==53 [2025-01-10 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:46:05 - End Time 2025-01-10 06:46:05 [2025-01-10 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215174', 'tblTempUsageDetail_20' ) start [2025-01-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215174', 'tblTempUsageDetail_20' ) end [2025-01-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215174', 'tblTempVendorCDR_20' ) start [2025-01-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215174', 'tblTempVendorCDR_20' ) end [2025-01-10 06:46:18] Production.INFO: ProcessCDR(1,14215174,1,1,2) [2025-01-10 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215174', 'tblTempUsageDetail_20' ) start [2025-01-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215174', 'tblTempUsageDetail_20' ) end [2025-01-10 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:46:21] Production.INFO: ==20252== Releasing lock... [2025-01-10 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:47:05 [end_date_ymd] => 2025-01-10 06:47:05 [RateCDR] => 1 ) [2025-01-10 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:47:05' and `end` < '2025-01-10 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:47:18] Production.INFO: count ==53 [2025-01-10 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:47:05 - End Time 2025-01-10 06:47:05 [2025-01-10 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215179', 'tblTempUsageDetail_20' ) start [2025-01-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215179', 'tblTempUsageDetail_20' ) end [2025-01-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215179', 'tblTempVendorCDR_20' ) start [2025-01-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215179', 'tblTempVendorCDR_20' ) end [2025-01-10 06:47:18] Production.INFO: ProcessCDR(1,14215179,1,1,2) [2025-01-10 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215179', 'tblTempUsageDetail_20' ) start [2025-01-10 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215179', 'tblTempUsageDetail_20' ) end [2025-01-10 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:47:21] Production.INFO: ==20360== Releasing lock... [2025-01-10 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:48:04 [end_date_ymd] => 2025-01-10 06:48:04 [RateCDR] => 1 ) [2025-01-10 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:48:04' and `end` < '2025-01-10 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:48:18] Production.INFO: count ==53 [2025-01-10 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:48:04 - End Time 2025-01-10 06:48:04 [2025-01-10 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215184', 'tblTempUsageDetail_20' ) start [2025-01-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215184', 'tblTempUsageDetail_20' ) end [2025-01-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215184', 'tblTempVendorCDR_20' ) start [2025-01-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215184', 'tblTempVendorCDR_20' ) end [2025-01-10 06:48:18] Production.INFO: ProcessCDR(1,14215184,1,1,2) [2025-01-10 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215184', 'tblTempUsageDetail_20' ) start [2025-01-10 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215184', 'tblTempUsageDetail_20' ) end [2025-01-10 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:48:21] Production.INFO: ==20429== Releasing lock... [2025-01-10 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:49:05 [end_date_ymd] => 2025-01-10 06:49:05 [RateCDR] => 1 ) [2025-01-10 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:49:05' and `end` < '2025-01-10 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:49:19] Production.INFO: count ==53 [2025-01-10 06:49:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:49:05 - End Time 2025-01-10 06:49:05 [2025-01-10 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215189', 'tblTempUsageDetail_20' ) start [2025-01-10 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215189', 'tblTempUsageDetail_20' ) end [2025-01-10 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215189', 'tblTempVendorCDR_20' ) start [2025-01-10 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215189', 'tblTempVendorCDR_20' ) end [2025-01-10 06:49:19] Production.INFO: ProcessCDR(1,14215189,1,1,2) [2025-01-10 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215189', 'tblTempUsageDetail_20' ) start [2025-01-10 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215189', 'tblTempUsageDetail_20' ) end [2025-01-10 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:49:22] Production.INFO: ==20501== Releasing lock... [2025-01-10 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:50:05 [end_date_ymd] => 2025-01-10 06:50:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:50:05' and `end` < '2025-01-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-01-10 06:50:18] Production.INFO: count ==53 [2025-01-10 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:50:05 - End Time 2025-01-10 06:50:05 [2025-01-10 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215195', 'tblTempUsageDetail_20' ) start [2025-01-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215195', 'tblTempUsageDetail_20' ) end [2025-01-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215195', 'tblTempVendorCDR_20' ) start [2025-01-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215195', 'tblTempVendorCDR_20' ) end [2025-01-10 06:50:18] Production.INFO: ProcessCDR(1,14215195,1,1,2) [2025-01-10 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215195', 'tblTempUsageDetail_20' ) start [2025-01-10 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215195', 'tblTempUsageDetail_20' ) end [2025-01-10 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:50:21] Production.INFO: ==20573== Releasing lock... [2025-01-10 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:51:05 [end_date_ymd] => 2025-01-10 06:51:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:51:05' and `end` < '2025-01-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-01-10 06:51:18] Production.INFO: count ==53 [2025-01-10 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:51:05 - End Time 2025-01-10 06:51:05 [2025-01-10 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215200', 'tblTempUsageDetail_20' ) start [2025-01-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215200', 'tblTempUsageDetail_20' ) end [2025-01-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215200', 'tblTempVendorCDR_20' ) start [2025-01-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215200', 'tblTempVendorCDR_20' ) end [2025-01-10 06:51:18] Production.INFO: ProcessCDR(1,14215200,1,1,2) [2025-01-10 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215200', 'tblTempUsageDetail_20' ) start [2025-01-10 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215200', 'tblTempUsageDetail_20' ) end [2025-01-10 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:51:21] Production.INFO: ==20646== Releasing lock... [2025-01-10 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:52:05 [end_date_ymd] => 2025-01-10 06:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:52:05' and `end` < '2025-01-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-01-10 06:52:19] Production.INFO: count ==53 [2025-01-10 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:52:05 - End Time 2025-01-10 06:52:05 [2025-01-10 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215205', 'tblTempUsageDetail_20' ) start [2025-01-10 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215205', 'tblTempUsageDetail_20' ) end [2025-01-10 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215205', 'tblTempVendorCDR_20' ) start [2025-01-10 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215205', 'tblTempVendorCDR_20' ) end [2025-01-10 06:52:19] Production.INFO: ProcessCDR(1,14215205,1,1,2) [2025-01-10 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215205', 'tblTempUsageDetail_20' ) start [2025-01-10 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215205', 'tblTempUsageDetail_20' ) end [2025-01-10 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:52:22] Production.INFO: ==20720== Releasing lock... [2025-01-10 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:53:05 [end_date_ymd] => 2025-01-10 06:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:53:05' and `end` < '2025-01-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-01-10 06:53:19] Production.INFO: count ==53 [2025-01-10 06:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:53:05 - End Time 2025-01-10 06:53:05 [2025-01-10 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215210', 'tblTempUsageDetail_20' ) start [2025-01-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215210', 'tblTempUsageDetail_20' ) end [2025-01-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215210', 'tblTempVendorCDR_20' ) start [2025-01-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215210', 'tblTempVendorCDR_20' ) end [2025-01-10 06:53:19] Production.INFO: ProcessCDR(1,14215210,1,1,2) [2025-01-10 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215210', 'tblTempUsageDetail_20' ) start [2025-01-10 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215210', 'tblTempUsageDetail_20' ) end [2025-01-10 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:53:22] Production.INFO: ==20800== Releasing lock... [2025-01-10 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:54:05 [end_date_ymd] => 2025-01-10 06:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:54:05' and `end` < '2025-01-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-01-10 06:54:18] Production.INFO: count ==53 [2025-01-10 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 03:54:05 - End Time 2025-01-10 06:54:05 [2025-01-10 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215215', 'tblTempUsageDetail_20' ) start [2025-01-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215215', 'tblTempUsageDetail_20' ) end [2025-01-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215215', 'tblTempVendorCDR_20' ) start [2025-01-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215215', 'tblTempVendorCDR_20' ) end [2025-01-10 06:54:18] Production.INFO: ProcessCDR(1,14215215,1,1,2) [2025-01-10 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215215', 'tblTempUsageDetail_20' ) start [2025-01-10 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215215', 'tblTempUsageDetail_20' ) end [2025-01-10 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:54:21] Production.INFO: ==20881== Releasing lock... [2025-01-10 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:55:04 [end_date_ymd] => 2025-01-10 06:55:04 [RateCDR] => 1 ) [2025-01-10 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:55:04' and `end` < '2025-01-10 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:55:17] Production.INFO: count ==53 [2025-01-10 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:55:04 - End Time 2025-01-10 06:55:04 [2025-01-10 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215220', 'tblTempUsageDetail_20' ) start [2025-01-10 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215220', 'tblTempUsageDetail_20' ) end [2025-01-10 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215220', 'tblTempVendorCDR_20' ) start [2025-01-10 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215220', 'tblTempVendorCDR_20' ) end [2025-01-10 06:55:17] Production.INFO: ProcessCDR(1,14215220,1,1,2) [2025-01-10 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215220', 'tblTempUsageDetail_20' ) start [2025-01-10 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215220', 'tblTempUsageDetail_20' ) end [2025-01-10 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:55:20] Production.INFO: ==20958== Releasing lock... [2025-01-10 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:56:05 [end_date_ymd] => 2025-01-10 06:56:05 [RateCDR] => 1 ) [2025-01-10 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:56:05' and `end` < '2025-01-10 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:56:20] Production.INFO: count ==55 [2025-01-10 06:56:20] Production.ERROR: pbx CDR StartTime 2025-01-10 03:56:05 - End Time 2025-01-10 06:56:05 [2025-01-10 06:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215225', 'tblTempUsageDetail_20' ) start [2025-01-10 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215225', 'tblTempUsageDetail_20' ) end [2025-01-10 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215225', 'tblTempVendorCDR_20' ) start [2025-01-10 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215225', 'tblTempVendorCDR_20' ) end [2025-01-10 06:56:20] Production.INFO: ProcessCDR(1,14215225,1,1,2) [2025-01-10 06:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215225', 'tblTempUsageDetail_20' ) start [2025-01-10 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215225', 'tblTempUsageDetail_20' ) end [2025-01-10 06:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:56:23] Production.INFO: ==21042== Releasing lock... [2025-01-10 06:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:56:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:57:04 [end_date_ymd] => 2025-01-10 06:57:04 [RateCDR] => 1 ) [2025-01-10 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 03:57:04' and `end` < '2025-01-10 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 06:57:17] Production.INFO: count ==55 [2025-01-10 06:57:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:57:04 - End Time 2025-01-10 06:57:04 [2025-01-10 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215230', 'tblTempUsageDetail_20' ) start [2025-01-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215230', 'tblTempUsageDetail_20' ) end [2025-01-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215230', 'tblTempVendorCDR_20' ) start [2025-01-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215230', 'tblTempVendorCDR_20' ) end [2025-01-10 06:57:17] Production.INFO: ProcessCDR(1,14215230,1,1,2) [2025-01-10 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215230', 'tblTempUsageDetail_20' ) start [2025-01-10 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215230', 'tblTempUsageDetail_20' ) end [2025-01-10 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:57:20] Production.INFO: ==21124== Releasing lock... [2025-01-10 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:58:04 [end_date_ymd] => 2025-01-10 06:58:04 [RateCDR] => 1 ) [2025-01-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-01-10 03:58:04' and `end` < '2025-01-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-01-10 06:58:17] Production.INFO: count ==55 [2025-01-10 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-10 03:58:04 - End Time 2025-01-10 06:58:04 [2025-01-10 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215235', 'tblTempUsageDetail_20' ) start [2025-01-10 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215235', 'tblTempUsageDetail_20' ) end [2025-01-10 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215235', 'tblTempVendorCDR_20' ) start [2025-01-10 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215235', 'tblTempVendorCDR_20' ) end [2025-01-10 06:58:17] Production.INFO: ProcessCDR(1,14215235,1,1,2) [2025-01-10 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215235', 'tblTempUsageDetail_20' ) start [2025-01-10 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215235', 'tblTempUsageDetail_20' ) end [2025-01-10 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:58:20] Production.INFO: ==21214== Releasing lock... [2025-01-10 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 03:59:05 [end_date_ymd] => 2025-01-10 06:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 03:59:05' and `end` < '2025-01-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-01-10 06:59:19] Production.INFO: count ==55 [2025-01-10 06:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 03:59:05 - End Time 2025-01-10 06:59:05 [2025-01-10 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215240', 'tblTempUsageDetail_20' ) start [2025-01-10 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215240', 'tblTempUsageDetail_20' ) end [2025-01-10 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215240', 'tblTempVendorCDR_20' ) start [2025-01-10 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215240', 'tblTempVendorCDR_20' ) end [2025-01-10 06:59:19] Production.INFO: ProcessCDR(1,14215240,1,1,2) [2025-01-10 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215240', 'tblTempUsageDetail_20' ) start [2025-01-10 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215240', 'tblTempUsageDetail_20' ) end [2025-01-10 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 06:59:22] Production.INFO: ==21307== Releasing lock... [2025-01-10 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 06:59:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:00:05 [end_date_ymd] => 2025-01-10 07:00:05 [RateCDR] => 1 ) [2025-01-10 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:00:05' and `end` < '2025-01-10 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:00:18] Production.INFO: count ==53 [2025-01-10 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:00:05 - End Time 2025-01-10 07:00:05 [2025-01-10 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215245', 'tblTempUsageDetail_20' ) start [2025-01-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215245', 'tblTempUsageDetail_20' ) end [2025-01-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215245', 'tblTempVendorCDR_20' ) start [2025-01-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215245', 'tblTempVendorCDR_20' ) end [2025-01-10 07:00:18] Production.INFO: ProcessCDR(1,14215245,1,1,2) [2025-01-10 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215245', 'tblTempUsageDetail_20' ) start [2025-01-10 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215245', 'tblTempUsageDetail_20' ) end [2025-01-10 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:00:21] Production.INFO: ==21393== Releasing lock... [2025-01-10 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:01:05 [end_date_ymd] => 2025-01-10 07:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:01:05' and `end` < '2025-01-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-01-10 07:01:48] Production.INFO: count ==53 [2025-01-10 07:01:48] Production.ERROR: pbx CDR StartTime 2025-01-10 04:01:05 - End Time 2025-01-10 07:01:05 [2025-01-10 07:01:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:01:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215251', 'tblTempUsageDetail_20' ) start [2025-01-10 07:01:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215251', 'tblTempUsageDetail_20' ) end [2025-01-10 07:01:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215251', 'tblTempVendorCDR_20' ) start [2025-01-10 07:01:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215251', 'tblTempVendorCDR_20' ) end [2025-01-10 07:01:48] Production.INFO: ProcessCDR(1,14215251,1,1,2) [2025-01-10 07:01:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:01:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:01:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:01:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:01:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215251', 'tblTempUsageDetail_20' ) start [2025-01-10 07:01:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215251', 'tblTempUsageDetail_20' ) end [2025-01-10 07:01:51] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:01:51] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:01:51] Production.INFO: ==21560== Releasing lock... [2025-01-10 07:01:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:01:51] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:02:04 [end_date_ymd] => 2025-01-10 07:02:04 [RateCDR] => 1 ) [2025-01-10 07:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:02:04' and `end` < '2025-01-10 07:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:02:22] Production.INFO: count ==53 [2025-01-10 07:02:22] Production.ERROR: pbx CDR StartTime 2025-01-10 04:02:04 - End Time 2025-01-10 07:02:04 [2025-01-10 07:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215256', 'tblTempUsageDetail_20' ) start [2025-01-10 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215256', 'tblTempUsageDetail_20' ) end [2025-01-10 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215256', 'tblTempVendorCDR_20' ) start [2025-01-10 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215256', 'tblTempVendorCDR_20' ) end [2025-01-10 07:02:22] Production.INFO: ProcessCDR(1,14215256,1,1,2) [2025-01-10 07:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215256', 'tblTempUsageDetail_20' ) start [2025-01-10 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215256', 'tblTempUsageDetail_20' ) end [2025-01-10 07:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:02:25] Production.INFO: ==21671== Releasing lock... [2025-01-10 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:02:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:03:05 [end_date_ymd] => 2025-01-10 07:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:03:05' and `end` < '2025-01-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-01-10 07:03:21] Production.INFO: count ==53 [2025-01-10 07:03:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:03:05 - End Time 2025-01-10 07:03:05 [2025-01-10 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215261', 'tblTempUsageDetail_20' ) start [2025-01-10 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215261', 'tblTempUsageDetail_20' ) end [2025-01-10 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215261', 'tblTempVendorCDR_20' ) start [2025-01-10 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215261', 'tblTempVendorCDR_20' ) end [2025-01-10 07:03:21] Production.INFO: ProcessCDR(1,14215261,1,1,2) [2025-01-10 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215261', 'tblTempUsageDetail_20' ) start [2025-01-10 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215261', 'tblTempUsageDetail_20' ) end [2025-01-10 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:03:24] Production.INFO: ==21743== Releasing lock... [2025-01-10 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:04:05 [end_date_ymd] => 2025-01-10 07:04:05 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:04:05' and `end` < '2025-01-10 07: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-01-10 07:04:21] Production.INFO: count ==53 [2025-01-10 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:04:05 - End Time 2025-01-10 07:04:05 [2025-01-10 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215266', 'tblTempUsageDetail_20' ) start [2025-01-10 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215266', 'tblTempUsageDetail_20' ) end [2025-01-10 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215266', 'tblTempVendorCDR_20' ) start [2025-01-10 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215266', 'tblTempVendorCDR_20' ) end [2025-01-10 07:04:21] Production.INFO: ProcessCDR(1,14215266,1,1,2) [2025-01-10 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215266', 'tblTempUsageDetail_20' ) start [2025-01-10 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215266', 'tblTempUsageDetail_20' ) end [2025-01-10 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:04:24] Production.INFO: ==21817== Releasing lock... [2025-01-10 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:04:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:05:05 [end_date_ymd] => 2025-01-10 07:05:05 [RateCDR] => 1 ) [2025-01-10 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:05:05' and `end` < '2025-01-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-01-10 07:05:20] Production.INFO: count ==53 [2025-01-10 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:05:05 - End Time 2025-01-10 07:05:05 [2025-01-10 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215271', 'tblTempUsageDetail_20' ) start [2025-01-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215271', 'tblTempUsageDetail_20' ) end [2025-01-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215271', 'tblTempVendorCDR_20' ) start [2025-01-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215271', 'tblTempVendorCDR_20' ) end [2025-01-10 07:05:20] Production.INFO: ProcessCDR(1,14215271,1,1,2) [2025-01-10 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215271', 'tblTempUsageDetail_20' ) start [2025-01-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215271', 'tblTempUsageDetail_20' ) end [2025-01-10 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:05:23] Production.INFO: ==21965== Releasing lock... [2025-01-10 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:06:04 [end_date_ymd] => 2025-01-10 07:06:04 [RateCDR] => 1 ) [2025-01-10 07:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:06:04' and `end` < '2025-01-10 07:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:06:19] Production.INFO: count ==53 [2025-01-10 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:06:04 - End Time 2025-01-10 07:06:04 [2025-01-10 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215276', 'tblTempUsageDetail_20' ) start [2025-01-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215276', 'tblTempUsageDetail_20' ) end [2025-01-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215276', 'tblTempVendorCDR_20' ) start [2025-01-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215276', 'tblTempVendorCDR_20' ) end [2025-01-10 07:06:19] Production.INFO: ProcessCDR(1,14215276,1,1,2) [2025-01-10 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215276', 'tblTempUsageDetail_20' ) start [2025-01-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215276', 'tblTempUsageDetail_20' ) end [2025-01-10 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:06:22] Production.INFO: ==22037== Releasing lock... [2025-01-10 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:07:05 [end_date_ymd] => 2025-01-10 07:07:05 [RateCDR] => 1 ) [2025-01-10 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:07:05' and `end` < '2025-01-10 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:07:22] Production.INFO: count ==54 [2025-01-10 07:07:22] Production.ERROR: pbx CDR StartTime 2025-01-10 04:07:05 - End Time 2025-01-10 07:07:05 [2025-01-10 07:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215281', 'tblTempUsageDetail_20' ) start [2025-01-10 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215281', 'tblTempUsageDetail_20' ) end [2025-01-10 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215281', 'tblTempVendorCDR_20' ) start [2025-01-10 07:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215281', 'tblTempVendorCDR_20' ) end [2025-01-10 07:07:22] Production.INFO: ProcessCDR(1,14215281,1,1,2) [2025-01-10 07:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215281', 'tblTempUsageDetail_20' ) start [2025-01-10 07:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215281', 'tblTempUsageDetail_20' ) end [2025-01-10 07:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:07:27] Production.INFO: ==22116== Releasing lock... [2025-01-10 07:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:07:27] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:08:05 [end_date_ymd] => 2025-01-10 07:08:05 [RateCDR] => 1 ) [2025-01-10 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:08:05' and `end` < '2025-01-10 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:08:20] Production.INFO: count ==54 [2025-01-10 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:08:05 - End Time 2025-01-10 07:08:05 [2025-01-10 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215286', 'tblTempUsageDetail_20' ) start [2025-01-10 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215286', 'tblTempUsageDetail_20' ) end [2025-01-10 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215286', 'tblTempVendorCDR_20' ) start [2025-01-10 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215286', 'tblTempVendorCDR_20' ) end [2025-01-10 07:08:20] Production.INFO: ProcessCDR(1,14215286,1,1,2) [2025-01-10 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215286', 'tblTempUsageDetail_20' ) start [2025-01-10 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215286', 'tblTempUsageDetail_20' ) end [2025-01-10 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:08:24] Production.INFO: ==22278== Releasing lock... [2025-01-10 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:08:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:09:04 [end_date_ymd] => 2025-01-10 07:09:04 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:09:04' and `end` < '2025-01-10 07: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-01-10 07:09:19] Production.INFO: count ==55 [2025-01-10 07:09:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:09:04 - End Time 2025-01-10 07:09:04 [2025-01-10 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215291', 'tblTempUsageDetail_20' ) start [2025-01-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215291', 'tblTempUsageDetail_20' ) end [2025-01-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215291', 'tblTempVendorCDR_20' ) start [2025-01-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215291', 'tblTempVendorCDR_20' ) end [2025-01-10 07:09:19] Production.INFO: ProcessCDR(1,14215291,1,1,2) [2025-01-10 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215291', 'tblTempUsageDetail_20' ) start [2025-01-10 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215291', 'tblTempUsageDetail_20' ) end [2025-01-10 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:09:24] Production.INFO: ==22364== Releasing lock... [2025-01-10 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:09:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:10:06 [end_date_ymd] => 2025-01-10 07:10:06 [RateCDR] => 1 ) [2025-01-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-01-10 04:10:06' and `end` < '2025-01-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-01-10 07:10:21] Production.INFO: count ==55 [2025-01-10 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:10:06 - End Time 2025-01-10 07:10:06 [2025-01-10 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215297', 'tblTempUsageDetail_20' ) start [2025-01-10 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215297', 'tblTempUsageDetail_20' ) end [2025-01-10 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215297', 'tblTempVendorCDR_20' ) start [2025-01-10 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215297', 'tblTempVendorCDR_20' ) end [2025-01-10 07:10:21] Production.INFO: ProcessCDR(1,14215297,1,1,2) [2025-01-10 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215297', 'tblTempUsageDetail_20' ) start [2025-01-10 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215297', 'tblTempUsageDetail_20' ) end [2025-01-10 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:10:24] Production.INFO: ==22457== Releasing lock... [2025-01-10 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:11:04 [end_date_ymd] => 2025-01-10 07:11:04 [RateCDR] => 1 ) [2025-01-10 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:11:04' and `end` < '2025-01-10 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:11:20] Production.INFO: count ==55 [2025-01-10 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:11:04 - End Time 2025-01-10 07:11:04 [2025-01-10 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215302', 'tblTempUsageDetail_20' ) start [2025-01-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215302', 'tblTempUsageDetail_20' ) end [2025-01-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215302', 'tblTempVendorCDR_20' ) start [2025-01-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215302', 'tblTempVendorCDR_20' ) end [2025-01-10 07:11:20] Production.INFO: ProcessCDR(1,14215302,1,1,2) [2025-01-10 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215302', 'tblTempUsageDetail_20' ) start [2025-01-10 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215302', 'tblTempUsageDetail_20' ) end [2025-01-10 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:11:23] Production.INFO: ==22557== Releasing lock... [2025-01-10 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:12:05 [end_date_ymd] => 2025-01-10 07:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:12:05' and `end` < '2025-01-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-01-10 07:12:20] Production.INFO: count ==55 [2025-01-10 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:12:05 - End Time 2025-01-10 07:12:05 [2025-01-10 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215307', 'tblTempUsageDetail_20' ) start [2025-01-10 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215307', 'tblTempUsageDetail_20' ) end [2025-01-10 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215307', 'tblTempVendorCDR_20' ) start [2025-01-10 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215307', 'tblTempVendorCDR_20' ) end [2025-01-10 07:12:20] Production.INFO: ProcessCDR(1,14215307,1,1,2) [2025-01-10 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215307', 'tblTempUsageDetail_20' ) start [2025-01-10 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215307', 'tblTempUsageDetail_20' ) end [2025-01-10 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:12:23] Production.INFO: ==22729== Releasing lock... [2025-01-10 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:13:05 [end_date_ymd] => 2025-01-10 07:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:13:05' and `end` < '2025-01-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-01-10 07:13:20] Production.INFO: count ==55 [2025-01-10 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:13:05 - End Time 2025-01-10 07:13:05 [2025-01-10 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215312', 'tblTempUsageDetail_20' ) start [2025-01-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215312', 'tblTempUsageDetail_20' ) end [2025-01-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215312', 'tblTempVendorCDR_20' ) start [2025-01-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215312', 'tblTempVendorCDR_20' ) end [2025-01-10 07:13:20] Production.INFO: ProcessCDR(1,14215312,1,1,2) [2025-01-10 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215312', 'tblTempUsageDetail_20' ) start [2025-01-10 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215312', 'tblTempUsageDetail_20' ) end [2025-01-10 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:13:23] Production.INFO: ==22821== Releasing lock... [2025-01-10 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:14:05 [end_date_ymd] => 2025-01-10 07:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:14:05' and `end` < '2025-01-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-01-10 07:14:20] Production.INFO: count ==55 [2025-01-10 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:14:05 - End Time 2025-01-10 07:14:05 [2025-01-10 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215317', 'tblTempUsageDetail_20' ) start [2025-01-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215317', 'tblTempUsageDetail_20' ) end [2025-01-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215317', 'tblTempVendorCDR_20' ) start [2025-01-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215317', 'tblTempVendorCDR_20' ) end [2025-01-10 07:14:20] Production.INFO: ProcessCDR(1,14215317,1,1,2) [2025-01-10 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215317', 'tblTempUsageDetail_20' ) start [2025-01-10 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215317', 'tblTempUsageDetail_20' ) end [2025-01-10 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:14:23] Production.INFO: ==22916== Releasing lock... [2025-01-10 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:15:04 [end_date_ymd] => 2025-01-10 07:15:04 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:15:04' and `end` < '2025-01-10 07: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-01-10 07:15:19] Production.INFO: count ==55 [2025-01-10 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:15:04 - End Time 2025-01-10 07:15:04 [2025-01-10 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215322', 'tblTempUsageDetail_20' ) start [2025-01-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215322', 'tblTempUsageDetail_20' ) end [2025-01-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215322', 'tblTempVendorCDR_20' ) start [2025-01-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215322', 'tblTempVendorCDR_20' ) end [2025-01-10 07:15:19] Production.INFO: ProcessCDR(1,14215322,1,1,2) [2025-01-10 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215322', 'tblTempUsageDetail_20' ) start [2025-01-10 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215322', 'tblTempUsageDetail_20' ) end [2025-01-10 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:15:22] Production.INFO: ==23084== Releasing lock... [2025-01-10 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:16:05 [end_date_ymd] => 2025-01-10 07:16:05 [RateCDR] => 1 ) [2025-01-10 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:16:05' and `end` < '2025-01-10 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:16:19] Production.INFO: count ==55 [2025-01-10 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:16:05 - End Time 2025-01-10 07:16:05 [2025-01-10 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215327', 'tblTempUsageDetail_20' ) start [2025-01-10 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215327', 'tblTempUsageDetail_20' ) end [2025-01-10 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215327', 'tblTempVendorCDR_20' ) start [2025-01-10 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215327', 'tblTempVendorCDR_20' ) end [2025-01-10 07:16:20] Production.INFO: ProcessCDR(1,14215327,1,1,2) [2025-01-10 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215327', 'tblTempUsageDetail_20' ) start [2025-01-10 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215327', 'tblTempUsageDetail_20' ) end [2025-01-10 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:16:23] Production.INFO: ==23180== Releasing lock... [2025-01-10 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:16:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:17:05 [end_date_ymd] => 2025-01-10 07:17:05 [RateCDR] => 1 ) [2025-01-10 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:17:05' and `end` < '2025-01-10 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:17:21] Production.INFO: count ==55 [2025-01-10 07:17:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:17:05 - End Time 2025-01-10 07:17:05 [2025-01-10 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215332', 'tblTempUsageDetail_20' ) start [2025-01-10 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215332', 'tblTempUsageDetail_20' ) end [2025-01-10 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215332', 'tblTempVendorCDR_20' ) start [2025-01-10 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215332', 'tblTempVendorCDR_20' ) end [2025-01-10 07:17:21] Production.INFO: ProcessCDR(1,14215332,1,1,2) [2025-01-10 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215332', 'tblTempUsageDetail_20' ) start [2025-01-10 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215332', 'tblTempUsageDetail_20' ) end [2025-01-10 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:17:25] Production.INFO: ==23273== Releasing lock... [2025-01-10 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:17:25] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:18:05 [end_date_ymd] => 2025-01-10 07:18:05 [RateCDR] => 1 ) [2025-01-10 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:18:05' and `end` < '2025-01-10 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:18:21] Production.INFO: count ==55 [2025-01-10 07:18:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:18:05 - End Time 2025-01-10 07:18:05 [2025-01-10 07:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215337', 'tblTempUsageDetail_20' ) start [2025-01-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215337', 'tblTempUsageDetail_20' ) end [2025-01-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215337', 'tblTempVendorCDR_20' ) start [2025-01-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215337', 'tblTempVendorCDR_20' ) end [2025-01-10 07:18:21] Production.INFO: ProcessCDR(1,14215337,1,1,2) [2025-01-10 07:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215337', 'tblTempUsageDetail_20' ) start [2025-01-10 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215337', 'tblTempUsageDetail_20' ) end [2025-01-10 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:18:24] Production.INFO: ==23406== Releasing lock... [2025-01-10 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:18:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:19:05 [end_date_ymd] => 2025-01-10 07:19:05 [RateCDR] => 1 ) [2025-01-10 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:19:05' and `end` < '2025-01-10 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:19:18] Production.INFO: count ==55 [2025-01-10 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:19:05 - End Time 2025-01-10 07:19:05 [2025-01-10 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215342', 'tblTempUsageDetail_20' ) start [2025-01-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215342', 'tblTempUsageDetail_20' ) end [2025-01-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215342', 'tblTempVendorCDR_20' ) start [2025-01-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215342', 'tblTempVendorCDR_20' ) end [2025-01-10 07:19:18] Production.INFO: ProcessCDR(1,14215342,1,1,2) [2025-01-10 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215342', 'tblTempUsageDetail_20' ) start [2025-01-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215342', 'tblTempUsageDetail_20' ) end [2025-01-10 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:19:21] Production.INFO: ==23500== Releasing lock... [2025-01-10 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:20:06 [end_date_ymd] => 2025-01-10 07:20:06 [RateCDR] => 1 ) [2025-01-10 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:20:06' and `end` < '2025-01-10 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:20:19] Production.INFO: count ==55 [2025-01-10 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:20:06 - End Time 2025-01-10 07:20:06 [2025-01-10 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215348', 'tblTempUsageDetail_20' ) start [2025-01-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215348', 'tblTempUsageDetail_20' ) end [2025-01-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215348', 'tblTempVendorCDR_20' ) start [2025-01-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215348', 'tblTempVendorCDR_20' ) end [2025-01-10 07:20:19] Production.INFO: ProcessCDR(1,14215348,1,1,2) [2025-01-10 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215348', 'tblTempUsageDetail_20' ) start [2025-01-10 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215348', 'tblTempUsageDetail_20' ) end [2025-01-10 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:20:22] Production.INFO: ==23598== Releasing lock... [2025-01-10 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:21:05 [end_date_ymd] => 2025-01-10 07:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:21:05' and `end` < '2025-01-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-01-10 07:21:19] Production.INFO: count ==55 [2025-01-10 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:21:05 - End Time 2025-01-10 07:21:05 [2025-01-10 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215353', 'tblTempUsageDetail_20' ) start [2025-01-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215353', 'tblTempUsageDetail_20' ) end [2025-01-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215353', 'tblTempVendorCDR_20' ) start [2025-01-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215353', 'tblTempVendorCDR_20' ) end [2025-01-10 07:21:19] Production.INFO: ProcessCDR(1,14215353,1,1,2) [2025-01-10 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215353', 'tblTempUsageDetail_20' ) start [2025-01-10 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215353', 'tblTempUsageDetail_20' ) end [2025-01-10 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:21:23] Production.INFO: ==23693== Releasing lock... [2025-01-10 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:21:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:22:05 [end_date_ymd] => 2025-01-10 07:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:22:05' and `end` < '2025-01-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-01-10 07:22:51] Production.INFO: count ==56 [2025-01-10 07:22:51] Production.ERROR: pbx CDR StartTime 2025-01-10 04:22:05 - End Time 2025-01-10 07:22:05 [2025-01-10 07:22:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:22:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215358', 'tblTempUsageDetail_20' ) start [2025-01-10 07:22:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215358', 'tblTempUsageDetail_20' ) end [2025-01-10 07:22:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215358', 'tblTempVendorCDR_20' ) start [2025-01-10 07:22:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215358', 'tblTempVendorCDR_20' ) end [2025-01-10 07:22:51] Production.INFO: ProcessCDR(1,14215358,1,1,2) [2025-01-10 07:22:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:22:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:22:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:22:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:22:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215358', 'tblTempUsageDetail_20' ) start [2025-01-10 07:22:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215358', 'tblTempUsageDetail_20' ) end [2025-01-10 07:22:56] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:22:56] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:22:56] Production.INFO: ==23785== Releasing lock... [2025-01-10 07:22:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:22:56] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:23:05 [end_date_ymd] => 2025-01-10 07:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:23:05' and `end` < '2025-01-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-01-10 07:23:20] Production.INFO: count ==56 [2025-01-10 07:23:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:23:05 - End Time 2025-01-10 07:23:05 [2025-01-10 07:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215363', 'tblTempUsageDetail_20' ) start [2025-01-10 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215363', 'tblTempUsageDetail_20' ) end [2025-01-10 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215363', 'tblTempVendorCDR_20' ) start [2025-01-10 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215363', 'tblTempVendorCDR_20' ) end [2025-01-10 07:23:20] Production.INFO: ProcessCDR(1,14215363,1,1,2) [2025-01-10 07:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215363', 'tblTempUsageDetail_20' ) start [2025-01-10 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215363', 'tblTempUsageDetail_20' ) end [2025-01-10 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:23:23] Production.INFO: ==23878== Releasing lock... [2025-01-10 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:23:23] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:24:05 [end_date_ymd] => 2025-01-10 07:24:05 [RateCDR] => 1 ) [2025-01-10 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:24:05' and `end` < '2025-01-10 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:24:18] Production.INFO: count ==56 [2025-01-10 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:24:05 - End Time 2025-01-10 07:24:05 [2025-01-10 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215368', 'tblTempUsageDetail_20' ) start [2025-01-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215368', 'tblTempUsageDetail_20' ) end [2025-01-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215368', 'tblTempVendorCDR_20' ) start [2025-01-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215368', 'tblTempVendorCDR_20' ) end [2025-01-10 07:24:18] Production.INFO: ProcessCDR(1,14215368,1,1,2) [2025-01-10 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215368', 'tblTempUsageDetail_20' ) start [2025-01-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215368', 'tblTempUsageDetail_20' ) end [2025-01-10 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:24:21] Production.INFO: ==23974== Releasing lock... [2025-01-10 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:25:05 [end_date_ymd] => 2025-01-10 07:25:05 [RateCDR] => 1 ) [2025-01-10 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:25:05' and `end` < '2025-01-10 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:25:18] Production.INFO: count ==56 [2025-01-10 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:25:05 - End Time 2025-01-10 07:25:05 [2025-01-10 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215373', 'tblTempUsageDetail_20' ) start [2025-01-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215373', 'tblTempUsageDetail_20' ) end [2025-01-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215373', 'tblTempVendorCDR_20' ) start [2025-01-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215373', 'tblTempVendorCDR_20' ) end [2025-01-10 07:25:18] Production.INFO: ProcessCDR(1,14215373,1,1,2) [2025-01-10 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215373', 'tblTempUsageDetail_20' ) start [2025-01-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215373', 'tblTempUsageDetail_20' ) end [2025-01-10 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:25:21] Production.INFO: ==24070== Releasing lock... [2025-01-10 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:26:05 [end_date_ymd] => 2025-01-10 07:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:26:05' and `end` < '2025-01-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-01-10 07:26:18] Production.INFO: count ==56 [2025-01-10 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:26:05 - End Time 2025-01-10 07:26:05 [2025-01-10 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215378', 'tblTempUsageDetail_20' ) start [2025-01-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215378', 'tblTempUsageDetail_20' ) end [2025-01-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215378', 'tblTempVendorCDR_20' ) start [2025-01-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215378', 'tblTempVendorCDR_20' ) end [2025-01-10 07:26:18] Production.INFO: ProcessCDR(1,14215378,1,1,2) [2025-01-10 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215378', 'tblTempUsageDetail_20' ) start [2025-01-10 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215378', 'tblTempUsageDetail_20' ) end [2025-01-10 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:26:22] Production.INFO: ==24168== Releasing lock... [2025-01-10 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:27:05 [end_date_ymd] => 2025-01-10 07:27:05 [RateCDR] => 1 ) [2025-01-10 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:27:05' and `end` < '2025-01-10 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:27:18] Production.INFO: count ==56 [2025-01-10 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:27:05 - End Time 2025-01-10 07:27:05 [2025-01-10 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215383', 'tblTempUsageDetail_20' ) start [2025-01-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215383', 'tblTempUsageDetail_20' ) end [2025-01-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215383', 'tblTempVendorCDR_20' ) start [2025-01-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215383', 'tblTempVendorCDR_20' ) end [2025-01-10 07:27:18] Production.INFO: ProcessCDR(1,14215383,1,1,2) [2025-01-10 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215383', 'tblTempUsageDetail_20' ) start [2025-01-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215383', 'tblTempUsageDetail_20' ) end [2025-01-10 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:27:21] Production.INFO: ==24259== Releasing lock... [2025-01-10 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:28:04 [end_date_ymd] => 2025-01-10 07:28:04 [RateCDR] => 1 ) [2025-01-10 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:28:04' and `end` < '2025-01-10 07: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-01-10 07:28:17] Production.INFO: count ==56 [2025-01-10 07:28:17] Production.ERROR: pbx CDR StartTime 2025-01-10 04:28:04 - End Time 2025-01-10 07:28:04 [2025-01-10 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215388', 'tblTempUsageDetail_20' ) start [2025-01-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215388', 'tblTempUsageDetail_20' ) end [2025-01-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215388', 'tblTempVendorCDR_20' ) start [2025-01-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215388', 'tblTempVendorCDR_20' ) end [2025-01-10 07:28:17] Production.INFO: ProcessCDR(1,14215388,1,1,2) [2025-01-10 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215388', 'tblTempUsageDetail_20' ) start [2025-01-10 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215388', 'tblTempUsageDetail_20' ) end [2025-01-10 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:28:20] Production.INFO: ==24348== Releasing lock... [2025-01-10 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:29:05 [end_date_ymd] => 2025-01-10 07:29:05 [RateCDR] => 1 ) [2025-01-10 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:29:05' and `end` < '2025-01-10 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:29:19] Production.INFO: count ==56 [2025-01-10 07:29:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:29:05 - End Time 2025-01-10 07:29:05 [2025-01-10 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215393', 'tblTempUsageDetail_20' ) start [2025-01-10 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215393', 'tblTempUsageDetail_20' ) end [2025-01-10 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215393', 'tblTempVendorCDR_20' ) start [2025-01-10 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215393', 'tblTempVendorCDR_20' ) end [2025-01-10 07:29:19] Production.INFO: ProcessCDR(1,14215393,1,1,2) [2025-01-10 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215393', 'tblTempUsageDetail_20' ) start [2025-01-10 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215393', 'tblTempUsageDetail_20' ) end [2025-01-10 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:29:22] Production.INFO: ==24437== Releasing lock... [2025-01-10 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:29:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:30:06 [end_date_ymd] => 2025-01-10 07:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 04:30:06' and `end` < '2025-01-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-01-10 07:30:20] Production.INFO: count ==54 [2025-01-10 07:30:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:30:06 - End Time 2025-01-10 07:30:06 [2025-01-10 07:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215399', 'tblTempUsageDetail_20' ) start [2025-01-10 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215399', 'tblTempUsageDetail_20' ) end [2025-01-10 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215399', 'tblTempVendorCDR_20' ) start [2025-01-10 07:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215399', 'tblTempVendorCDR_20' ) end [2025-01-10 07:30:20] Production.INFO: ProcessCDR(1,14215399,1,1,2) [2025-01-10 07:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215399', 'tblTempUsageDetail_20' ) start [2025-01-10 07:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215399', 'tblTempUsageDetail_20' ) end [2025-01-10 07:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:30:24] Production.INFO: ==24520== Releasing lock... [2025-01-10 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:30:24] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:31:05 [end_date_ymd] => 2025-01-10 07:31:05 [RateCDR] => 1 ) [2025-01-10 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:31:05' and `end` < '2025-01-10 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:31:18] Production.INFO: count ==54 [2025-01-10 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:31:05 - End Time 2025-01-10 07:31:05 [2025-01-10 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215404', 'tblTempUsageDetail_20' ) start [2025-01-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215404', 'tblTempUsageDetail_20' ) end [2025-01-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215404', 'tblTempVendorCDR_20' ) start [2025-01-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215404', 'tblTempVendorCDR_20' ) end [2025-01-10 07:31:18] Production.INFO: ProcessCDR(1,14215404,1,1,2) [2025-01-10 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215404', 'tblTempUsageDetail_20' ) start [2025-01-10 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215404', 'tblTempUsageDetail_20' ) end [2025-01-10 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:31:21] Production.INFO: ==24607== Releasing lock... [2025-01-10 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:32:05 [end_date_ymd] => 2025-01-10 07:32:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:32:05' and `end` < '2025-01-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-01-10 07:32:19] Production.INFO: count ==55 [2025-01-10 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:32:05 - End Time 2025-01-10 07:32:05 [2025-01-10 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215409', 'tblTempUsageDetail_20' ) start [2025-01-10 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215409', 'tblTempUsageDetail_20' ) end [2025-01-10 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215409', 'tblTempVendorCDR_20' ) start [2025-01-10 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215409', 'tblTempVendorCDR_20' ) end [2025-01-10 07:32:19] Production.INFO: ProcessCDR(1,14215409,1,1,2) [2025-01-10 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215409', 'tblTempUsageDetail_20' ) start [2025-01-10 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215409', 'tblTempUsageDetail_20' ) end [2025-01-10 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:32:22] Production.INFO: ==24686== Releasing lock... [2025-01-10 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:33:05 [end_date_ymd] => 2025-01-10 07:33:05 [RateCDR] => 1 ) [2025-01-10 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:33:05' and `end` < '2025-01-10 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:33:18] Production.INFO: count ==60 [2025-01-10 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:33:05 - End Time 2025-01-10 07:33:05 [2025-01-10 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215414', 'tblTempUsageDetail_20' ) start [2025-01-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215414', 'tblTempUsageDetail_20' ) end [2025-01-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215414', 'tblTempVendorCDR_20' ) start [2025-01-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215414', 'tblTempVendorCDR_20' ) end [2025-01-10 07:33:18] Production.INFO: ProcessCDR(1,14215414,1,1,2) [2025-01-10 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215414', 'tblTempUsageDetail_20' ) start [2025-01-10 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215414', 'tblTempUsageDetail_20' ) end [2025-01-10 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:33:21] Production.INFO: ==24763== Releasing lock... [2025-01-10 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:34:05 [end_date_ymd] => 2025-01-10 07:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:34:05' and `end` < '2025-01-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-01-10 07:34:18] Production.INFO: count ==60 [2025-01-10 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:34:05 - End Time 2025-01-10 07:34:05 [2025-01-10 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215419', 'tblTempUsageDetail_20' ) start [2025-01-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215419', 'tblTempUsageDetail_20' ) end [2025-01-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215419', 'tblTempVendorCDR_20' ) start [2025-01-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215419', 'tblTempVendorCDR_20' ) end [2025-01-10 07:34:18] Production.INFO: ProcessCDR(1,14215419,1,1,2) [2025-01-10 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215419', 'tblTempUsageDetail_20' ) start [2025-01-10 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215419', 'tblTempUsageDetail_20' ) end [2025-01-10 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:34:22] Production.INFO: ==24896== Releasing lock... [2025-01-10 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:35:05 [end_date_ymd] => 2025-01-10 07:35:05 [RateCDR] => 1 ) [2025-01-10 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:35:05' and `end` < '2025-01-10 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:35:18] Production.INFO: count ==60 [2025-01-10 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:35:05 - End Time 2025-01-10 07:35:05 [2025-01-10 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215424', 'tblTempUsageDetail_20' ) start [2025-01-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215424', 'tblTempUsageDetail_20' ) end [2025-01-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215424', 'tblTempVendorCDR_20' ) start [2025-01-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215424', 'tblTempVendorCDR_20' ) end [2025-01-10 07:35:18] Production.INFO: ProcessCDR(1,14215424,1,1,2) [2025-01-10 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215424', 'tblTempUsageDetail_20' ) start [2025-01-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215424', 'tblTempUsageDetail_20' ) end [2025-01-10 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:35:21] Production.INFO: ==24971== Releasing lock... [2025-01-10 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:36:05 [end_date_ymd] => 2025-01-10 07:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:36:05' and `end` < '2025-01-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-01-10 07:36:18] Production.INFO: count ==62 [2025-01-10 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:36:05 - End Time 2025-01-10 07:36:05 [2025-01-10 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215429', 'tblTempUsageDetail_20' ) start [2025-01-10 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215429', 'tblTempUsageDetail_20' ) end [2025-01-10 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215429', 'tblTempVendorCDR_20' ) start [2025-01-10 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215429', 'tblTempVendorCDR_20' ) end [2025-01-10 07:36:18] Production.INFO: ProcessCDR(1,14215429,1,1,2) [2025-01-10 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215429', 'tblTempUsageDetail_20' ) start [2025-01-10 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215429', 'tblTempUsageDetail_20' ) end [2025-01-10 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:36:21] Production.INFO: ==25047== Releasing lock... [2025-01-10 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:37:04 [end_date_ymd] => 2025-01-10 07:37:04 [RateCDR] => 1 ) [2025-01-10 07:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:37:04' and `end` < '2025-01-10 07:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:37:18] Production.INFO: count ==62 [2025-01-10 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:37:04 - End Time 2025-01-10 07:37:04 [2025-01-10 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215434', 'tblTempUsageDetail_20' ) start [2025-01-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215434', 'tblTempUsageDetail_20' ) end [2025-01-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215434', 'tblTempVendorCDR_20' ) start [2025-01-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215434', 'tblTempVendorCDR_20' ) end [2025-01-10 07:37:18] Production.INFO: ProcessCDR(1,14215434,1,1,2) [2025-01-10 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215434', 'tblTempUsageDetail_20' ) start [2025-01-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215434', 'tblTempUsageDetail_20' ) end [2025-01-10 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:37:21] Production.INFO: ==25122== Releasing lock... [2025-01-10 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:38:05 [end_date_ymd] => 2025-01-10 07:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:38:05' and `end` < '2025-01-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-01-10 07:38:18] Production.INFO: count ==68 [2025-01-10 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:38:05 - End Time 2025-01-10 07:38:05 [2025-01-10 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215439', 'tblTempUsageDetail_20' ) start [2025-01-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215439', 'tblTempUsageDetail_20' ) end [2025-01-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215439', 'tblTempVendorCDR_20' ) start [2025-01-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215439', 'tblTempVendorCDR_20' ) end [2025-01-10 07:38:18] Production.INFO: ProcessCDR(1,14215439,1,1,2) [2025-01-10 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215439', 'tblTempUsageDetail_20' ) start [2025-01-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215439', 'tblTempUsageDetail_20' ) end [2025-01-10 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:38:21] Production.INFO: ==25193== Releasing lock... [2025-01-10 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:39:04 [end_date_ymd] => 2025-01-10 07:39:04 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:39:04' and `end` < '2025-01-10 07: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-01-10 07:39:17] Production.INFO: count ==69 [2025-01-10 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-10 04:39:04 - End Time 2025-01-10 07:39:04 [2025-01-10 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215444', 'tblTempUsageDetail_20' ) start [2025-01-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215444', 'tblTempUsageDetail_20' ) end [2025-01-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215444', 'tblTempVendorCDR_20' ) start [2025-01-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215444', 'tblTempVendorCDR_20' ) end [2025-01-10 07:39:17] Production.INFO: ProcessCDR(1,14215444,1,1,2) [2025-01-10 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215444', 'tblTempUsageDetail_20' ) start [2025-01-10 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215444', 'tblTempUsageDetail_20' ) end [2025-01-10 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:39:20] Production.INFO: ==25270== Releasing lock... [2025-01-10 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-10 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:40:05 [end_date_ymd] => 2025-01-10 07:40:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:40:05' and `end` < '2025-01-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-01-10 07:40:20] Production.INFO: count ==76 [2025-01-10 07:40:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:40:05 - End Time 2025-01-10 07:40:05 [2025-01-10 07:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215450', 'tblTempUsageDetail_20' ) start [2025-01-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215450', 'tblTempUsageDetail_20' ) end [2025-01-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215450', 'tblTempVendorCDR_20' ) start [2025-01-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215450', 'tblTempVendorCDR_20' ) end [2025-01-10 07:40:20] Production.INFO: ProcessCDR(1,14215450,1,1,2) [2025-01-10 07:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215450', 'tblTempUsageDetail_20' ) start [2025-01-10 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215450', 'tblTempUsageDetail_20' ) end [2025-01-10 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:40:23] Production.INFO: ==25344== Releasing lock... [2025-01-10 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:41:04 [end_date_ymd] => 2025-01-10 07:41:04 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:41:04' and `end` < '2025-01-10 07: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-01-10 07:41:17] Production.INFO: count ==78 [2025-01-10 07:41:17] Production.ERROR: pbx CDR StartTime 2025-01-10 04:41:04 - End Time 2025-01-10 07:41:04 [2025-01-10 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215455', 'tblTempUsageDetail_20' ) start [2025-01-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215455', 'tblTempUsageDetail_20' ) end [2025-01-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215455', 'tblTempVendorCDR_20' ) start [2025-01-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215455', 'tblTempVendorCDR_20' ) end [2025-01-10 07:41:17] Production.INFO: ProcessCDR(1,14215455,1,1,2) [2025-01-10 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215455', 'tblTempUsageDetail_20' ) start [2025-01-10 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215455', 'tblTempUsageDetail_20' ) end [2025-01-10 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:41:20] Production.INFO: ==25417== Releasing lock... [2025-01-10 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:42:05 [end_date_ymd] => 2025-01-10 07:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:42:05' and `end` < '2025-01-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-01-10 07:42:18] Production.INFO: count ==78 [2025-01-10 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:42:05 - End Time 2025-01-10 07:42:05 [2025-01-10 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215460', 'tblTempUsageDetail_20' ) start [2025-01-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215460', 'tblTempUsageDetail_20' ) end [2025-01-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215460', 'tblTempVendorCDR_20' ) start [2025-01-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215460', 'tblTempVendorCDR_20' ) end [2025-01-10 07:42:18] Production.INFO: ProcessCDR(1,14215460,1,1,2) [2025-01-10 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215460', 'tblTempUsageDetail_20' ) start [2025-01-10 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215460', 'tblTempUsageDetail_20' ) end [2025-01-10 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:42:21] Production.INFO: ==25488== Releasing lock... [2025-01-10 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:43:05 [end_date_ymd] => 2025-01-10 07:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:43:05' and `end` < '2025-01-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-01-10 07:43:19] Production.INFO: count ==79 [2025-01-10 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:43:05 - End Time 2025-01-10 07:43:05 [2025-01-10 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215465', 'tblTempUsageDetail_20' ) start [2025-01-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215465', 'tblTempUsageDetail_20' ) end [2025-01-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215465', 'tblTempVendorCDR_20' ) start [2025-01-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215465', 'tblTempVendorCDR_20' ) end [2025-01-10 07:43:19] Production.INFO: ProcessCDR(1,14215465,1,1,2) [2025-01-10 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215465', 'tblTempUsageDetail_20' ) start [2025-01-10 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215465', 'tblTempUsageDetail_20' ) end [2025-01-10 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:43:23] Production.INFO: ==25558== Releasing lock... [2025-01-10 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:43:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:44:05 [end_date_ymd] => 2025-01-10 07:44:05 [RateCDR] => 1 ) [2025-01-10 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:44:05' and `end` < '2025-01-10 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:44:18] Production.INFO: count ==84 [2025-01-10 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:44:05 - End Time 2025-01-10 07:44:05 [2025-01-10 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215470', 'tblTempUsageDetail_20' ) start [2025-01-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215470', 'tblTempUsageDetail_20' ) end [2025-01-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215470', 'tblTempVendorCDR_20' ) start [2025-01-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215470', 'tblTempVendorCDR_20' ) end [2025-01-10 07:44:18] Production.INFO: ProcessCDR(1,14215470,1,1,2) [2025-01-10 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215470', 'tblTempUsageDetail_20' ) start [2025-01-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215470', 'tblTempUsageDetail_20' ) end [2025-01-10 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:44:21] Production.INFO: ==25628== Releasing lock... [2025-01-10 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:45:05 [end_date_ymd] => 2025-01-10 07:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:45:05' and `end` < '2025-01-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-01-10 07:45:18] Production.INFO: count ==84 [2025-01-10 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:45:05 - End Time 2025-01-10 07:45:05 [2025-01-10 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215475', 'tblTempUsageDetail_20' ) start [2025-01-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215475', 'tblTempUsageDetail_20' ) end [2025-01-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215475', 'tblTempVendorCDR_20' ) start [2025-01-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215475', 'tblTempVendorCDR_20' ) end [2025-01-10 07:45:18] Production.INFO: ProcessCDR(1,14215475,1,1,2) [2025-01-10 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215475', 'tblTempUsageDetail_20' ) start [2025-01-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215475', 'tblTempUsageDetail_20' ) end [2025-01-10 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:45:21] Production.INFO: ==25700== Releasing lock... [2025-01-10 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:46:05 [end_date_ymd] => 2025-01-10 07:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:46:05' and `end` < '2025-01-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-01-10 07:46:19] Production.INFO: count ==84 [2025-01-10 07:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:46:05 - End Time 2025-01-10 07:46:05 [2025-01-10 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215480', 'tblTempUsageDetail_20' ) start [2025-01-10 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215480', 'tblTempUsageDetail_20' ) end [2025-01-10 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215480', 'tblTempVendorCDR_20' ) start [2025-01-10 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215480', 'tblTempVendorCDR_20' ) end [2025-01-10 07:46:19] Production.INFO: ProcessCDR(1,14215480,1,1,2) [2025-01-10 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215480', 'tblTempUsageDetail_20' ) start [2025-01-10 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215480', 'tblTempUsageDetail_20' ) end [2025-01-10 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:46:22] Production.INFO: ==25770== Releasing lock... [2025-01-10 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:47:05 [end_date_ymd] => 2025-01-10 07:47:05 [RateCDR] => 1 ) [2025-01-10 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:47:05' and `end` < '2025-01-10 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:47:19] Production.INFO: count ==84 [2025-01-10 07:47:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:47:05 - End Time 2025-01-10 07:47:05 [2025-01-10 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215485', 'tblTempUsageDetail_20' ) start [2025-01-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215485', 'tblTempUsageDetail_20' ) end [2025-01-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215485', 'tblTempVendorCDR_20' ) start [2025-01-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215485', 'tblTempVendorCDR_20' ) end [2025-01-10 07:47:19] Production.INFO: ProcessCDR(1,14215485,1,1,2) [2025-01-10 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215485', 'tblTempUsageDetail_20' ) start [2025-01-10 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215485', 'tblTempUsageDetail_20' ) end [2025-01-10 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:47:22] Production.INFO: ==25841== Releasing lock... [2025-01-10 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:48:05 [end_date_ymd] => 2025-01-10 07:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:48:05' and `end` < '2025-01-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-01-10 07:48:19] Production.INFO: count ==84 [2025-01-10 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:48:05 - End Time 2025-01-10 07:48:05 [2025-01-10 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215490', 'tblTempUsageDetail_20' ) start [2025-01-10 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215490', 'tblTempUsageDetail_20' ) end [2025-01-10 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215490', 'tblTempVendorCDR_20' ) start [2025-01-10 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215490', 'tblTempVendorCDR_20' ) end [2025-01-10 07:48:19] Production.INFO: ProcessCDR(1,14215490,1,1,2) [2025-01-10 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215490', 'tblTempUsageDetail_20' ) start [2025-01-10 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215490', 'tblTempUsageDetail_20' ) end [2025-01-10 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:48:22] Production.INFO: ==25912== Releasing lock... [2025-01-10 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:49:05 [end_date_ymd] => 2025-01-10 07:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:49:05' and `end` < '2025-01-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-01-10 07:49:18] Production.INFO: count ==84 [2025-01-10 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:49:05 - End Time 2025-01-10 07:49:05 [2025-01-10 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215495', 'tblTempUsageDetail_20' ) start [2025-01-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215495', 'tblTempUsageDetail_20' ) end [2025-01-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215495', 'tblTempVendorCDR_20' ) start [2025-01-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215495', 'tblTempVendorCDR_20' ) end [2025-01-10 07:49:18] Production.INFO: ProcessCDR(1,14215495,1,1,2) [2025-01-10 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215495', 'tblTempUsageDetail_20' ) start [2025-01-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215495', 'tblTempUsageDetail_20' ) end [2025-01-10 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:49:21] Production.INFO: ==26023== Releasing lock... [2025-01-10 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:50:06 [end_date_ymd] => 2025-01-10 07:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 04:50:06' and `end` < '2025-01-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-01-10 07:50:19] Production.INFO: count ==91 [2025-01-10 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:50:06 - End Time 2025-01-10 07:50:06 [2025-01-10 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215501', 'tblTempUsageDetail_20' ) start [2025-01-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215501', 'tblTempUsageDetail_20' ) end [2025-01-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215501', 'tblTempVendorCDR_20' ) start [2025-01-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215501', 'tblTempVendorCDR_20' ) end [2025-01-10 07:50:19] Production.INFO: ProcessCDR(1,14215501,1,1,2) [2025-01-10 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215501', 'tblTempUsageDetail_20' ) start [2025-01-10 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215501', 'tblTempUsageDetail_20' ) end [2025-01-10 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:50:22] Production.INFO: ==26096== Releasing lock... [2025-01-10 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-10 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:51:04 [end_date_ymd] => 2025-01-10 07:51:04 [RateCDR] => 1 ) [2025-01-10 07: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-01-10 04:51:04' and `end` < '2025-01-10 07: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-01-10 07:51:20] Production.INFO: count ==104 [2025-01-10 07:51:20] Production.ERROR: pbx CDR StartTime 2025-01-10 04:51:04 - End Time 2025-01-10 07:51:04 [2025-01-10 07:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215506', 'tblTempUsageDetail_20' ) start [2025-01-10 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215506', 'tblTempUsageDetail_20' ) end [2025-01-10 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215506', 'tblTempVendorCDR_20' ) start [2025-01-10 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215506', 'tblTempVendorCDR_20' ) end [2025-01-10 07:51:20] Production.INFO: ProcessCDR(1,14215506,1,1,2) [2025-01-10 07:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215506', 'tblTempUsageDetail_20' ) start [2025-01-10 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215506', 'tblTempUsageDetail_20' ) end [2025-01-10 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:51:23] Production.INFO: ==26169== Releasing lock... [2025-01-10 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:51:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:52:06 [end_date_ymd] => 2025-01-10 07:52:06 [RateCDR] => 1 ) [2025-01-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-01-10 04:52:06' and `end` < '2025-01-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-01-10 07:52:19] Production.INFO: count ==104 [2025-01-10 07:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:52:06 - End Time 2025-01-10 07:52:06 [2025-01-10 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215511', 'tblTempUsageDetail_20' ) start [2025-01-10 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215511', 'tblTempUsageDetail_20' ) end [2025-01-10 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215511', 'tblTempVendorCDR_20' ) start [2025-01-10 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215511', 'tblTempVendorCDR_20' ) end [2025-01-10 07:52:19] Production.INFO: ProcessCDR(1,14215511,1,1,2) [2025-01-10 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215511', 'tblTempUsageDetail_20' ) start [2025-01-10 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215511', 'tblTempUsageDetail_20' ) end [2025-01-10 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:52:22] Production.INFO: ==26241== Releasing lock... [2025-01-10 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:53:05 [end_date_ymd] => 2025-01-10 07:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:53:05' and `end` < '2025-01-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-01-10 07:53:21] Production.INFO: count ==104 [2025-01-10 07:53:21] Production.ERROR: pbx CDR StartTime 2025-01-10 04:53:05 - End Time 2025-01-10 07:53:05 [2025-01-10 07:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215516', 'tblTempUsageDetail_20' ) start [2025-01-10 07:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215516', 'tblTempUsageDetail_20' ) end [2025-01-10 07:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215516', 'tblTempVendorCDR_20' ) start [2025-01-10 07:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215516', 'tblTempVendorCDR_20' ) end [2025-01-10 07:53:21] Production.INFO: ProcessCDR(1,14215516,1,1,2) [2025-01-10 07:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215516', 'tblTempUsageDetail_20' ) start [2025-01-10 07:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215516', 'tblTempUsageDetail_20' ) end [2025-01-10 07:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:53:24] Production.INFO: ==26317== Releasing lock... [2025-01-10 07:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:53:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:54:05 [end_date_ymd] => 2025-01-10 07:54:05 [RateCDR] => 1 ) [2025-01-10 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:54:05' and `end` < '2025-01-10 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:54:18] Production.INFO: count ==104 [2025-01-10 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:54:05 - End Time 2025-01-10 07:54:05 [2025-01-10 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215521', 'tblTempUsageDetail_20' ) start [2025-01-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215521', 'tblTempUsageDetail_20' ) end [2025-01-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215521', 'tblTempVendorCDR_20' ) start [2025-01-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215521', 'tblTempVendorCDR_20' ) end [2025-01-10 07:54:18] Production.INFO: ProcessCDR(1,14215521,1,1,2) [2025-01-10 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215521', 'tblTempUsageDetail_20' ) start [2025-01-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215521', 'tblTempUsageDetail_20' ) end [2025-01-10 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:54:21] Production.INFO: ==26387== Releasing lock... [2025-01-10 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:55:05 [end_date_ymd] => 2025-01-10 07:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:55:05' and `end` < '2025-01-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-01-10 07:55:18] Production.INFO: count ==104 [2025-01-10 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:55:05 - End Time 2025-01-10 07:55:05 [2025-01-10 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215526', 'tblTempUsageDetail_20' ) start [2025-01-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215526', 'tblTempUsageDetail_20' ) end [2025-01-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215526', 'tblTempVendorCDR_20' ) start [2025-01-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215526', 'tblTempVendorCDR_20' ) end [2025-01-10 07:55:18] Production.INFO: ProcessCDR(1,14215526,1,1,2) [2025-01-10 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215526', 'tblTempUsageDetail_20' ) start [2025-01-10 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215526', 'tblTempUsageDetail_20' ) end [2025-01-10 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:55:21] Production.INFO: ==26455== Releasing lock... [2025-01-10 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:56:05 [end_date_ymd] => 2025-01-10 07:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:56:05' and `end` < '2025-01-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-01-10 07:56:19] Production.INFO: count ==107 [2025-01-10 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:56:05 - End Time 2025-01-10 07:56:05 [2025-01-10 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215531', 'tblTempUsageDetail_20' ) start [2025-01-10 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215531', 'tblTempUsageDetail_20' ) end [2025-01-10 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215531', 'tblTempVendorCDR_20' ) start [2025-01-10 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215531', 'tblTempVendorCDR_20' ) end [2025-01-10 07:56:19] Production.INFO: ProcessCDR(1,14215531,1,1,2) [2025-01-10 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215531', 'tblTempUsageDetail_20' ) start [2025-01-10 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215531', 'tblTempUsageDetail_20' ) end [2025-01-10 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:56:23] Production.INFO: ==26526== Releasing lock... [2025-01-10 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:57:04 [end_date_ymd] => 2025-01-10 07:57:04 [RateCDR] => 1 ) [2025-01-10 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 04:57:04' and `end` < '2025-01-10 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 07:57:17] Production.INFO: count ==107 [2025-01-10 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-10 04:57:04 - End Time 2025-01-10 07:57:04 [2025-01-10 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215536', 'tblTempUsageDetail_20' ) start [2025-01-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215536', 'tblTempUsageDetail_20' ) end [2025-01-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215536', 'tblTempVendorCDR_20' ) start [2025-01-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215536', 'tblTempVendorCDR_20' ) end [2025-01-10 07:57:17] Production.INFO: ProcessCDR(1,14215536,1,1,2) [2025-01-10 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215536', 'tblTempUsageDetail_20' ) start [2025-01-10 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215536', 'tblTempUsageDetail_20' ) end [2025-01-10 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:57:20] Production.INFO: ==26596== Releasing lock... [2025-01-10 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:58:05 [end_date_ymd] => 2025-01-10 07:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:58:05' and `end` < '2025-01-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-01-10 07:58:19] Production.INFO: count ==107 [2025-01-10 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-10 04:58:05 - End Time 2025-01-10 07:58:05 [2025-01-10 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215541', 'tblTempUsageDetail_20' ) start [2025-01-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215541', 'tblTempUsageDetail_20' ) end [2025-01-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215541', 'tblTempVendorCDR_20' ) start [2025-01-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215541', 'tblTempVendorCDR_20' ) end [2025-01-10 07:58:19] Production.INFO: ProcessCDR(1,14215541,1,1,2) [2025-01-10 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215541', 'tblTempUsageDetail_20' ) start [2025-01-10 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215541', 'tblTempUsageDetail_20' ) end [2025-01-10 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:58:22] Production.INFO: ==26667== Releasing lock... [2025-01-10 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 04:59:05 [end_date_ymd] => 2025-01-10 07:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 04:59:05' and `end` < '2025-01-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-01-10 07:59:18] Production.INFO: count ==107 [2025-01-10 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 04:59:05 - End Time 2025-01-10 07:59:05 [2025-01-10 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215546', 'tblTempUsageDetail_20' ) start [2025-01-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215546', 'tblTempUsageDetail_20' ) end [2025-01-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215546', 'tblTempVendorCDR_20' ) start [2025-01-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215546', 'tblTempVendorCDR_20' ) end [2025-01-10 07:59:18] Production.INFO: ProcessCDR(1,14215546,1,1,2) [2025-01-10 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215546', 'tblTempUsageDetail_20' ) start [2025-01-10 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215546', 'tblTempUsageDetail_20' ) end [2025-01-10 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 07:59:21] Production.INFO: ==26738== Releasing lock... [2025-01-10 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:00:06 [end_date_ymd] => 2025-01-10 08:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 05:00:06' and `end` < '2025-01-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-01-10 08:00:19] Production.INFO: count ==113 [2025-01-10 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:00:06 - End Time 2025-01-10 08:00:06 [2025-01-10 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215552', 'tblTempUsageDetail_20' ) start [2025-01-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215552', 'tblTempUsageDetail_20' ) end [2025-01-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215552', 'tblTempVendorCDR_20' ) start [2025-01-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215552', 'tblTempVendorCDR_20' ) end [2025-01-10 08:00:19] Production.INFO: ProcessCDR(1,14215552,1,1,2) [2025-01-10 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215552', 'tblTempUsageDetail_20' ) start [2025-01-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215552', 'tblTempUsageDetail_20' ) end [2025-01-10 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:00:22] Production.INFO: ==26810== Releasing lock... [2025-01-10 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:01:04 [end_date_ymd] => 2025-01-10 08:01:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:01:04' and `end` < '2025-01-10 08: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-01-10 08:01:18] Production.INFO: count ==117 [2025-01-10 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:01:04 - End Time 2025-01-10 08:01:04 [2025-01-10 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215557', 'tblTempUsageDetail_20' ) start [2025-01-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215557', 'tblTempUsageDetail_20' ) end [2025-01-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215557', 'tblTempVendorCDR_20' ) start [2025-01-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215557', 'tblTempVendorCDR_20' ) end [2025-01-10 08:01:18] Production.INFO: ProcessCDR(1,14215557,1,1,2) [2025-01-10 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215557', 'tblTempUsageDetail_20' ) start [2025-01-10 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215557', 'tblTempUsageDetail_20' ) end [2025-01-10 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:01:22] Production.INFO: ==26897== Releasing lock... [2025-01-10 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-10 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:02:05 [end_date_ymd] => 2025-01-10 08:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:02:05' and `end` < '2025-01-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-01-10 08:02:18] Production.INFO: count ==129 [2025-01-10 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:02:05 - End Time 2025-01-10 08:02:05 [2025-01-10 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215562', 'tblTempUsageDetail_20' ) start [2025-01-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215562', 'tblTempUsageDetail_20' ) end [2025-01-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215562', 'tblTempVendorCDR_20' ) start [2025-01-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215562', 'tblTempVendorCDR_20' ) end [2025-01-10 08:02:18] Production.INFO: ProcessCDR(1,14215562,1,1,2) [2025-01-10 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215562', 'tblTempUsageDetail_20' ) start [2025-01-10 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215562', 'tblTempUsageDetail_20' ) end [2025-01-10 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:02:21] Production.INFO: ==26968== Releasing lock... [2025-01-10 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:03:05 [end_date_ymd] => 2025-01-10 08:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:03:05' and `end` < '2025-01-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-01-10 08:03:18] Production.INFO: count ==132 [2025-01-10 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:03:05 - End Time 2025-01-10 08:03:05 [2025-01-10 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215567', 'tblTempUsageDetail_20' ) start [2025-01-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215567', 'tblTempUsageDetail_20' ) end [2025-01-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215567', 'tblTempVendorCDR_20' ) start [2025-01-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215567', 'tblTempVendorCDR_20' ) end [2025-01-10 08:03:18] Production.INFO: ProcessCDR(1,14215567,1,1,2) [2025-01-10 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215567', 'tblTempUsageDetail_20' ) start [2025-01-10 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215567', 'tblTempUsageDetail_20' ) end [2025-01-10 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:03:22] Production.INFO: ==27048== Releasing lock... [2025-01-10 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:04:05 [end_date_ymd] => 2025-01-10 08:04:05 [RateCDR] => 1 ) [2025-01-10 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:04:05' and `end` < '2025-01-10 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:04:19] Production.INFO: count ==139 [2025-01-10 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:04:05 - End Time 2025-01-10 08:04:05 [2025-01-10 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215572', 'tblTempUsageDetail_20' ) start [2025-01-10 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215572', 'tblTempUsageDetail_20' ) end [2025-01-10 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215572', 'tblTempVendorCDR_20' ) start [2025-01-10 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215572', 'tblTempVendorCDR_20' ) end [2025-01-10 08:04:19] Production.INFO: ProcessCDR(1,14215572,1,1,2) [2025-01-10 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215572', 'tblTempUsageDetail_20' ) start [2025-01-10 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215572', 'tblTempUsageDetail_20' ) end [2025-01-10 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:04:22] Production.INFO: ==27122== Releasing lock... [2025-01-10 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:05:05 [end_date_ymd] => 2025-01-10 08:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:05:05' and `end` < '2025-01-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-01-10 08:05:18] Production.INFO: count ==144 [2025-01-10 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:05:05 - End Time 2025-01-10 08:05:05 [2025-01-10 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215577', 'tblTempUsageDetail_20' ) start [2025-01-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215577', 'tblTempUsageDetail_20' ) end [2025-01-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215577', 'tblTempVendorCDR_20' ) start [2025-01-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215577', 'tblTempVendorCDR_20' ) end [2025-01-10 08:05:18] Production.INFO: ProcessCDR(1,14215577,1,1,2) [2025-01-10 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215577', 'tblTempUsageDetail_20' ) start [2025-01-10 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215577', 'tblTempUsageDetail_20' ) end [2025-01-10 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:05:21] Production.INFO: ==27234== Releasing lock... [2025-01-10 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-10 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:06:04 [end_date_ymd] => 2025-01-10 08:06:04 [RateCDR] => 1 ) [2025-01-10 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:06:04' and `end` < '2025-01-10 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:06:17] Production.INFO: count ==147 [2025-01-10 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:06:04 - End Time 2025-01-10 08:06:04 [2025-01-10 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215582', 'tblTempUsageDetail_20' ) start [2025-01-10 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215582', 'tblTempUsageDetail_20' ) end [2025-01-10 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215582', 'tblTempVendorCDR_20' ) start [2025-01-10 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215582', 'tblTempVendorCDR_20' ) end [2025-01-10 08:06:17] Production.INFO: ProcessCDR(1,14215582,1,1,2) [2025-01-10 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215582', 'tblTempUsageDetail_20' ) start [2025-01-10 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215582', 'tblTempUsageDetail_20' ) end [2025-01-10 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:06:22] Production.INFO: ==27313== Releasing lock... [2025-01-10 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:07:04 [end_date_ymd] => 2025-01-10 08:07:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:07:04' and `end` < '2025-01-10 08: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-01-10 08:07:18] Production.INFO: count ==155 [2025-01-10 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:07:04 - End Time 2025-01-10 08:07:04 [2025-01-10 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215587', 'tblTempUsageDetail_20' ) start [2025-01-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215587', 'tblTempUsageDetail_20' ) end [2025-01-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215587', 'tblTempVendorCDR_20' ) start [2025-01-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215587', 'tblTempVendorCDR_20' ) end [2025-01-10 08:07:18] Production.INFO: ProcessCDR(1,14215587,1,1,2) [2025-01-10 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215587', 'tblTempUsageDetail_20' ) start [2025-01-10 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215587', 'tblTempUsageDetail_20' ) end [2025-01-10 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:07:23] Production.INFO: ==27389== Releasing lock... [2025-01-10 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-10 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:08:04 [end_date_ymd] => 2025-01-10 08:08:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:08:04' and `end` < '2025-01-10 08: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-01-10 08:08:17] Production.INFO: count ==166 [2025-01-10 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:08:04 - End Time 2025-01-10 08:08:04 [2025-01-10 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215592', 'tblTempUsageDetail_20' ) start [2025-01-10 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215592', 'tblTempUsageDetail_20' ) end [2025-01-10 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215592', 'tblTempVendorCDR_20' ) start [2025-01-10 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215592', 'tblTempVendorCDR_20' ) end [2025-01-10 08:08:17] Production.INFO: ProcessCDR(1,14215592,1,1,2) [2025-01-10 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215592', 'tblTempUsageDetail_20' ) start [2025-01-10 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215592', 'tblTempUsageDetail_20' ) end [2025-01-10 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:08:21] Production.INFO: ==27465== Releasing lock... [2025-01-10 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:09:05 [end_date_ymd] => 2025-01-10 08:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:09:05' and `end` < '2025-01-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-01-10 08:09:18] Production.INFO: count ==172 [2025-01-10 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:09:05 - End Time 2025-01-10 08:09:05 [2025-01-10 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215597', 'tblTempUsageDetail_20' ) start [2025-01-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215597', 'tblTempUsageDetail_20' ) end [2025-01-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215597', 'tblTempVendorCDR_20' ) start [2025-01-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215597', 'tblTempVendorCDR_20' ) end [2025-01-10 08:09:18] Production.INFO: ProcessCDR(1,14215597,1,1,2) [2025-01-10 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215597', 'tblTempUsageDetail_20' ) start [2025-01-10 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215597', 'tblTempUsageDetail_20' ) end [2025-01-10 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:09:21] Production.INFO: ==27540== Releasing lock... [2025-01-10 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:10:05 [end_date_ymd] => 2025-01-10 08:10:05 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:10:05' and `end` < '2025-01-10 08: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-01-10 08:10:19] Production.INFO: count ==178 [2025-01-10 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:10:05 - End Time 2025-01-10 08:10:05 [2025-01-10 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215603', 'tblTempUsageDetail_20' ) start [2025-01-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215603', 'tblTempUsageDetail_20' ) end [2025-01-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215603', 'tblTempVendorCDR_20' ) start [2025-01-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215603', 'tblTempVendorCDR_20' ) end [2025-01-10 08:10:19] Production.INFO: ProcessCDR(1,14215603,1,1,2) [2025-01-10 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215603', 'tblTempUsageDetail_20' ) start [2025-01-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215603', 'tblTempUsageDetail_20' ) end [2025-01-10 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:10:22] Production.INFO: ==27613== Releasing lock... [2025-01-10 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:11:04 [end_date_ymd] => 2025-01-10 08:11:04 [RateCDR] => 1 ) [2025-01-10 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:11:04' and `end` < '2025-01-10 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:11:18] Production.INFO: count ==196 [2025-01-10 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:11:04 - End Time 2025-01-10 08:11:04 [2025-01-10 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215608', 'tblTempUsageDetail_20' ) start [2025-01-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215608', 'tblTempUsageDetail_20' ) end [2025-01-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215608', 'tblTempVendorCDR_20' ) start [2025-01-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215608', 'tblTempVendorCDR_20' ) end [2025-01-10 08:11:18] Production.INFO: ProcessCDR(1,14215608,1,1,2) [2025-01-10 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215608', 'tblTempUsageDetail_20' ) start [2025-01-10 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215608', 'tblTempUsageDetail_20' ) end [2025-01-10 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:11:22] Production.INFO: ==27698== Releasing lock... [2025-01-10 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-10 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:12:05 [end_date_ymd] => 2025-01-10 08:12:05 [RateCDR] => 1 ) [2025-01-10 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:12:05' and `end` < '2025-01-10 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:12:18] Production.INFO: count ==202 [2025-01-10 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:12:05 - End Time 2025-01-10 08:12:05 [2025-01-10 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215613', 'tblTempUsageDetail_20' ) start [2025-01-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215613', 'tblTempUsageDetail_20' ) end [2025-01-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215613', 'tblTempVendorCDR_20' ) start [2025-01-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215613', 'tblTempVendorCDR_20' ) end [2025-01-10 08:12:18] Production.INFO: ProcessCDR(1,14215613,1,1,2) [2025-01-10 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215613', 'tblTempUsageDetail_20' ) start [2025-01-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215613', 'tblTempUsageDetail_20' ) end [2025-01-10 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:12:21] Production.INFO: ==27774== Releasing lock... [2025-01-10 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-10 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:13:04 [end_date_ymd] => 2025-01-10 08:13:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:13:04' and `end` < '2025-01-10 08: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-01-10 08:13:18] Production.INFO: count ==202 [2025-01-10 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:13:04 - End Time 2025-01-10 08:13:04 [2025-01-10 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215618', 'tblTempUsageDetail_20' ) start [2025-01-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215618', 'tblTempUsageDetail_20' ) end [2025-01-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215618', 'tblTempVendorCDR_20' ) start [2025-01-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215618', 'tblTempVendorCDR_20' ) end [2025-01-10 08:13:18] Production.INFO: ProcessCDR(1,14215618,1,1,2) [2025-01-10 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215618', 'tblTempUsageDetail_20' ) start [2025-01-10 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215618', 'tblTempUsageDetail_20' ) end [2025-01-10 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:13:21] Production.INFO: ==27850== Releasing lock... [2025-01-10 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-10 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:14:05 [end_date_ymd] => 2025-01-10 08:14:05 [RateCDR] => 1 ) [2025-01-10 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:14:05' and `end` < '2025-01-10 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:14:19] Production.INFO: count ==208 [2025-01-10 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:14:05 - End Time 2025-01-10 08:14:05 [2025-01-10 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215623', 'tblTempUsageDetail_20' ) start [2025-01-10 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215623', 'tblTempUsageDetail_20' ) end [2025-01-10 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215623', 'tblTempVendorCDR_20' ) start [2025-01-10 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215623', 'tblTempVendorCDR_20' ) end [2025-01-10 08:14:19] Production.INFO: ProcessCDR(1,14215623,1,1,2) [2025-01-10 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215623', 'tblTempUsageDetail_20' ) start [2025-01-10 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215623', 'tblTempUsageDetail_20' ) end [2025-01-10 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:14:23] Production.INFO: ==27924== Releasing lock... [2025-01-10 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:14:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-10 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:15:04 [end_date_ymd] => 2025-01-10 08:15:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:15:04' and `end` < '2025-01-10 08: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-01-10 08:15:17] Production.INFO: count ==216 [2025-01-10 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:15:04 - End Time 2025-01-10 08:15:04 [2025-01-10 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215628', 'tblTempUsageDetail_20' ) start [2025-01-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215628', 'tblTempUsageDetail_20' ) end [2025-01-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215628', 'tblTempVendorCDR_20' ) start [2025-01-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215628', 'tblTempVendorCDR_20' ) end [2025-01-10 08:15:18] Production.INFO: ProcessCDR(1,14215628,1,1,2) [2025-01-10 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215628', 'tblTempUsageDetail_20' ) start [2025-01-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215628', 'tblTempUsageDetail_20' ) end [2025-01-10 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:15:21] Production.INFO: ==27996== Releasing lock... [2025-01-10 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-10 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:16:05 [end_date_ymd] => 2025-01-10 08:16:05 [RateCDR] => 1 ) [2025-01-10 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:16:05' and `end` < '2025-01-10 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:16:19] Production.INFO: count ==231 [2025-01-10 08:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:16:05 - End Time 2025-01-10 08:16:05 [2025-01-10 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215633', 'tblTempUsageDetail_20' ) start [2025-01-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215633', 'tblTempUsageDetail_20' ) end [2025-01-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215633', 'tblTempVendorCDR_20' ) start [2025-01-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215633', 'tblTempVendorCDR_20' ) end [2025-01-10 08:16:19] Production.INFO: ProcessCDR(1,14215633,1,1,2) [2025-01-10 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215633', 'tblTempUsageDetail_20' ) start [2025-01-10 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215633', 'tblTempUsageDetail_20' ) end [2025-01-10 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:16:22] Production.INFO: ==28070== Releasing lock... [2025-01-10 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-10 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:17:04 [end_date_ymd] => 2025-01-10 08:17:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:17:04' and `end` < '2025-01-10 08: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-01-10 08:17:17] Production.INFO: count ==234 [2025-01-10 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:17:04 - End Time 2025-01-10 08:17:04 [2025-01-10 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215638', 'tblTempUsageDetail_20' ) start [2025-01-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215638', 'tblTempUsageDetail_20' ) end [2025-01-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215638', 'tblTempVendorCDR_20' ) start [2025-01-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215638', 'tblTempVendorCDR_20' ) end [2025-01-10 08:17:17] Production.INFO: ProcessCDR(1,14215638,1,1,2) [2025-01-10 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215638', 'tblTempUsageDetail_20' ) start [2025-01-10 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215638', 'tblTempUsageDetail_20' ) end [2025-01-10 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:17:22] Production.INFO: ==28147== Releasing lock... [2025-01-10 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-10 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:18:05 [end_date_ymd] => 2025-01-10 08:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:18:05' and `end` < '2025-01-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-01-10 08:18:18] Production.INFO: count ==239 [2025-01-10 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:18:05 - End Time 2025-01-10 08:18:05 [2025-01-10 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215643', 'tblTempUsageDetail_20' ) start [2025-01-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215643', 'tblTempUsageDetail_20' ) end [2025-01-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215643', 'tblTempVendorCDR_20' ) start [2025-01-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215643', 'tblTempVendorCDR_20' ) end [2025-01-10 08:18:18] Production.INFO: ProcessCDR(1,14215643,1,1,2) [2025-01-10 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215643', 'tblTempUsageDetail_20' ) start [2025-01-10 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215643', 'tblTempUsageDetail_20' ) end [2025-01-10 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:18:21] Production.INFO: ==28233== Releasing lock... [2025-01-10 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-10 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:19:05 [end_date_ymd] => 2025-01-10 08:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:19:05' and `end` < '2025-01-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-01-10 08:19:19] Production.INFO: count ==240 [2025-01-10 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:19:05 - End Time 2025-01-10 08:19:05 [2025-01-10 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215648', 'tblTempUsageDetail_20' ) start [2025-01-10 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215648', 'tblTempUsageDetail_20' ) end [2025-01-10 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215648', 'tblTempVendorCDR_20' ) start [2025-01-10 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215648', 'tblTempVendorCDR_20' ) end [2025-01-10 08:19:19] Production.INFO: ProcessCDR(1,14215648,1,1,2) [2025-01-10 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215648', 'tblTempUsageDetail_20' ) start [2025-01-10 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215648', 'tblTempUsageDetail_20' ) end [2025-01-10 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:19:22] Production.INFO: ==28308== Releasing lock... [2025-01-10 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:19:22] Production.INFO: 30 MB #Memory Used# [2025-01-10 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:20:05 [end_date_ymd] => 2025-01-10 08:20:05 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:20:05' and `end` < '2025-01-10 08: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-01-10 08:20:18] Production.INFO: count ==250 [2025-01-10 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:20:05 - End Time 2025-01-10 08:20:05 [2025-01-10 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215654', 'tblTempUsageDetail_20' ) start [2025-01-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215654', 'tblTempUsageDetail_20' ) end [2025-01-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215654', 'tblTempVendorCDR_20' ) start [2025-01-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215654', 'tblTempVendorCDR_20' ) end [2025-01-10 08:20:18] Production.INFO: ProcessCDR(1,14215654,1,1,2) [2025-01-10 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215654', 'tblTempUsageDetail_20' ) start [2025-01-10 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215654', 'tblTempUsageDetail_20' ) end [2025-01-10 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:20:21] Production.INFO: ==28389== Releasing lock... [2025-01-10 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-10 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:21:05 [end_date_ymd] => 2025-01-10 08:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:21:05' and `end` < '2025-01-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-01-10 08:21:19] Production.INFO: count ==269 [2025-01-10 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:21:05 - End Time 2025-01-10 08:21:05 [2025-01-10 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215659', 'tblTempUsageDetail_20' ) start [2025-01-10 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215659', 'tblTempUsageDetail_20' ) end [2025-01-10 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215659', 'tblTempVendorCDR_20' ) start [2025-01-10 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215659', 'tblTempVendorCDR_20' ) end [2025-01-10 08:21:19] Production.INFO: ProcessCDR(1,14215659,1,1,2) [2025-01-10 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215659', 'tblTempUsageDetail_20' ) start [2025-01-10 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215659', 'tblTempUsageDetail_20' ) end [2025-01-10 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:21:22] Production.INFO: ==28509== Releasing lock... [2025-01-10 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-10 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:22:05 [end_date_ymd] => 2025-01-10 08:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:22:05' and `end` < '2025-01-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-01-10 08:22:19] Production.INFO: count ==275 [2025-01-10 08:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:22:05 - End Time 2025-01-10 08:22:05 [2025-01-10 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215664', 'tblTempUsageDetail_20' ) start [2025-01-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215664', 'tblTempUsageDetail_20' ) end [2025-01-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215664', 'tblTempVendorCDR_20' ) start [2025-01-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215664', 'tblTempVendorCDR_20' ) end [2025-01-10 08:22:19] Production.INFO: ProcessCDR(1,14215664,1,1,2) [2025-01-10 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215664', 'tblTempUsageDetail_20' ) start [2025-01-10 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215664', 'tblTempUsageDetail_20' ) end [2025-01-10 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:22:22] Production.INFO: ==28582== Releasing lock... [2025-01-10 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-10 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:23:05 [end_date_ymd] => 2025-01-10 08:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:23:05' and `end` < '2025-01-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-01-10 08:23:18] Production.INFO: count ==282 [2025-01-10 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:23:05 - End Time 2025-01-10 08:23:05 [2025-01-10 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215669', 'tblTempUsageDetail_20' ) start [2025-01-10 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215669', 'tblTempUsageDetail_20' ) end [2025-01-10 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215669', 'tblTempVendorCDR_20' ) start [2025-01-10 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215669', 'tblTempVendorCDR_20' ) end [2025-01-10 08:23:18] Production.INFO: ProcessCDR(1,14215669,1,1,2) [2025-01-10 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215669', 'tblTempUsageDetail_20' ) start [2025-01-10 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215669', 'tblTempUsageDetail_20' ) end [2025-01-10 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:23:21] Production.INFO: ==28661== Releasing lock... [2025-01-10 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-10 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:24:04 [end_date_ymd] => 2025-01-10 08:24:04 [RateCDR] => 1 ) [2025-01-10 08:24: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-01-10 05:24:04' and `end` < '2025-01-10 08:24: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-01-10 08:24:17] Production.INFO: count ==283 [2025-01-10 08:24:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:24:04 - End Time 2025-01-10 08:24:04 [2025-01-10 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215674', 'tblTempUsageDetail_20' ) start [2025-01-10 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215674', 'tblTempUsageDetail_20' ) end [2025-01-10 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215674', 'tblTempVendorCDR_20' ) start [2025-01-10 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215674', 'tblTempVendorCDR_20' ) end [2025-01-10 08:24:17] Production.INFO: ProcessCDR(1,14215674,1,1,2) [2025-01-10 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215674', 'tblTempUsageDetail_20' ) start [2025-01-10 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215674', 'tblTempUsageDetail_20' ) end [2025-01-10 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:24:22] Production.INFO: ==28739== Releasing lock... [2025-01-10 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-10 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:25:04 [end_date_ymd] => 2025-01-10 08:25:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:25:04' and `end` < '2025-01-10 08: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-01-10 08:25:17] Production.INFO: count ==290 [2025-01-10 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:25:04 - End Time 2025-01-10 08:25:04 [2025-01-10 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215679', 'tblTempUsageDetail_20' ) start [2025-01-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215679', 'tblTempUsageDetail_20' ) end [2025-01-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215679', 'tblTempVendorCDR_20' ) start [2025-01-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215679', 'tblTempVendorCDR_20' ) end [2025-01-10 08:25:18] Production.INFO: ProcessCDR(1,14215679,1,1,2) [2025-01-10 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215679', 'tblTempUsageDetail_20' ) start [2025-01-10 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215679', 'tblTempUsageDetail_20' ) end [2025-01-10 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:25:22] Production.INFO: ==28815== Releasing lock... [2025-01-10 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-10 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:26:05 [end_date_ymd] => 2025-01-10 08:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:26:05' and `end` < '2025-01-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-01-10 08:26:19] Production.INFO: count ==309 [2025-01-10 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:26:05 - End Time 2025-01-10 08:26:05 [2025-01-10 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215684', 'tblTempUsageDetail_20' ) start [2025-01-10 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215684', 'tblTempUsageDetail_20' ) end [2025-01-10 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215684', 'tblTempVendorCDR_20' ) start [2025-01-10 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215684', 'tblTempVendorCDR_20' ) end [2025-01-10 08:26:19] Production.INFO: ProcessCDR(1,14215684,1,1,2) [2025-01-10 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215684', 'tblTempUsageDetail_20' ) start [2025-01-10 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215684', 'tblTempUsageDetail_20' ) end [2025-01-10 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:26:24] Production.INFO: ==28892== Releasing lock... [2025-01-10 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:26:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:27:04 [end_date_ymd] => 2025-01-10 08:27:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:27:04' and `end` < '2025-01-10 08: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-01-10 08:27:18] Production.INFO: count ==326 [2025-01-10 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:27:04 - End Time 2025-01-10 08:27:04 [2025-01-10 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215689', 'tblTempUsageDetail_20' ) start [2025-01-10 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215689', 'tblTempUsageDetail_20' ) end [2025-01-10 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215689', 'tblTempVendorCDR_20' ) start [2025-01-10 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215689', 'tblTempVendorCDR_20' ) end [2025-01-10 08:27:18] Production.INFO: ProcessCDR(1,14215689,1,1,2) [2025-01-10 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215689', 'tblTempUsageDetail_20' ) start [2025-01-10 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215689', 'tblTempUsageDetail_20' ) end [2025-01-10 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:27:21] Production.INFO: ==28963== Releasing lock... [2025-01-10 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:27:21] Production.INFO: 31 MB #Memory Used# [2025-01-10 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:28:05 [end_date_ymd] => 2025-01-10 08:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:28:05' and `end` < '2025-01-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-01-10 08:28:19] Production.INFO: count ==327 [2025-01-10 08:28:20] Production.ERROR: pbx CDR StartTime 2025-01-10 05:28:05 - End Time 2025-01-10 08:28:05 [2025-01-10 08:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215694', 'tblTempUsageDetail_20' ) start [2025-01-10 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215694', 'tblTempUsageDetail_20' ) end [2025-01-10 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215694', 'tblTempVendorCDR_20' ) start [2025-01-10 08:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215694', 'tblTempVendorCDR_20' ) end [2025-01-10 08:28:20] Production.INFO: ProcessCDR(1,14215694,1,1,2) [2025-01-10 08:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215694', 'tblTempUsageDetail_20' ) start [2025-01-10 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215694', 'tblTempUsageDetail_20' ) end [2025-01-10 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:28:23] Production.INFO: ==29034== Releasing lock... [2025-01-10 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:28:23] Production.INFO: 31 MB #Memory Used# [2025-01-10 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:29:04 [end_date_ymd] => 2025-01-10 08:29:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:29:04' and `end` < '2025-01-10 08: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-01-10 08:29:18] Production.INFO: count ==327 [2025-01-10 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:29:04 - End Time 2025-01-10 08:29:04 [2025-01-10 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215699', 'tblTempUsageDetail_20' ) start [2025-01-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215699', 'tblTempUsageDetail_20' ) end [2025-01-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215699', 'tblTempVendorCDR_20' ) start [2025-01-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215699', 'tblTempVendorCDR_20' ) end [2025-01-10 08:29:18] Production.INFO: ProcessCDR(1,14215699,1,1,2) [2025-01-10 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215699', 'tblTempUsageDetail_20' ) start [2025-01-10 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215699', 'tblTempUsageDetail_20' ) end [2025-01-10 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:29:22] Production.INFO: ==29104== Releasing lock... [2025-01-10 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:29:22] Production.INFO: 31 MB #Memory Used# [2025-01-10 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:30:06 [end_date_ymd] => 2025-01-10 08:30:06 [RateCDR] => 1 ) [2025-01-10 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:30:06' and `end` < '2025-01-10 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:30:19] Production.INFO: count ==342 [2025-01-10 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:30:06 - End Time 2025-01-10 08:30:06 [2025-01-10 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215705', 'tblTempUsageDetail_20' ) start [2025-01-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215705', 'tblTempUsageDetail_20' ) end [2025-01-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215705', 'tblTempVendorCDR_20' ) start [2025-01-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215705', 'tblTempVendorCDR_20' ) end [2025-01-10 08:30:19] Production.INFO: ProcessCDR(1,14215705,1,1,2) [2025-01-10 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215705', 'tblTempUsageDetail_20' ) start [2025-01-10 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215705', 'tblTempUsageDetail_20' ) end [2025-01-10 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:30:24] Production.INFO: ==29176== Releasing lock... [2025-01-10 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:30:24] Production.INFO: 31 MB #Memory Used# [2025-01-10 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:31:04 [end_date_ymd] => 2025-01-10 08:31:04 [RateCDR] => 1 ) [2025-01-10 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:31:04' and `end` < '2025-01-10 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:31:18] Production.INFO: count ==374 [2025-01-10 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:31:04 - End Time 2025-01-10 08:31:04 [2025-01-10 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215708', 'tblTempUsageDetail_20' ) start [2025-01-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215708', 'tblTempUsageDetail_20' ) end [2025-01-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215708', 'tblTempVendorCDR_20' ) start [2025-01-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215708', 'tblTempVendorCDR_20' ) end [2025-01-10 08:31:18] Production.INFO: ProcessCDR(1,14215708,1,1,2) [2025-01-10 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215708', 'tblTempUsageDetail_20' ) start [2025-01-10 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215708', 'tblTempUsageDetail_20' ) end [2025-01-10 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:31:21] Production.INFO: ==29248== Releasing lock... [2025-01-10 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-10 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:32:05 [end_date_ymd] => 2025-01-10 08:32:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:32:05' and `end` < '2025-01-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-01-10 08:32:20] Production.INFO: count ==384 [2025-01-10 08:32:20] Production.ERROR: pbx CDR StartTime 2025-01-10 05:32:05 - End Time 2025-01-10 08:32:05 [2025-01-10 08:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215715', 'tblTempUsageDetail_20' ) start [2025-01-10 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215715', 'tblTempUsageDetail_20' ) end [2025-01-10 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215715', 'tblTempVendorCDR_20' ) start [2025-01-10 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215715', 'tblTempVendorCDR_20' ) end [2025-01-10 08:32:20] Production.INFO: ProcessCDR(1,14215715,1,1,2) [2025-01-10 08:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215715', 'tblTempUsageDetail_20' ) start [2025-01-10 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215715', 'tblTempUsageDetail_20' ) end [2025-01-10 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:32:23] Production.INFO: ==29319== Releasing lock... [2025-01-10 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:32:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-10 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:33:05 [end_date_ymd] => 2025-01-10 08:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:33:05' and `end` < '2025-01-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-01-10 08:33:18] Production.INFO: count ==390 [2025-01-10 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:33:05 - End Time 2025-01-10 08:33:05 [2025-01-10 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215720', 'tblTempUsageDetail_20' ) start [2025-01-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215720', 'tblTempUsageDetail_20' ) end [2025-01-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215720', 'tblTempVendorCDR_20' ) start [2025-01-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215720', 'tblTempVendorCDR_20' ) end [2025-01-10 08:33:18] Production.INFO: ProcessCDR(1,14215720,1,1,2) [2025-01-10 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215720', 'tblTempUsageDetail_20' ) start [2025-01-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215720', 'tblTempUsageDetail_20' ) end [2025-01-10 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:33:22] Production.INFO: ==29393== Releasing lock... [2025-01-10 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:34:05 [end_date_ymd] => 2025-01-10 08:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:34:05' and `end` < '2025-01-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-01-10 08:34:18] Production.INFO: count ==391 [2025-01-10 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:34:05 - End Time 2025-01-10 08:34:05 [2025-01-10 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215725', 'tblTempUsageDetail_20' ) start [2025-01-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215725', 'tblTempUsageDetail_20' ) end [2025-01-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215725', 'tblTempVendorCDR_20' ) start [2025-01-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215725', 'tblTempVendorCDR_20' ) end [2025-01-10 08:34:18] Production.INFO: ProcessCDR(1,14215725,1,1,2) [2025-01-10 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215725', 'tblTempUsageDetail_20' ) start [2025-01-10 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215725', 'tblTempUsageDetail_20' ) end [2025-01-10 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:34:21] Production.INFO: ==29467== Releasing lock... [2025-01-10 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:35:05 [end_date_ymd] => 2025-01-10 08:35:05 [RateCDR] => 1 ) [2025-01-10 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:35:05' and `end` < '2025-01-10 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:35:18] Production.INFO: count ==396 [2025-01-10 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:35:05 - End Time 2025-01-10 08:35:05 [2025-01-10 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215730', 'tblTempUsageDetail_20' ) start [2025-01-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215730', 'tblTempUsageDetail_20' ) end [2025-01-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215730', 'tblTempVendorCDR_20' ) start [2025-01-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215730', 'tblTempVendorCDR_20' ) end [2025-01-10 08:35:18] Production.INFO: ProcessCDR(1,14215730,1,1,2) [2025-01-10 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215730', 'tblTempUsageDetail_20' ) start [2025-01-10 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215730', 'tblTempUsageDetail_20' ) end [2025-01-10 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:35:21] Production.INFO: ==29539== Releasing lock... [2025-01-10 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-10 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:36:04 [end_date_ymd] => 2025-01-10 08:36:04 [RateCDR] => 1 ) [2025-01-10 08:36: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-01-10 05:36:04' and `end` < '2025-01-10 08:36: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-01-10 08:36:19] Production.INFO: count ==402 [2025-01-10 08:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:36:04 - End Time 2025-01-10 08:36:04 [2025-01-10 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215735', 'tblTempUsageDetail_20' ) start [2025-01-10 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215735', 'tblTempUsageDetail_20' ) end [2025-01-10 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215735', 'tblTempVendorCDR_20' ) start [2025-01-10 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215735', 'tblTempVendorCDR_20' ) end [2025-01-10 08:36:19] Production.INFO: ProcessCDR(1,14215735,1,1,2) [2025-01-10 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215735', 'tblTempUsageDetail_20' ) start [2025-01-10 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215735', 'tblTempUsageDetail_20' ) end [2025-01-10 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:36:22] Production.INFO: ==29650== Releasing lock... [2025-01-10 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:37:05 [end_date_ymd] => 2025-01-10 08:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:37:05' and `end` < '2025-01-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-01-10 08:37:18] Production.INFO: count ==403 [2025-01-10 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:37:05 - End Time 2025-01-10 08:37:05 [2025-01-10 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215740', 'tblTempUsageDetail_20' ) start [2025-01-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215740', 'tblTempUsageDetail_20' ) end [2025-01-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215740', 'tblTempVendorCDR_20' ) start [2025-01-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215740', 'tblTempVendorCDR_20' ) end [2025-01-10 08:37:18] Production.INFO: ProcessCDR(1,14215740,1,1,2) [2025-01-10 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215740', 'tblTempUsageDetail_20' ) start [2025-01-10 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215740', 'tblTempUsageDetail_20' ) end [2025-01-10 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:37:21] Production.INFO: ==29722== Releasing lock... [2025-01-10 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:38:04 [end_date_ymd] => 2025-01-10 08:38:04 [RateCDR] => 1 ) [2025-01-10 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:38:04' and `end` < '2025-01-10 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:38:17] Production.INFO: count ==409 [2025-01-10 08:38:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:38:04 - End Time 2025-01-10 08:38:04 [2025-01-10 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215745', 'tblTempUsageDetail_20' ) start [2025-01-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215745', 'tblTempUsageDetail_20' ) end [2025-01-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215745', 'tblTempVendorCDR_20' ) start [2025-01-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215745', 'tblTempVendorCDR_20' ) end [2025-01-10 08:38:17] Production.INFO: ProcessCDR(1,14215745,1,1,2) [2025-01-10 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215745', 'tblTempUsageDetail_20' ) start [2025-01-10 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215745', 'tblTempUsageDetail_20' ) end [2025-01-10 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:38:21] Production.INFO: ==29791== Releasing lock... [2025-01-10 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-10 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:39:05 [end_date_ymd] => 2025-01-10 08:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:39:05' and `end` < '2025-01-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-01-10 08:39:18] Production.INFO: count ==415 [2025-01-10 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:39:05 - End Time 2025-01-10 08:39:05 [2025-01-10 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215750', 'tblTempUsageDetail_20' ) start [2025-01-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215750', 'tblTempUsageDetail_20' ) end [2025-01-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215750', 'tblTempVendorCDR_20' ) start [2025-01-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215750', 'tblTempVendorCDR_20' ) end [2025-01-10 08:39:18] Production.INFO: ProcessCDR(1,14215750,1,1,2) [2025-01-10 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215750', 'tblTempUsageDetail_20' ) start [2025-01-10 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215750', 'tblTempUsageDetail_20' ) end [2025-01-10 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:39:22] Production.INFO: ==29862== Releasing lock... [2025-01-10 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:39:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-10 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:40:05 [end_date_ymd] => 2025-01-10 08:40:05 [RateCDR] => 1 ) [2025-01-10 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:40:05' and `end` < '2025-01-10 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:40:18] Production.INFO: count ==421 [2025-01-10 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:40:05 - End Time 2025-01-10 08:40:05 [2025-01-10 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215755', 'tblTempUsageDetail_20' ) start [2025-01-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215755', 'tblTempUsageDetail_20' ) end [2025-01-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215755', 'tblTempVendorCDR_20' ) start [2025-01-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215755', 'tblTempVendorCDR_20' ) end [2025-01-10 08:40:18] Production.INFO: ProcessCDR(1,14215755,1,1,2) [2025-01-10 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215755', 'tblTempUsageDetail_20' ) start [2025-01-10 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215755', 'tblTempUsageDetail_20' ) end [2025-01-10 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:40:23] Production.INFO: ==29933== Releasing lock... [2025-01-10 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-10 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:41:05 [end_date_ymd] => 2025-01-10 08:41:05 [RateCDR] => 1 ) [2025-01-10 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:41:05' and `end` < '2025-01-10 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:41:18] Production.INFO: count ==442 [2025-01-10 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:41:05 - End Time 2025-01-10 08:41:05 [2025-01-10 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215761', 'tblTempUsageDetail_20' ) start [2025-01-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215761', 'tblTempUsageDetail_20' ) end [2025-01-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215761', 'tblTempVendorCDR_20' ) start [2025-01-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215761', 'tblTempVendorCDR_20' ) end [2025-01-10 08:41:18] Production.INFO: ProcessCDR(1,14215761,1,1,2) [2025-01-10 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215761', 'tblTempUsageDetail_20' ) start [2025-01-10 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215761', 'tblTempUsageDetail_20' ) end [2025-01-10 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:41:22] Production.INFO: ==30006== Releasing lock... [2025-01-10 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-10 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:42:05 [end_date_ymd] => 2025-01-10 08:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:42:05' and `end` < '2025-01-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-01-10 08:42:18] Production.INFO: count ==454 [2025-01-10 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:42:05 - End Time 2025-01-10 08:42:05 [2025-01-10 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215766', 'tblTempUsageDetail_20' ) start [2025-01-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215766', 'tblTempUsageDetail_20' ) end [2025-01-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215766', 'tblTempVendorCDR_20' ) start [2025-01-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215766', 'tblTempVendorCDR_20' ) end [2025-01-10 08:42:18] Production.INFO: ProcessCDR(1,14215766,1,1,2) [2025-01-10 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215766', 'tblTempUsageDetail_20' ) start [2025-01-10 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215766', 'tblTempUsageDetail_20' ) end [2025-01-10 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:42:21] Production.INFO: ==30076== Releasing lock... [2025-01-10 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-10 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:43:05 [end_date_ymd] => 2025-01-10 08:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:43:05' and `end` < '2025-01-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-01-10 08:43:18] Production.INFO: count ==467 [2025-01-10 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:43:05 - End Time 2025-01-10 08:43:05 [2025-01-10 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215771', 'tblTempUsageDetail_20' ) start [2025-01-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215771', 'tblTempUsageDetail_20' ) end [2025-01-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215771', 'tblTempVendorCDR_20' ) start [2025-01-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215771', 'tblTempVendorCDR_20' ) end [2025-01-10 08:43:18] Production.INFO: ProcessCDR(1,14215771,1,1,2) [2025-01-10 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215771', 'tblTempUsageDetail_20' ) start [2025-01-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215771', 'tblTempUsageDetail_20' ) end [2025-01-10 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:43:23] Production.INFO: ==30148== Releasing lock... [2025-01-10 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-10 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:44:05 [end_date_ymd] => 2025-01-10 08:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:44:05' and `end` < '2025-01-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-01-10 08:44:19] Production.INFO: count ==473 [2025-01-10 08:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:44:05 - End Time 2025-01-10 08:44:05 [2025-01-10 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215776', 'tblTempUsageDetail_20' ) start [2025-01-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215776', 'tblTempUsageDetail_20' ) end [2025-01-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215776', 'tblTempVendorCDR_20' ) start [2025-01-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215776', 'tblTempVendorCDR_20' ) end [2025-01-10 08:44:19] Production.INFO: ProcessCDR(1,14215776,1,1,2) [2025-01-10 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215776', 'tblTempUsageDetail_20' ) start [2025-01-10 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215776', 'tblTempUsageDetail_20' ) end [2025-01-10 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:44:22] Production.INFO: ==30219== Releasing lock... [2025-01-10 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:44:22] Production.INFO: 32 MB #Memory Used# [2025-01-10 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:45:04 [end_date_ymd] => 2025-01-10 08:45:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:45:04' and `end` < '2025-01-10 08: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-01-10 08:45:17] Production.INFO: count ==483 [2025-01-10 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-10 05:45:04 - End Time 2025-01-10 08:45:04 [2025-01-10 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215781', 'tblTempUsageDetail_20' ) start [2025-01-10 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215781', 'tblTempUsageDetail_20' ) end [2025-01-10 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215781', 'tblTempVendorCDR_20' ) start [2025-01-10 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215781', 'tblTempVendorCDR_20' ) end [2025-01-10 08:45:17] Production.INFO: ProcessCDR(1,14215781,1,1,2) [2025-01-10 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215781', 'tblTempUsageDetail_20' ) start [2025-01-10 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215781', 'tblTempUsageDetail_20' ) end [2025-01-10 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:45:20] Production.INFO: ==30289== Releasing lock... [2025-01-10 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:45:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-10 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:46:05 [end_date_ymd] => 2025-01-10 08:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:46:05' and `end` < '2025-01-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-01-10 08:46:18] Production.INFO: count ==491 [2025-01-10 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:46:05 - End Time 2025-01-10 08:46:05 [2025-01-10 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215786', 'tblTempUsageDetail_20' ) start [2025-01-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215786', 'tblTempUsageDetail_20' ) end [2025-01-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215786', 'tblTempVendorCDR_20' ) start [2025-01-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215786', 'tblTempVendorCDR_20' ) end [2025-01-10 08:46:18] Production.INFO: ProcessCDR(1,14215786,1,1,2) [2025-01-10 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215786', 'tblTempUsageDetail_20' ) start [2025-01-10 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215786', 'tblTempUsageDetail_20' ) end [2025-01-10 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:46:22] Production.INFO: ==30359== Releasing lock... [2025-01-10 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-10 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:47:04 [end_date_ymd] => 2025-01-10 08:47:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:47:04' and `end` < '2025-01-10 08: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-01-10 08:47:17] Production.INFO: count ==512 [2025-01-10 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:47:04 - End Time 2025-01-10 08:47:04 [2025-01-10 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215791', 'tblTempUsageDetail_20' ) start [2025-01-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215791', 'tblTempUsageDetail_20' ) end [2025-01-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215791', 'tblTempVendorCDR_20' ) start [2025-01-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215791', 'tblTempVendorCDR_20' ) end [2025-01-10 08:47:18] Production.INFO: ProcessCDR(1,14215791,1,1,2) [2025-01-10 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215791', 'tblTempUsageDetail_20' ) start [2025-01-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215791', 'tblTempUsageDetail_20' ) end [2025-01-10 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:47:22] Production.INFO: ==30435== Releasing lock... [2025-01-10 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:47:22] Production.INFO: 33 MB #Memory Used# [2025-01-10 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:48:05 [end_date_ymd] => 2025-01-10 08:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:48:05' and `end` < '2025-01-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-01-10 08:48:18] Production.INFO: count ==522 [2025-01-10 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:48:05 - End Time 2025-01-10 08:48:05 [2025-01-10 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215796', 'tblTempUsageDetail_20' ) start [2025-01-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215796', 'tblTempUsageDetail_20' ) end [2025-01-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215796', 'tblTempVendorCDR_20' ) start [2025-01-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215796', 'tblTempVendorCDR_20' ) end [2025-01-10 08:48:18] Production.INFO: ProcessCDR(1,14215796,1,1,2) [2025-01-10 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215796', 'tblTempUsageDetail_20' ) start [2025-01-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215796', 'tblTempUsageDetail_20' ) end [2025-01-10 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:48:24] Production.INFO: ==30508== Releasing lock... [2025-01-10 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:48:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-10 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:49:05 [end_date_ymd] => 2025-01-10 08:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:49:05' and `end` < '2025-01-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-01-10 08:49:18] Production.INFO: count ==530 [2025-01-10 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:49:05 - End Time 2025-01-10 08:49:05 [2025-01-10 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215801', 'tblTempUsageDetail_20' ) start [2025-01-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215801', 'tblTempUsageDetail_20' ) end [2025-01-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215801', 'tblTempVendorCDR_20' ) start [2025-01-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215801', 'tblTempVendorCDR_20' ) end [2025-01-10 08:49:19] Production.INFO: ProcessCDR(1,14215801,1,1,2) [2025-01-10 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215801', 'tblTempUsageDetail_20' ) start [2025-01-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215801', 'tblTempUsageDetail_20' ) end [2025-01-10 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:49:23] Production.INFO: ==30579== Releasing lock... [2025-01-10 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-10 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:50:05 [end_date_ymd] => 2025-01-10 08:50:05 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:50:05' and `end` < '2025-01-10 08: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-01-10 08:50:18] Production.INFO: count ==551 [2025-01-10 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:50:05 - End Time 2025-01-10 08:50:05 [2025-01-10 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215806', 'tblTempUsageDetail_20' ) start [2025-01-10 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215806', 'tblTempUsageDetail_20' ) end [2025-01-10 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215806', 'tblTempVendorCDR_20' ) start [2025-01-10 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215806', 'tblTempVendorCDR_20' ) end [2025-01-10 08:50:18] Production.INFO: ProcessCDR(1,14215806,1,1,2) [2025-01-10 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215806', 'tblTempUsageDetail_20' ) start [2025-01-10 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215806', 'tblTempUsageDetail_20' ) end [2025-01-10 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:50:23] Production.INFO: ==30651== Releasing lock... [2025-01-10 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-10 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:51:05 [end_date_ymd] => 2025-01-10 08:51:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:51:05' and `end` < '2025-01-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-01-10 08:51:19] Production.INFO: count ==571 [2025-01-10 08:51:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:51:05 - End Time 2025-01-10 08:51:05 [2025-01-10 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215812', 'tblTempUsageDetail_20' ) start [2025-01-10 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215812', 'tblTempUsageDetail_20' ) end [2025-01-10 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215812', 'tblTempVendorCDR_20' ) start [2025-01-10 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215812', 'tblTempVendorCDR_20' ) end [2025-01-10 08:51:19] Production.INFO: ProcessCDR(1,14215812,1,1,2) [2025-01-10 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215812', 'tblTempUsageDetail_20' ) start [2025-01-10 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215812', 'tblTempUsageDetail_20' ) end [2025-01-10 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:51:23] Production.INFO: ==30726== Releasing lock... [2025-01-10 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-10 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:52:05 [end_date_ymd] => 2025-01-10 08:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:52:05' and `end` < '2025-01-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-01-10 08:52:19] Production.INFO: count ==574 [2025-01-10 08:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:52:05 - End Time 2025-01-10 08:52:05 [2025-01-10 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215817', 'tblTempUsageDetail_20' ) start [2025-01-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215817', 'tblTempUsageDetail_20' ) end [2025-01-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215817', 'tblTempVendorCDR_20' ) start [2025-01-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215817', 'tblTempVendorCDR_20' ) end [2025-01-10 08:52:19] Production.INFO: ProcessCDR(1,14215817,1,1,2) [2025-01-10 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215817', 'tblTempUsageDetail_20' ) start [2025-01-10 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215817', 'tblTempUsageDetail_20' ) end [2025-01-10 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:52:24] Production.INFO: ==30833== Releasing lock... [2025-01-10 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:52:24] Production.INFO: 33 MB #Memory Used# [2025-01-10 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:53:04 [end_date_ymd] => 2025-01-10 08:53:04 [RateCDR] => 1 ) [2025-01-10 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:53:04' and `end` < '2025-01-10 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:53:18] Production.INFO: count ==579 [2025-01-10 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:53:04 - End Time 2025-01-10 08:53:04 [2025-01-10 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215822', 'tblTempUsageDetail_20' ) start [2025-01-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215822', 'tblTempUsageDetail_20' ) end [2025-01-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215822', 'tblTempVendorCDR_20' ) start [2025-01-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215822', 'tblTempVendorCDR_20' ) end [2025-01-10 08:53:18] Production.INFO: ProcessCDR(1,14215822,1,1,2) [2025-01-10 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215822', 'tblTempUsageDetail_20' ) start [2025-01-10 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215822', 'tblTempUsageDetail_20' ) end [2025-01-10 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:53:23] Production.INFO: ==30904== Releasing lock... [2025-01-10 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:53:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-10 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:54:05 [end_date_ymd] => 2025-01-10 08:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:54:05' and `end` < '2025-01-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-01-10 08:54:18] Production.INFO: count ==586 [2025-01-10 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:54:05 - End Time 2025-01-10 08:54:05 [2025-01-10 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215827', 'tblTempUsageDetail_20' ) start [2025-01-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215827', 'tblTempUsageDetail_20' ) end [2025-01-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215827', 'tblTempVendorCDR_20' ) start [2025-01-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215827', 'tblTempVendorCDR_20' ) end [2025-01-10 08:54:19] Production.INFO: ProcessCDR(1,14215827,1,1,2) [2025-01-10 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215827', 'tblTempUsageDetail_20' ) start [2025-01-10 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215827', 'tblTempUsageDetail_20' ) end [2025-01-10 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:54:22] Production.INFO: ==30976== Releasing lock... [2025-01-10 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-10 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:55:04 [end_date_ymd] => 2025-01-10 08:55:04 [RateCDR] => 1 ) [2025-01-10 08:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:55:04' and `end` < '2025-01-10 08:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:55:18] Production.INFO: count ==606 [2025-01-10 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:55:04 - End Time 2025-01-10 08:55:04 [2025-01-10 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215832', 'tblTempUsageDetail_20' ) start [2025-01-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215832', 'tblTempUsageDetail_20' ) end [2025-01-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215832', 'tblTempVendorCDR_20' ) start [2025-01-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215832', 'tblTempVendorCDR_20' ) end [2025-01-10 08:55:18] Production.INFO: ProcessCDR(1,14215832,1,1,2) [2025-01-10 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215832', 'tblTempUsageDetail_20' ) start [2025-01-10 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215832', 'tblTempUsageDetail_20' ) end [2025-01-10 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:55:22] Production.INFO: ==31046== Releasing lock... [2025-01-10 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-10 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:56:05 [end_date_ymd] => 2025-01-10 08:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 05:56:05' and `end` < '2025-01-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-01-10 08:56:19] Production.INFO: count ==655 [2025-01-10 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-10 05:56:05 - End Time 2025-01-10 08:56:05 [2025-01-10 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215837', 'tblTempUsageDetail_20' ) start [2025-01-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215837', 'tblTempUsageDetail_20' ) end [2025-01-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215837', 'tblTempVendorCDR_20' ) start [2025-01-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215837', 'tblTempVendorCDR_20' ) end [2025-01-10 08:56:19] Production.INFO: ProcessCDR(1,14215837,1,1,2) [2025-01-10 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215837', 'tblTempUsageDetail_20' ) start [2025-01-10 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215837', 'tblTempUsageDetail_20' ) end [2025-01-10 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:56:24] Production.INFO: ==31118== Releasing lock... [2025-01-10 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:56:24] Production.INFO: 33 MB #Memory Used# [2025-01-10 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:57:04 [end_date_ymd] => 2025-01-10 08:57:04 [RateCDR] => 1 ) [2025-01-10 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:57:04' and `end` < '2025-01-10 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:57:18] Production.INFO: count ==674 [2025-01-10 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:57:04 - End Time 2025-01-10 08:57:04 [2025-01-10 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215842', 'tblTempUsageDetail_20' ) start [2025-01-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215842', 'tblTempUsageDetail_20' ) end [2025-01-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215842', 'tblTempVendorCDR_20' ) start [2025-01-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215842', 'tblTempVendorCDR_20' ) end [2025-01-10 08:57:18] Production.INFO: ProcessCDR(1,14215842,1,1,2) [2025-01-10 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215842', 'tblTempUsageDetail_20' ) start [2025-01-10 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215842', 'tblTempUsageDetail_20' ) end [2025-01-10 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:57:22] Production.INFO: ==31188== Releasing lock... [2025-01-10 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-10 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:58:05 [end_date_ymd] => 2025-01-10 08:58:05 [RateCDR] => 1 ) [2025-01-10 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 05:58:05' and `end` < '2025-01-10 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 08:58:18] Production.INFO: count ==686 [2025-01-10 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:58:05 - End Time 2025-01-10 08:58:05 [2025-01-10 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215847', 'tblTempUsageDetail_20' ) start [2025-01-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215847', 'tblTempUsageDetail_20' ) end [2025-01-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215847', 'tblTempVendorCDR_20' ) start [2025-01-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215847', 'tblTempVendorCDR_20' ) end [2025-01-10 08:58:18] Production.INFO: ProcessCDR(1,14215847,1,1,2) [2025-01-10 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215847', 'tblTempUsageDetail_20' ) start [2025-01-10 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215847', 'tblTempUsageDetail_20' ) end [2025-01-10 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:58:21] Production.INFO: ==31259== Releasing lock... [2025-01-10 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-10 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 05:59:04 [end_date_ymd] => 2025-01-10 08:59:04 [RateCDR] => 1 ) [2025-01-10 08: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-01-10 05:59:04' and `end` < '2025-01-10 08: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-01-10 08:59:17] Production.INFO: count ==688 [2025-01-10 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 05:59:04 - End Time 2025-01-10 08:59:04 [2025-01-10 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215852', 'tblTempUsageDetail_20' ) start [2025-01-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215852', 'tblTempUsageDetail_20' ) end [2025-01-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215852', 'tblTempVendorCDR_20' ) start [2025-01-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215852', 'tblTempVendorCDR_20' ) end [2025-01-10 08:59:18] Production.INFO: ProcessCDR(1,14215852,1,1,2) [2025-01-10 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215852', 'tblTempUsageDetail_20' ) start [2025-01-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215852', 'tblTempUsageDetail_20' ) end [2025-01-10 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 08:59:21] Production.INFO: ==31329== Releasing lock... [2025-01-10 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 08:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-10 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:00:06 [end_date_ymd] => 2025-01-10 09:00:06 [RateCDR] => 1 ) [2025-01-10 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:00:06' and `end` < '2025-01-10 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:00:19] Production.INFO: count ==740 [2025-01-10 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:00:06 - End Time 2025-01-10 09:00:06 [2025-01-10 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215858', 'tblTempUsageDetail_20' ) start [2025-01-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215858', 'tblTempUsageDetail_20' ) end [2025-01-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215858', 'tblTempVendorCDR_20' ) start [2025-01-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215858', 'tblTempVendorCDR_20' ) end [2025-01-10 09:00:19] Production.INFO: ProcessCDR(1,14215858,1,1,2) [2025-01-10 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215858', 'tblTempUsageDetail_20' ) start [2025-01-10 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215858', 'tblTempUsageDetail_20' ) end [2025-01-10 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:00:24] Production.INFO: ==31405== Releasing lock... [2025-01-10 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-10 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:01:05 [end_date_ymd] => 2025-01-10 09:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:01:05' and `end` < '2025-01-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-01-10 09:01:18] Production.INFO: count ==763 [2025-01-10 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:01:05 - End Time 2025-01-10 09:01:05 [2025-01-10 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215863', 'tblTempUsageDetail_20' ) start [2025-01-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215863', 'tblTempUsageDetail_20' ) end [2025-01-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215863', 'tblTempVendorCDR_20' ) start [2025-01-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215863', 'tblTempVendorCDR_20' ) end [2025-01-10 09:01:18] Production.INFO: ProcessCDR(1,14215863,1,1,2) [2025-01-10 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215863', 'tblTempUsageDetail_20' ) start [2025-01-10 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215863', 'tblTempUsageDetail_20' ) end [2025-01-10 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:01:22] Production.INFO: ==31490== Releasing lock... [2025-01-10 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:01:22] Production.INFO: 34 MB #Memory Used# [2025-01-10 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:02:05 [end_date_ymd] => 2025-01-10 09:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:02:05' and `end` < '2025-01-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-01-10 09:02:18] Production.INFO: count ==765 [2025-01-10 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:02:05 - End Time 2025-01-10 09:02:05 [2025-01-10 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215868', 'tblTempUsageDetail_20' ) start [2025-01-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215868', 'tblTempUsageDetail_20' ) end [2025-01-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215868', 'tblTempVendorCDR_20' ) start [2025-01-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215868', 'tblTempVendorCDR_20' ) end [2025-01-10 09:02:19] Production.INFO: ProcessCDR(1,14215868,1,1,2) [2025-01-10 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215868', 'tblTempUsageDetail_20' ) start [2025-01-10 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215868', 'tblTempUsageDetail_20' ) end [2025-01-10 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:02:23] Production.INFO: ==31562== Releasing lock... [2025-01-10 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-10 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:03:05 [end_date_ymd] => 2025-01-10 09:03:05 [RateCDR] => 1 ) [2025-01-10 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:03:05' and `end` < '2025-01-10 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:03:18] Production.INFO: count ==767 [2025-01-10 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:03:05 - End Time 2025-01-10 09:03:05 [2025-01-10 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215873', 'tblTempUsageDetail_20' ) start [2025-01-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215873', 'tblTempUsageDetail_20' ) end [2025-01-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215873', 'tblTempVendorCDR_20' ) start [2025-01-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215873', 'tblTempVendorCDR_20' ) end [2025-01-10 09:03:19] Production.INFO: ProcessCDR(1,14215873,1,1,2) [2025-01-10 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215873', 'tblTempUsageDetail_20' ) start [2025-01-10 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215873', 'tblTempUsageDetail_20' ) end [2025-01-10 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:03:22] Production.INFO: ==31639== Releasing lock... [2025-01-10 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-10 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:04:04 [end_date_ymd] => 2025-01-10 09:04:04 [RateCDR] => 1 ) [2025-01-10 09:04: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-01-10 06:04:04' and `end` < '2025-01-10 09:04: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-01-10 09:04:17] Production.INFO: count ==769 [2025-01-10 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:04:04 - End Time 2025-01-10 09:04:04 [2025-01-10 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215878', 'tblTempUsageDetail_20' ) start [2025-01-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215878', 'tblTempUsageDetail_20' ) end [2025-01-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215878', 'tblTempVendorCDR_20' ) start [2025-01-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215878', 'tblTempVendorCDR_20' ) end [2025-01-10 09:04:18] Production.INFO: ProcessCDR(1,14215878,1,1,2) [2025-01-10 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215878', 'tblTempUsageDetail_20' ) start [2025-01-10 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215878', 'tblTempUsageDetail_20' ) end [2025-01-10 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:04:22] Production.INFO: ==31710== Releasing lock... [2025-01-10 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:04:22] Production.INFO: 34 MB #Memory Used# [2025-01-10 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:05:05 [end_date_ymd] => 2025-01-10 09:05:05 [RateCDR] => 1 ) [2025-01-10 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:05:05' and `end` < '2025-01-10 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:05:18] Production.INFO: count ==771 [2025-01-10 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:05:05 - End Time 2025-01-10 09:05:05 [2025-01-10 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215883', 'tblTempUsageDetail_20' ) start [2025-01-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215883', 'tblTempUsageDetail_20' ) end [2025-01-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215883', 'tblTempVendorCDR_20' ) start [2025-01-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215883', 'tblTempVendorCDR_20' ) end [2025-01-10 09:05:18] Production.INFO: ProcessCDR(1,14215883,1,1,2) [2025-01-10 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215883', 'tblTempUsageDetail_20' ) start [2025-01-10 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215883', 'tblTempUsageDetail_20' ) end [2025-01-10 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:05:22] Production.INFO: ==31781== Releasing lock... [2025-01-10 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:05:22] Production.INFO: 34 MB #Memory Used# [2025-01-10 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:06:04 [end_date_ymd] => 2025-01-10 09:06:04 [RateCDR] => 1 ) [2025-01-10 09:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:06:04' and `end` < '2025-01-10 09:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:06:18] Production.INFO: count ==791 [2025-01-10 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:06:04 - End Time 2025-01-10 09:06:04 [2025-01-10 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215888', 'tblTempUsageDetail_20' ) start [2025-01-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215888', 'tblTempUsageDetail_20' ) end [2025-01-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215888', 'tblTempVendorCDR_20' ) start [2025-01-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215888', 'tblTempVendorCDR_20' ) end [2025-01-10 09:06:18] Production.INFO: ProcessCDR(1,14215888,1,1,2) [2025-01-10 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215888', 'tblTempUsageDetail_20' ) start [2025-01-10 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215888', 'tblTempUsageDetail_20' ) end [2025-01-10 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:06:23] Production.INFO: ==31851== Releasing lock... [2025-01-10 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:06:23] Production.INFO: 34 MB #Memory Used# [2025-01-10 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:07:05 [end_date_ymd] => 2025-01-10 09:07:05 [RateCDR] => 1 ) [2025-01-10 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:07:05' and `end` < '2025-01-10 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:07:18] Production.INFO: count ==792 [2025-01-10 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:07:05 - End Time 2025-01-10 09:07:05 [2025-01-10 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215893', 'tblTempUsageDetail_20' ) start [2025-01-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215893', 'tblTempUsageDetail_20' ) end [2025-01-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215893', 'tblTempVendorCDR_20' ) start [2025-01-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215893', 'tblTempVendorCDR_20' ) end [2025-01-10 09:07:18] Production.INFO: ProcessCDR(1,14215893,1,1,2) [2025-01-10 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215893', 'tblTempUsageDetail_20' ) start [2025-01-10 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215893', 'tblTempUsageDetail_20' ) end [2025-01-10 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:07:22] Production.INFO: ==31962== Releasing lock... [2025-01-10 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-10 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:08:05 [end_date_ymd] => 2025-01-10 09:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:08:05' and `end` < '2025-01-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-01-10 09:08:19] Production.INFO: count ==812 [2025-01-10 09:08:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:08:05 - End Time 2025-01-10 09:08:05 [2025-01-10 09:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215898', 'tblTempUsageDetail_20' ) start [2025-01-10 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215898', 'tblTempUsageDetail_20' ) end [2025-01-10 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215898', 'tblTempVendorCDR_20' ) start [2025-01-10 09:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215898', 'tblTempVendorCDR_20' ) end [2025-01-10 09:08:20] Production.INFO: ProcessCDR(1,14215898,1,1,2) [2025-01-10 09:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215898', 'tblTempUsageDetail_20' ) start [2025-01-10 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215898', 'tblTempUsageDetail_20' ) end [2025-01-10 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:08:23] Production.INFO: ==32033== Releasing lock... [2025-01-10 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:08:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-10 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:09:05 [end_date_ymd] => 2025-01-10 09:09:05 [RateCDR] => 1 ) [2025-01-10 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:09:05' and `end` < '2025-01-10 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:09:18] Production.INFO: count ==824 [2025-01-10 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:09:05 - End Time 2025-01-10 09:09:05 [2025-01-10 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215903', 'tblTempUsageDetail_20' ) start [2025-01-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215903', 'tblTempUsageDetail_20' ) end [2025-01-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215903', 'tblTempVendorCDR_20' ) start [2025-01-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215903', 'tblTempVendorCDR_20' ) end [2025-01-10 09:09:18] Production.INFO: ProcessCDR(1,14215903,1,1,2) [2025-01-10 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215903', 'tblTempUsageDetail_20' ) start [2025-01-10 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215903', 'tblTempUsageDetail_20' ) end [2025-01-10 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:09:23] Production.INFO: ==32104== Releasing lock... [2025-01-10 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:09:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-10 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:10:06 [end_date_ymd] => 2025-01-10 09:10:06 [RateCDR] => 1 ) [2025-01-10 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:10:06' and `end` < '2025-01-10 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:10:19] Production.INFO: count ==835 [2025-01-10 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:10:06 - End Time 2025-01-10 09:10:06 [2025-01-10 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215909', 'tblTempUsageDetail_20' ) start [2025-01-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215909', 'tblTempUsageDetail_20' ) end [2025-01-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215909', 'tblTempVendorCDR_20' ) start [2025-01-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215909', 'tblTempVendorCDR_20' ) end [2025-01-10 09:10:19] Production.INFO: ProcessCDR(1,14215909,1,1,2) [2025-01-10 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215909', 'tblTempUsageDetail_20' ) start [2025-01-10 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215909', 'tblTempUsageDetail_20' ) end [2025-01-10 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:10:24] Production.INFO: ==32180== Releasing lock... [2025-01-10 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-10 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:11:04 [end_date_ymd] => 2025-01-10 09:11:04 [RateCDR] => 1 ) [2025-01-10 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:11:04' and `end` < '2025-01-10 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:11:19] Production.INFO: count ==913 [2025-01-10 09:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:11:04 - End Time 2025-01-10 09:11:04 [2025-01-10 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215914', 'tblTempUsageDetail_20' ) start [2025-01-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215914', 'tblTempUsageDetail_20' ) end [2025-01-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215914', 'tblTempVendorCDR_20' ) start [2025-01-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215914', 'tblTempVendorCDR_20' ) end [2025-01-10 09:11:19] Production.INFO: ProcessCDR(1,14215914,1,1,2) [2025-01-10 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215914', 'tblTempUsageDetail_20' ) start [2025-01-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215914', 'tblTempUsageDetail_20' ) end [2025-01-10 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:11:24] Production.INFO: ==32252== Releasing lock... [2025-01-10 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:11:24] Production.INFO: 35 MB #Memory Used# [2025-01-10 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:12:05 [end_date_ymd] => 2025-01-10 09:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:12:05' and `end` < '2025-01-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-01-10 09:12:19] Production.INFO: count ==937 [2025-01-10 09:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:12:05 - End Time 2025-01-10 09:12:05 [2025-01-10 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215919', 'tblTempUsageDetail_20' ) start [2025-01-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215919', 'tblTempUsageDetail_20' ) end [2025-01-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215919', 'tblTempVendorCDR_20' ) start [2025-01-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215919', 'tblTempVendorCDR_20' ) end [2025-01-10 09:12:19] Production.INFO: ProcessCDR(1,14215919,1,1,2) [2025-01-10 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215919', 'tblTempUsageDetail_20' ) start [2025-01-10 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215919', 'tblTempUsageDetail_20' ) end [2025-01-10 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:12:23] Production.INFO: ==32324== Releasing lock... [2025-01-10 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:12:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:13:05 [end_date_ymd] => 2025-01-10 09:13:05 [RateCDR] => 1 ) [2025-01-10 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:13:05' and `end` < '2025-01-10 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:13:18] Production.INFO: count ==957 [2025-01-10 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:13:05 - End Time 2025-01-10 09:13:05 [2025-01-10 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215924', 'tblTempUsageDetail_20' ) start [2025-01-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215924', 'tblTempUsageDetail_20' ) end [2025-01-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215924', 'tblTempVendorCDR_20' ) start [2025-01-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215924', 'tblTempVendorCDR_20' ) end [2025-01-10 09:13:18] Production.INFO: ProcessCDR(1,14215924,1,1,2) [2025-01-10 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215924', 'tblTempUsageDetail_20' ) start [2025-01-10 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215924', 'tblTempUsageDetail_20' ) end [2025-01-10 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:13:21] Production.INFO: ==32394== Releasing lock... [2025-01-10 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:13:21] Production.INFO: 36 MB #Memory Used# [2025-01-10 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:14:05 [end_date_ymd] => 2025-01-10 09:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:14:05' and `end` < '2025-01-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-01-10 09:14:18] Production.INFO: count ==987 [2025-01-10 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:14:05 - End Time 2025-01-10 09:14:05 [2025-01-10 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215929', 'tblTempUsageDetail_20' ) start [2025-01-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215929', 'tblTempUsageDetail_20' ) end [2025-01-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215929', 'tblTempVendorCDR_20' ) start [2025-01-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215929', 'tblTempVendorCDR_20' ) end [2025-01-10 09:14:18] Production.INFO: ProcessCDR(1,14215929,1,1,2) [2025-01-10 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215929', 'tblTempUsageDetail_20' ) start [2025-01-10 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215929', 'tblTempUsageDetail_20' ) end [2025-01-10 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:14:21] Production.INFO: ==32471== Releasing lock... [2025-01-10 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:14:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:15:05 [end_date_ymd] => 2025-01-10 09:15:05 [RateCDR] => 1 ) [2025-01-10 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:15:05' and `end` < '2025-01-10 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:15:18] Production.INFO: count ==1006 [2025-01-10 09:15:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:15:05 - End Time 2025-01-10 09:15:05 [2025-01-10 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215934', 'tblTempUsageDetail_20' ) start [2025-01-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215934', 'tblTempUsageDetail_20' ) end [2025-01-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215934', 'tblTempVendorCDR_20' ) start [2025-01-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215934', 'tblTempVendorCDR_20' ) end [2025-01-10 09:15:19] Production.INFO: ProcessCDR(1,14215934,1,1,2) [2025-01-10 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215934', 'tblTempUsageDetail_20' ) start [2025-01-10 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215934', 'tblTempUsageDetail_20' ) end [2025-01-10 09:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:15:22] Production.INFO: ==32546== Releasing lock... [2025-01-10 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:15:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:16:05 [end_date_ymd] => 2025-01-10 09:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:16:05' and `end` < '2025-01-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-01-10 09:16:18] Production.INFO: count ==1019 [2025-01-10 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:16:05 - End Time 2025-01-10 09:16:05 [2025-01-10 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215939', 'tblTempUsageDetail_20' ) start [2025-01-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215939', 'tblTempUsageDetail_20' ) end [2025-01-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215939', 'tblTempVendorCDR_20' ) start [2025-01-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215939', 'tblTempVendorCDR_20' ) end [2025-01-10 09:16:18] Production.INFO: ProcessCDR(1,14215939,1,1,2) [2025-01-10 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215939', 'tblTempUsageDetail_20' ) start [2025-01-10 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215939', 'tblTempUsageDetail_20' ) end [2025-01-10 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:16:23] Production.INFO: ==32617== Releasing lock... [2025-01-10 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:16:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:17:06 [end_date_ymd] => 2025-01-10 09:17:06 [RateCDR] => 1 ) [2025-01-10 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:17:06' and `end` < '2025-01-10 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:17:19] Production.INFO: count ==1024 [2025-01-10 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:17:06 - End Time 2025-01-10 09:17:06 [2025-01-10 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215944', 'tblTempUsageDetail_20' ) start [2025-01-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215944', 'tblTempUsageDetail_20' ) end [2025-01-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215944', 'tblTempVendorCDR_20' ) start [2025-01-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215944', 'tblTempVendorCDR_20' ) end [2025-01-10 09:17:19] Production.INFO: ProcessCDR(1,14215944,1,1,2) [2025-01-10 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215944', 'tblTempUsageDetail_20' ) start [2025-01-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215944', 'tblTempUsageDetail_20' ) end [2025-01-10 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:17:24] Production.INFO: ==32689== Releasing lock... [2025-01-10 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:17:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:18:04 [end_date_ymd] => 2025-01-10 09:18:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:18:04' and `end` < '2025-01-10 09: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-01-10 09:18:18] Production.INFO: count ==1034 [2025-01-10 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:18:04 - End Time 2025-01-10 09:18:04 [2025-01-10 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215949', 'tblTempUsageDetail_20' ) start [2025-01-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215949', 'tblTempUsageDetail_20' ) end [2025-01-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215949', 'tblTempVendorCDR_20' ) start [2025-01-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215949', 'tblTempVendorCDR_20' ) end [2025-01-10 09:18:18] Production.INFO: ProcessCDR(1,14215949,1,1,2) [2025-01-10 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215949', 'tblTempUsageDetail_20' ) start [2025-01-10 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215949', 'tblTempUsageDetail_20' ) end [2025-01-10 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:18:23] Production.INFO: ==32758== Releasing lock... [2025-01-10 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:18:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:19:04 [end_date_ymd] => 2025-01-10 09:19:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:19:04' and `end` < '2025-01-10 09: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-01-10 09:19:18] Production.INFO: count ==1041 [2025-01-10 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:19:04 - End Time 2025-01-10 09:19:04 [2025-01-10 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215953', 'tblTempUsageDetail_20' ) start [2025-01-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215953', 'tblTempUsageDetail_20' ) end [2025-01-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215953', 'tblTempVendorCDR_20' ) start [2025-01-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215953', 'tblTempVendorCDR_20' ) end [2025-01-10 09:19:18] Production.INFO: ProcessCDR(1,14215953,1,1,2) [2025-01-10 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215953', 'tblTempUsageDetail_20' ) start [2025-01-10 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215953', 'tblTempUsageDetail_20' ) end [2025-01-10 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:19:23] Production.INFO: ==382== Releasing lock... [2025-01-10 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-01-10 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:20:05 [end_date_ymd] => 2025-01-10 09:20:05 [RateCDR] => 1 ) [2025-01-10 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:20:05' and `end` < '2025-01-10 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:20:19] Production.INFO: count ==1080 [2025-01-10 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:20:05 - End Time 2025-01-10 09:20:05 [2025-01-10 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215960', 'tblTempUsageDetail_20' ) start [2025-01-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215960', 'tblTempUsageDetail_20' ) end [2025-01-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215960', 'tblTempVendorCDR_20' ) start [2025-01-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215960', 'tblTempVendorCDR_20' ) end [2025-01-10 09:20:19] Production.INFO: ProcessCDR(1,14215960,1,1,2) [2025-01-10 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215960', 'tblTempUsageDetail_20' ) start [2025-01-10 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215960', 'tblTempUsageDetail_20' ) end [2025-01-10 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:20:24] Production.INFO: ==456== Releasing lock... [2025-01-10 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:20:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:21:04 [end_date_ymd] => 2025-01-10 09:21:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:21:04' and `end` < '2025-01-10 09: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-01-10 09:21:18] Production.INFO: count ==1136 [2025-01-10 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:21:04 - End Time 2025-01-10 09:21:04 [2025-01-10 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215965', 'tblTempUsageDetail_20' ) start [2025-01-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215965', 'tblTempUsageDetail_20' ) end [2025-01-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215965', 'tblTempVendorCDR_20' ) start [2025-01-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215965', 'tblTempVendorCDR_20' ) end [2025-01-10 09:21:18] Production.INFO: ProcessCDR(1,14215965,1,1,2) [2025-01-10 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215965', 'tblTempUsageDetail_20' ) start [2025-01-10 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215965', 'tblTempUsageDetail_20' ) end [2025-01-10 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:21:23] Production.INFO: ==533== Releasing lock... [2025-01-10 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:21:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:22:05 [end_date_ymd] => 2025-01-10 09:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:22:05' and `end` < '2025-01-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-01-10 09:22:19] Production.INFO: count ==1143 [2025-01-10 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:22:05 - End Time 2025-01-10 09:22:05 [2025-01-10 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215970', 'tblTempUsageDetail_20' ) start [2025-01-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215970', 'tblTempUsageDetail_20' ) end [2025-01-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215970', 'tblTempVendorCDR_20' ) start [2025-01-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215970', 'tblTempVendorCDR_20' ) end [2025-01-10 09:22:19] Production.INFO: ProcessCDR(1,14215970,1,1,2) [2025-01-10 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215970', 'tblTempUsageDetail_20' ) start [2025-01-10 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215970', 'tblTempUsageDetail_20' ) end [2025-01-10 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:22:22] Production.INFO: ==608== Releasing lock... [2025-01-10 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:23:05 [end_date_ymd] => 2025-01-10 09:23:05 [RateCDR] => 1 ) [2025-01-10 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:23:05' and `end` < '2025-01-10 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:23:18] Production.INFO: count ==1157 [2025-01-10 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:23:05 - End Time 2025-01-10 09:23:05 [2025-01-10 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215975', 'tblTempUsageDetail_20' ) start [2025-01-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215975', 'tblTempUsageDetail_20' ) end [2025-01-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215975', 'tblTempVendorCDR_20' ) start [2025-01-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215975', 'tblTempVendorCDR_20' ) end [2025-01-10 09:23:18] Production.INFO: ProcessCDR(1,14215975,1,1,2) [2025-01-10 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215975', 'tblTempUsageDetail_20' ) start [2025-01-10 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215975', 'tblTempUsageDetail_20' ) end [2025-01-10 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:23:23] Production.INFO: ==752== Releasing lock... [2025-01-10 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:23:23] Production.INFO: 37 MB #Memory Used# [2025-01-10 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:24:05 [end_date_ymd] => 2025-01-10 09:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:24:05' and `end` < '2025-01-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-01-10 09:24:18] Production.INFO: count ==1159 [2025-01-10 09:24:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:24:05 - End Time 2025-01-10 09:24:05 [2025-01-10 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215980', 'tblTempUsageDetail_20' ) start [2025-01-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215980', 'tblTempUsageDetail_20' ) end [2025-01-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215980', 'tblTempVendorCDR_20' ) start [2025-01-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215980', 'tblTempVendorCDR_20' ) end [2025-01-10 09:24:19] Production.INFO: ProcessCDR(1,14215980,1,1,2) [2025-01-10 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215980', 'tblTempUsageDetail_20' ) start [2025-01-10 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215980', 'tblTempUsageDetail_20' ) end [2025-01-10 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:24:23] Production.INFO: ==827== Releasing lock... [2025-01-10 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:24:23] Production.INFO: 37 MB #Memory Used# [2025-01-10 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:25:04 [end_date_ymd] => 2025-01-10 09:25:04 [RateCDR] => 1 ) [2025-01-10 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:25:04' and `end` < '2025-01-10 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:25:18] Production.INFO: count ==1187 [2025-01-10 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:25:04 - End Time 2025-01-10 09:25:04 [2025-01-10 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215985', 'tblTempUsageDetail_20' ) start [2025-01-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215985', 'tblTempUsageDetail_20' ) end [2025-01-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215985', 'tblTempVendorCDR_20' ) start [2025-01-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215985', 'tblTempVendorCDR_20' ) end [2025-01-10 09:25:18] Production.INFO: ProcessCDR(1,14215985,1,1,2) [2025-01-10 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215985', 'tblTempUsageDetail_20' ) start [2025-01-10 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215985', 'tblTempUsageDetail_20' ) end [2025-01-10 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:25:23] Production.INFO: ==897== Releasing lock... [2025-01-10 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:26:05 [end_date_ymd] => 2025-01-10 09:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:26:05' and `end` < '2025-01-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-01-10 09:26:18] Production.INFO: count ==1203 [2025-01-10 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:26:05 - End Time 2025-01-10 09:26:05 [2025-01-10 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215990', 'tblTempUsageDetail_20' ) start [2025-01-10 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215990', 'tblTempUsageDetail_20' ) end [2025-01-10 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215990', 'tblTempVendorCDR_20' ) start [2025-01-10 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215990', 'tblTempVendorCDR_20' ) end [2025-01-10 09:26:18] Production.INFO: ProcessCDR(1,14215990,1,1,2) [2025-01-10 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215990', 'tblTempUsageDetail_20' ) start [2025-01-10 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215990', 'tblTempUsageDetail_20' ) end [2025-01-10 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:26:23] Production.INFO: ==968== Releasing lock... [2025-01-10 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:27:04 [end_date_ymd] => 2025-01-10 09:27:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:27:04' and `end` < '2025-01-10 09: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-01-10 09:27:18] Production.INFO: count ==1215 [2025-01-10 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:27:04 - End Time 2025-01-10 09:27:04 [2025-01-10 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215995', 'tblTempUsageDetail_20' ) start [2025-01-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14215995', 'tblTempUsageDetail_20' ) end [2025-01-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215995', 'tblTempVendorCDR_20' ) start [2025-01-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14215995', 'tblTempVendorCDR_20' ) end [2025-01-10 09:27:18] Production.INFO: ProcessCDR(1,14215995,1,1,2) [2025-01-10 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14215995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14215995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14215995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14215995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215995', 'tblTempUsageDetail_20' ) start [2025-01-10 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14215995', 'tblTempUsageDetail_20' ) end [2025-01-10 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:27:23] Production.INFO: ==1038== Releasing lock... [2025-01-10 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:28:05 [end_date_ymd] => 2025-01-10 09:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:28:05' and `end` < '2025-01-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-01-10 09:28:23] Production.INFO: count ==1222 [2025-01-10 09:28:24] Production.ERROR: pbx CDR StartTime 2025-01-10 06:28:05 - End Time 2025-01-10 09:28:05 [2025-01-10 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216000', 'tblTempUsageDetail_20' ) start [2025-01-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216000', 'tblTempUsageDetail_20' ) end [2025-01-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216000', 'tblTempVendorCDR_20' ) start [2025-01-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216000', 'tblTempVendorCDR_20' ) end [2025-01-10 09:28:24] Production.INFO: ProcessCDR(1,14216000,1,1,2) [2025-01-10 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216000', 'tblTempUsageDetail_20' ) start [2025-01-10 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216000', 'tblTempUsageDetail_20' ) end [2025-01-10 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:28:29] Production.INFO: ==1114== Releasing lock... [2025-01-10 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:28:29] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:29:05 [end_date_ymd] => 2025-01-10 09:29:05 [RateCDR] => 1 ) [2025-01-10 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:29:05' and `end` < '2025-01-10 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:29:21] Production.INFO: count ==1269 [2025-01-10 09:29:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:29:05 - End Time 2025-01-10 09:29:05 [2025-01-10 09:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216005', 'tblTempUsageDetail_20' ) start [2025-01-10 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216005', 'tblTempUsageDetail_20' ) end [2025-01-10 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216005', 'tblTempVendorCDR_20' ) start [2025-01-10 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216005', 'tblTempVendorCDR_20' ) end [2025-01-10 09:29:21] Production.INFO: ProcessCDR(1,14216005,1,1,2) [2025-01-10 09:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216005', 'tblTempUsageDetail_20' ) start [2025-01-10 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216005', 'tblTempUsageDetail_20' ) end [2025-01-10 09:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:29:26] Production.INFO: ==1195== Releasing lock... [2025-01-10 09:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:29:26] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:30:06 [end_date_ymd] => 2025-01-10 09:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 06:30:06' and `end` < '2025-01-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-01-10 09:30:24] Production.INFO: count ==1287 [2025-01-10 09:30:24] Production.ERROR: pbx CDR StartTime 2025-01-10 06:30:06 - End Time 2025-01-10 09:30:06 [2025-01-10 09:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216011', 'tblTempUsageDetail_20' ) start [2025-01-10 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216011', 'tblTempUsageDetail_20' ) end [2025-01-10 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216011', 'tblTempVendorCDR_20' ) start [2025-01-10 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216011', 'tblTempVendorCDR_20' ) end [2025-01-10 09:30:24] Production.INFO: ProcessCDR(1,14216011,1,1,2) [2025-01-10 09:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216011', 'tblTempUsageDetail_20' ) start [2025-01-10 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216011', 'tblTempUsageDetail_20' ) end [2025-01-10 09:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:30:29] Production.INFO: ==1280== Releasing lock... [2025-01-10 09:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:30:29] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:31:04 [end_date_ymd] => 2025-01-10 09:31:04 [RateCDR] => 1 ) [2025-01-10 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:31:04' and `end` < '2025-01-10 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:31:20] Production.INFO: count ==1326 [2025-01-10 09:31:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:31:04 - End Time 2025-01-10 09:31:04 [2025-01-10 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216016', 'tblTempUsageDetail_20' ) start [2025-01-10 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216016', 'tblTempUsageDetail_20' ) end [2025-01-10 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216016', 'tblTempVendorCDR_20' ) start [2025-01-10 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216016', 'tblTempVendorCDR_20' ) end [2025-01-10 09:31:20] Production.INFO: ProcessCDR(1,14216016,1,1,2) [2025-01-10 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216016', 'tblTempUsageDetail_20' ) start [2025-01-10 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216016', 'tblTempUsageDetail_20' ) end [2025-01-10 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:31:25] Production.INFO: ==1351== Releasing lock... [2025-01-10 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:31:25] Production.INFO: 38 MB #Memory Used# [2025-01-10 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:32:04 [end_date_ymd] => 2025-01-10 09:32:04 [RateCDR] => 1 ) [2025-01-10 09:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:32:04' and `end` < '2025-01-10 09:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:32:18] Production.INFO: count ==1347 [2025-01-10 09:32:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:32:04 - End Time 2025-01-10 09:32:04 [2025-01-10 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216021', 'tblTempUsageDetail_20' ) start [2025-01-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216021', 'tblTempUsageDetail_20' ) end [2025-01-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216021', 'tblTempVendorCDR_20' ) start [2025-01-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216021', 'tblTempVendorCDR_20' ) end [2025-01-10 09:32:19] Production.INFO: ProcessCDR(1,14216021,1,1,2) [2025-01-10 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216021', 'tblTempUsageDetail_20' ) start [2025-01-10 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216021', 'tblTempUsageDetail_20' ) end [2025-01-10 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:32:23] Production.INFO: ==1421== Releasing lock... [2025-01-10 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:33:05 [end_date_ymd] => 2025-01-10 09:33:05 [RateCDR] => 1 ) [2025-01-10 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:33:05' and `end` < '2025-01-10 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:33:19] Production.INFO: count ==1357 [2025-01-10 09:33:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:33:05 - End Time 2025-01-10 09:33:05 [2025-01-10 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216026', 'tblTempUsageDetail_20' ) start [2025-01-10 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216026', 'tblTempUsageDetail_20' ) end [2025-01-10 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216026', 'tblTempVendorCDR_20' ) start [2025-01-10 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216026', 'tblTempVendorCDR_20' ) end [2025-01-10 09:33:20] Production.INFO: ProcessCDR(1,14216026,1,1,2) [2025-01-10 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216026', 'tblTempUsageDetail_20' ) start [2025-01-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216026', 'tblTempUsageDetail_20' ) end [2025-01-10 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:33:24] Production.INFO: ==1493== Releasing lock... [2025-01-10 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:33:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:34:04 [end_date_ymd] => 2025-01-10 09:34:04 [RateCDR] => 1 ) [2025-01-10 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:34:04' and `end` < '2025-01-10 09:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:34:20] Production.INFO: count ==1363 [2025-01-10 09:34:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:34:04 - End Time 2025-01-10 09:34:04 [2025-01-10 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216031', 'tblTempUsageDetail_20' ) start [2025-01-10 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216031', 'tblTempUsageDetail_20' ) end [2025-01-10 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216031', 'tblTempVendorCDR_20' ) start [2025-01-10 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216031', 'tblTempVendorCDR_20' ) end [2025-01-10 09:34:21] Production.INFO: ProcessCDR(1,14216031,1,1,2) [2025-01-10 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216031', 'tblTempUsageDetail_20' ) start [2025-01-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216031', 'tblTempUsageDetail_20' ) end [2025-01-10 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:34:24] Production.INFO: ==1603== Releasing lock... [2025-01-10 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:34:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:35:05 [end_date_ymd] => 2025-01-10 09:35:05 [RateCDR] => 1 ) [2025-01-10 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:35:05' and `end` < '2025-01-10 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:35:19] Production.INFO: count ==1380 [2025-01-10 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:35:05 - End Time 2025-01-10 09:35:05 [2025-01-10 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216036', 'tblTempUsageDetail_20' ) start [2025-01-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216036', 'tblTempUsageDetail_20' ) end [2025-01-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216036', 'tblTempVendorCDR_20' ) start [2025-01-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216036', 'tblTempVendorCDR_20' ) end [2025-01-10 09:35:19] Production.INFO: ProcessCDR(1,14216036,1,1,2) [2025-01-10 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216036', 'tblTempUsageDetail_20' ) start [2025-01-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216036', 'tblTempUsageDetail_20' ) end [2025-01-10 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:35:24] Production.INFO: ==1676== Releasing lock... [2025-01-10 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:35:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:36:04 [end_date_ymd] => 2025-01-10 09:36:04 [RateCDR] => 1 ) [2025-01-10 09:36: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-01-10 06:36:04' and `end` < '2025-01-10 09:36: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-01-10 09:36:18] Production.INFO: count ==1389 [2025-01-10 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:36:04 - End Time 2025-01-10 09:36:04 [2025-01-10 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216041', 'tblTempUsageDetail_20' ) start [2025-01-10 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216041', 'tblTempUsageDetail_20' ) end [2025-01-10 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216041', 'tblTempVendorCDR_20' ) start [2025-01-10 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216041', 'tblTempVendorCDR_20' ) end [2025-01-10 09:36:18] Production.INFO: ProcessCDR(1,14216041,1,1,2) [2025-01-10 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216041', 'tblTempUsageDetail_20' ) start [2025-01-10 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216041', 'tblTempUsageDetail_20' ) end [2025-01-10 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:36:23] Production.INFO: ==1745== Releasing lock... [2025-01-10 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:36:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:37:05 [end_date_ymd] => 2025-01-10 09:37:05 [RateCDR] => 1 ) [2025-01-10 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:37:05' and `end` < '2025-01-10 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:37:20] Production.INFO: count ==1412 [2025-01-10 09:37:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:37:05 - End Time 2025-01-10 09:37:05 [2025-01-10 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216046', 'tblTempUsageDetail_20' ) start [2025-01-10 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216046', 'tblTempUsageDetail_20' ) end [2025-01-10 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216046', 'tblTempVendorCDR_20' ) start [2025-01-10 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216046', 'tblTempVendorCDR_20' ) end [2025-01-10 09:37:20] Production.INFO: ProcessCDR(1,14216046,1,1,2) [2025-01-10 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216046', 'tblTempUsageDetail_20' ) start [2025-01-10 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216046', 'tblTempUsageDetail_20' ) end [2025-01-10 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:37:25] Production.INFO: ==1817== Releasing lock... [2025-01-10 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:37:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:38:05 [end_date_ymd] => 2025-01-10 09:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:38:05' and `end` < '2025-01-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-01-10 09:38:21] Production.INFO: count ==1433 [2025-01-10 09:38:22] Production.ERROR: pbx CDR StartTime 2025-01-10 06:38:05 - End Time 2025-01-10 09:38:05 [2025-01-10 09:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216051', 'tblTempUsageDetail_20' ) start [2025-01-10 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216051', 'tblTempUsageDetail_20' ) end [2025-01-10 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216051', 'tblTempVendorCDR_20' ) start [2025-01-10 09:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216051', 'tblTempVendorCDR_20' ) end [2025-01-10 09:38:22] Production.INFO: ProcessCDR(1,14216051,1,1,2) [2025-01-10 09:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216051', 'tblTempUsageDetail_20' ) start [2025-01-10 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216051', 'tblTempUsageDetail_20' ) end [2025-01-10 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:38:26] Production.INFO: ==1892== Releasing lock... [2025-01-10 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:38:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:39:05 [end_date_ymd] => 2025-01-10 09:39:05 [RateCDR] => 1 ) [2025-01-10 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:39:05' and `end` < '2025-01-10 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:39:21] Production.INFO: count ==1437 [2025-01-10 09:39:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:39:05 - End Time 2025-01-10 09:39:05 [2025-01-10 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216056', 'tblTempUsageDetail_20' ) start [2025-01-10 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216056', 'tblTempUsageDetail_20' ) end [2025-01-10 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216056', 'tblTempVendorCDR_20' ) start [2025-01-10 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216056', 'tblTempVendorCDR_20' ) end [2025-01-10 09:39:21] Production.INFO: ProcessCDR(1,14216056,1,1,2) [2025-01-10 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216056', 'tblTempUsageDetail_20' ) start [2025-01-10 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216056', 'tblTempUsageDetail_20' ) end [2025-01-10 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:39:26] Production.INFO: ==2004== Releasing lock... [2025-01-10 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:39:26] Production.INFO: 39 MB #Memory Used# [2025-01-10 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:40:05 [end_date_ymd] => 2025-01-10 09:40:05 [RateCDR] => 1 ) [2025-01-10 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:40:05' and `end` < '2025-01-10 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:40:20] Production.INFO: count ==1458 [2025-01-10 09:40:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:40:05 - End Time 2025-01-10 09:40:05 [2025-01-10 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216061', 'tblTempUsageDetail_20' ) start [2025-01-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216061', 'tblTempUsageDetail_20' ) end [2025-01-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216061', 'tblTempVendorCDR_20' ) start [2025-01-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216061', 'tblTempVendorCDR_20' ) end [2025-01-10 09:40:20] Production.INFO: ProcessCDR(1,14216061,1,1,2) [2025-01-10 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216061', 'tblTempUsageDetail_20' ) start [2025-01-10 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216061', 'tblTempUsageDetail_20' ) end [2025-01-10 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:40:25] Production.INFO: ==2077== Releasing lock... [2025-01-10 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:40:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:41:04 [end_date_ymd] => 2025-01-10 09:41:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:41:04' and `end` < '2025-01-10 09: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-01-10 09:41:18] Production.INFO: count ==1520 [2025-01-10 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:41:04 - End Time 2025-01-10 09:41:04 [2025-01-10 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216067', 'tblTempUsageDetail_20' ) start [2025-01-10 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216067', 'tblTempUsageDetail_20' ) end [2025-01-10 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216067', 'tblTempVendorCDR_20' ) start [2025-01-10 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216067', 'tblTempVendorCDR_20' ) end [2025-01-10 09:41:18] Production.INFO: ProcessCDR(1,14216067,1,1,2) [2025-01-10 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216067', 'tblTempUsageDetail_20' ) start [2025-01-10 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216067', 'tblTempUsageDetail_20' ) end [2025-01-10 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:41:23] Production.INFO: ==2153== Releasing lock... [2025-01-10 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-10 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:42:05 [end_date_ymd] => 2025-01-10 09:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:42:05' and `end` < '2025-01-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-01-10 09:42:19] Production.INFO: count ==1522 [2025-01-10 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:42:05 - End Time 2025-01-10 09:42:05 [2025-01-10 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216072', 'tblTempUsageDetail_20' ) start [2025-01-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216072', 'tblTempUsageDetail_20' ) end [2025-01-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216072', 'tblTempVendorCDR_20' ) start [2025-01-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216072', 'tblTempVendorCDR_20' ) end [2025-01-10 09:42:19] Production.INFO: ProcessCDR(1,14216072,1,1,2) [2025-01-10 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216072', 'tblTempUsageDetail_20' ) start [2025-01-10 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216072', 'tblTempUsageDetail_20' ) end [2025-01-10 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:42:24] Production.INFO: ==2227== Releasing lock... [2025-01-10 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-10 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:43:04 [end_date_ymd] => 2025-01-10 09:43:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:43:04' and `end` < '2025-01-10 09: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-01-10 09:43:19] Production.INFO: count ==1537 [2025-01-10 09:43:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:43:04 - End Time 2025-01-10 09:43:04 [2025-01-10 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216077', 'tblTempUsageDetail_20' ) start [2025-01-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216077', 'tblTempUsageDetail_20' ) end [2025-01-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216077', 'tblTempVendorCDR_20' ) start [2025-01-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216077', 'tblTempVendorCDR_20' ) end [2025-01-10 09:43:20] Production.INFO: ProcessCDR(1,14216077,1,1,2) [2025-01-10 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216077', 'tblTempUsageDetail_20' ) start [2025-01-10 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216077', 'tblTempUsageDetail_20' ) end [2025-01-10 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:43:24] Production.INFO: ==2296== Releasing lock... [2025-01-10 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:43:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-10 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:44:04 [end_date_ymd] => 2025-01-10 09:44:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:44:04' and `end` < '2025-01-10 09: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-01-10 09:44:18] Production.INFO: count ==1544 [2025-01-10 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:44:04 - End Time 2025-01-10 09:44:04 [2025-01-10 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216082', 'tblTempUsageDetail_20' ) start [2025-01-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216082', 'tblTempUsageDetail_20' ) end [2025-01-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216082', 'tblTempVendorCDR_20' ) start [2025-01-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216082', 'tblTempVendorCDR_20' ) end [2025-01-10 09:44:19] Production.INFO: ProcessCDR(1,14216082,1,1,2) [2025-01-10 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216082', 'tblTempUsageDetail_20' ) start [2025-01-10 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216082', 'tblTempUsageDetail_20' ) end [2025-01-10 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:44:23] Production.INFO: ==2366== Releasing lock... [2025-01-10 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:44:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:45:05 [end_date_ymd] => 2025-01-10 09:45:05 [RateCDR] => 1 ) [2025-01-10 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:45:05' and `end` < '2025-01-10 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:45:19] Production.INFO: count ==1575 [2025-01-10 09:45:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:45:05 - End Time 2025-01-10 09:45:05 [2025-01-10 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216087', 'tblTempUsageDetail_20' ) start [2025-01-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216087', 'tblTempUsageDetail_20' ) end [2025-01-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216087', 'tblTempVendorCDR_20' ) start [2025-01-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216087', 'tblTempVendorCDR_20' ) end [2025-01-10 09:45:20] Production.INFO: ProcessCDR(1,14216087,1,1,2) [2025-01-10 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216087', 'tblTempUsageDetail_20' ) start [2025-01-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216087', 'tblTempUsageDetail_20' ) end [2025-01-10 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:45:24] Production.INFO: ==2439== Releasing lock... [2025-01-10 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:45:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:46:05 [end_date_ymd] => 2025-01-10 09:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:46:05' and `end` < '2025-01-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-01-10 09:46:21] Production.INFO: count ==1593 [2025-01-10 09:46:22] Production.ERROR: pbx CDR StartTime 2025-01-10 06:46:05 - End Time 2025-01-10 09:46:05 [2025-01-10 09:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216092', 'tblTempUsageDetail_20' ) start [2025-01-10 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216092', 'tblTempUsageDetail_20' ) end [2025-01-10 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216092', 'tblTempVendorCDR_20' ) start [2025-01-10 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216092', 'tblTempVendorCDR_20' ) end [2025-01-10 09:46:22] Production.INFO: ProcessCDR(1,14216092,1,1,2) [2025-01-10 09:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216092', 'tblTempUsageDetail_20' ) start [2025-01-10 09:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216092', 'tblTempUsageDetail_20' ) end [2025-01-10 09:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:46:27] Production.INFO: ==2511== Releasing lock... [2025-01-10 09:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:46:27] Production.INFO: 40 MB #Memory Used# [2025-01-10 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:47:05 [end_date_ymd] => 2025-01-10 09:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:47:05' and `end` < '2025-01-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-01-10 09:47:20] Production.INFO: count ==1600 [2025-01-10 09:47:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:47:05 - End Time 2025-01-10 09:47:05 [2025-01-10 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216097', 'tblTempUsageDetail_20' ) start [2025-01-10 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216097', 'tblTempUsageDetail_20' ) end [2025-01-10 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216097', 'tblTempVendorCDR_20' ) start [2025-01-10 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216097', 'tblTempVendorCDR_20' ) end [2025-01-10 09:47:21] Production.INFO: ProcessCDR(1,14216097,1,1,2) [2025-01-10 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216097', 'tblTempUsageDetail_20' ) start [2025-01-10 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216097', 'tblTempUsageDetail_20' ) end [2025-01-10 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:47:25] Production.INFO: ==2584== Releasing lock... [2025-01-10 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:47:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-10 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:48:04 [end_date_ymd] => 2025-01-10 09:48:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:48:04' and `end` < '2025-01-10 09: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-01-10 09:48:18] Production.INFO: count ==1611 [2025-01-10 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:48:04 - End Time 2025-01-10 09:48:04 [2025-01-10 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216102', 'tblTempUsageDetail_20' ) start [2025-01-10 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216102', 'tblTempUsageDetail_20' ) end [2025-01-10 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216102', 'tblTempVendorCDR_20' ) start [2025-01-10 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216102', 'tblTempVendorCDR_20' ) end [2025-01-10 09:48:18] Production.INFO: ProcessCDR(1,14216102,1,1,2) [2025-01-10 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216102', 'tblTempUsageDetail_20' ) start [2025-01-10 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216102', 'tblTempUsageDetail_20' ) end [2025-01-10 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:48:23] Production.INFO: ==2654== Releasing lock... [2025-01-10 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:48:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-10 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:49:06 [end_date_ymd] => 2025-01-10 09:49:06 [RateCDR] => 1 ) [2025-01-10 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:49:06' and `end` < '2025-01-10 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:49:20] Production.INFO: count ==1615 [2025-01-10 09:49:20] Production.ERROR: pbx CDR StartTime 2025-01-10 06:49:06 - End Time 2025-01-10 09:49:06 [2025-01-10 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216107', 'tblTempUsageDetail_20' ) start [2025-01-10 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216107', 'tblTempUsageDetail_20' ) end [2025-01-10 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216107', 'tblTempVendorCDR_20' ) start [2025-01-10 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216107', 'tblTempVendorCDR_20' ) end [2025-01-10 09:49:20] Production.INFO: ProcessCDR(1,14216107,1,1,2) [2025-01-10 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216107', 'tblTempUsageDetail_20' ) start [2025-01-10 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216107', 'tblTempUsageDetail_20' ) end [2025-01-10 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:49:25] Production.INFO: ==2725== Releasing lock... [2025-01-10 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:49:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-10 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:50:06 [end_date_ymd] => 2025-01-10 09:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 06:50:06' and `end` < '2025-01-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-01-10 09:50:23] Production.INFO: count ==1625 [2025-01-10 09:50:24] Production.ERROR: pbx CDR StartTime 2025-01-10 06:50:06 - End Time 2025-01-10 09:50:06 [2025-01-10 09:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216113', 'tblTempUsageDetail_20' ) start [2025-01-10 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216113', 'tblTempUsageDetail_20' ) end [2025-01-10 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216113', 'tblTempVendorCDR_20' ) start [2025-01-10 09:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216113', 'tblTempVendorCDR_20' ) end [2025-01-10 09:50:24] Production.INFO: ProcessCDR(1,14216113,1,1,2) [2025-01-10 09:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216113', 'tblTempUsageDetail_20' ) start [2025-01-10 09:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216113', 'tblTempUsageDetail_20' ) end [2025-01-10 09:50:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:50:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:50:28] Production.INFO: ==2798== Releasing lock... [2025-01-10 09:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:50:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-10 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:51:04 [end_date_ymd] => 2025-01-10 09:51:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:51:04' and `end` < '2025-01-10 09: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-01-10 09:51:18] Production.INFO: count ==1684 [2025-01-10 09:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 06:51:04 - End Time 2025-01-10 09:51:04 [2025-01-10 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216117', 'tblTempUsageDetail_20' ) start [2025-01-10 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216117', 'tblTempUsageDetail_20' ) end [2025-01-10 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216117', 'tblTempVendorCDR_20' ) start [2025-01-10 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216117', 'tblTempVendorCDR_20' ) end [2025-01-10 09:51:18] Production.INFO: ProcessCDR(1,14216117,1,1,2) [2025-01-10 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216117', 'tblTempUsageDetail_20' ) start [2025-01-10 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216117', 'tblTempUsageDetail_20' ) end [2025-01-10 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:51:23] Production.INFO: ==2870== Releasing lock... [2025-01-10 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:51:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:52:05 [end_date_ymd] => 2025-01-10 09:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:52:05' and `end` < '2025-01-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-01-10 09:52:24] Production.INFO: count ==1697 [2025-01-10 09:52:25] Production.ERROR: pbx CDR StartTime 2025-01-10 06:52:05 - End Time 2025-01-10 09:52:05 [2025-01-10 09:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216123', 'tblTempUsageDetail_20' ) start [2025-01-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216123', 'tblTempUsageDetail_20' ) end [2025-01-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216123', 'tblTempVendorCDR_20' ) start [2025-01-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216123', 'tblTempVendorCDR_20' ) end [2025-01-10 09:52:25] Production.INFO: ProcessCDR(1,14216123,1,1,2) [2025-01-10 09:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216123', 'tblTempUsageDetail_20' ) start [2025-01-10 09:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216123', 'tblTempUsageDetail_20' ) end [2025-01-10 09:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:52:30] Production.INFO: ==2941== Releasing lock... [2025-01-10 09:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:52:30] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:53:05 [end_date_ymd] => 2025-01-10 09:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:53:05' and `end` < '2025-01-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-01-10 09:53:21] Production.INFO: count ==1709 [2025-01-10 09:53:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:53:05 - End Time 2025-01-10 09:53:05 [2025-01-10 09:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216128', 'tblTempUsageDetail_20' ) start [2025-01-10 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216128', 'tblTempUsageDetail_20' ) end [2025-01-10 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216128', 'tblTempVendorCDR_20' ) start [2025-01-10 09:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216128', 'tblTempVendorCDR_20' ) end [2025-01-10 09:53:21] Production.INFO: ProcessCDR(1,14216128,1,1,2) [2025-01-10 09:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216128', 'tblTempUsageDetail_20' ) start [2025-01-10 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216128', 'tblTempUsageDetail_20' ) end [2025-01-10 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:53:26] Production.INFO: ==3014== Releasing lock... [2025-01-10 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:53:26] Production.INFO: 41 MB #Memory Used# [2025-01-10 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:54:05 [end_date_ymd] => 2025-01-10 09:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:54:05' and `end` < '2025-01-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-01-10 09:54:18] Production.INFO: count ==1716 [2025-01-10 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:54:05 - End Time 2025-01-10 09:54:05 [2025-01-10 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216133', 'tblTempUsageDetail_20' ) start [2025-01-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216133', 'tblTempUsageDetail_20' ) end [2025-01-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216133', 'tblTempVendorCDR_20' ) start [2025-01-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216133', 'tblTempVendorCDR_20' ) end [2025-01-10 09:54:19] Production.INFO: ProcessCDR(1,14216133,1,1,2) [2025-01-10 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216133', 'tblTempUsageDetail_20' ) start [2025-01-10 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216133', 'tblTempUsageDetail_20' ) end [2025-01-10 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:54:24] Production.INFO: ==3127== Releasing lock... [2025-01-10 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:54:24] Production.INFO: 41 MB #Memory Used# [2025-01-10 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:55:06 [end_date_ymd] => 2025-01-10 09:55:06 [RateCDR] => 1 ) [2025-01-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-01-10 06:55:06' and `end` < '2025-01-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-01-10 09:55:22] Production.INFO: count ==1726 [2025-01-10 09:55:23] Production.ERROR: pbx CDR StartTime 2025-01-10 06:55:06 - End Time 2025-01-10 09:55:06 [2025-01-10 09:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216138', 'tblTempUsageDetail_20' ) start [2025-01-10 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216138', 'tblTempUsageDetail_20' ) end [2025-01-10 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216138', 'tblTempVendorCDR_20' ) start [2025-01-10 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216138', 'tblTempVendorCDR_20' ) end [2025-01-10 09:55:23] Production.INFO: ProcessCDR(1,14216138,1,1,2) [2025-01-10 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216138', 'tblTempUsageDetail_20' ) start [2025-01-10 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216138', 'tblTempUsageDetail_20' ) end [2025-01-10 09:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:55:28] Production.INFO: ==3199== Releasing lock... [2025-01-10 09:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:55:28] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:56:04 [end_date_ymd] => 2025-01-10 09:56:04 [RateCDR] => 1 ) [2025-01-10 09: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-01-10 06:56:04' and `end` < '2025-01-10 09: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-01-10 09:56:21] Production.INFO: count ==1752 [2025-01-10 09:56:22] Production.ERROR: pbx CDR StartTime 2025-01-10 06:56:04 - End Time 2025-01-10 09:56:04 [2025-01-10 09:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216143', 'tblTempUsageDetail_20' ) start [2025-01-10 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216143', 'tblTempUsageDetail_20' ) end [2025-01-10 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216143', 'tblTempVendorCDR_20' ) start [2025-01-10 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216143', 'tblTempVendorCDR_20' ) end [2025-01-10 09:56:22] Production.INFO: ProcessCDR(1,14216143,1,1,2) [2025-01-10 09:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216143', 'tblTempUsageDetail_20' ) start [2025-01-10 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216143', 'tblTempUsageDetail_20' ) end [2025-01-10 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:56:26] Production.INFO: ==3268== Releasing lock... [2025-01-10 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:56:26] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:57:05 [end_date_ymd] => 2025-01-10 09:57:05 [RateCDR] => 1 ) [2025-01-10 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:57:05' and `end` < '2025-01-10 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:57:18] Production.INFO: count ==1754 [2025-01-10 09:57:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:57:05 - End Time 2025-01-10 09:57:05 [2025-01-10 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216148', 'tblTempUsageDetail_20' ) start [2025-01-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216148', 'tblTempUsageDetail_20' ) end [2025-01-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216148', 'tblTempVendorCDR_20' ) start [2025-01-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216148', 'tblTempVendorCDR_20' ) end [2025-01-10 09:57:19] Production.INFO: ProcessCDR(1,14216148,1,1,2) [2025-01-10 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216148', 'tblTempUsageDetail_20' ) start [2025-01-10 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216148', 'tblTempUsageDetail_20' ) end [2025-01-10 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:57:24] Production.INFO: ==3338== Releasing lock... [2025-01-10 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:58:05 [end_date_ymd] => 2025-01-10 09:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 06:58:05' and `end` < '2025-01-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-01-10 09:58:20] Production.INFO: count ==1772 [2025-01-10 09:58:21] Production.ERROR: pbx CDR StartTime 2025-01-10 06:58:05 - End Time 2025-01-10 09:58:05 [2025-01-10 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216153', 'tblTempUsageDetail_20' ) start [2025-01-10 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216153', 'tblTempUsageDetail_20' ) end [2025-01-10 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216153', 'tblTempVendorCDR_20' ) start [2025-01-10 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216153', 'tblTempVendorCDR_20' ) end [2025-01-10 09:58:21] Production.INFO: ProcessCDR(1,14216153,1,1,2) [2025-01-10 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216153', 'tblTempUsageDetail_20' ) start [2025-01-10 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216153', 'tblTempUsageDetail_20' ) end [2025-01-10 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:58:26] Production.INFO: ==3408== Releasing lock... [2025-01-10 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:58:26] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 06:59:05 [end_date_ymd] => 2025-01-10 09:59:05 [RateCDR] => 1 ) [2025-01-10 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 06:59:05' and `end` < '2025-01-10 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 09:59:18] Production.INFO: count ==1777 [2025-01-10 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 06:59:05 - End Time 2025-01-10 09:59:05 [2025-01-10 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216158', 'tblTempUsageDetail_20' ) start [2025-01-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216158', 'tblTempUsageDetail_20' ) end [2025-01-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216158', 'tblTempVendorCDR_20' ) start [2025-01-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216158', 'tblTempVendorCDR_20' ) end [2025-01-10 09:59:19] Production.INFO: ProcessCDR(1,14216158,1,1,2) [2025-01-10 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216158', 'tblTempUsageDetail_20' ) start [2025-01-10 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216158', 'tblTempUsageDetail_20' ) end [2025-01-10 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 09:59:22] Production.INFO: ==3479== Releasing lock... [2025-01-10 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 09:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:00:05 [end_date_ymd] => 2025-01-10 10:00:05 [RateCDR] => 1 ) [2025-01-10 10:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:00:05' and `end` < '2025-01-10 10:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:00:19] Production.INFO: count ==1791 [2025-01-10 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 07:00:05 - End Time 2025-01-10 10:00:05 [2025-01-10 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216164', 'tblTempUsageDetail_20' ) start [2025-01-10 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216164', 'tblTempUsageDetail_20' ) end [2025-01-10 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216164', 'tblTempVendorCDR_20' ) start [2025-01-10 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216164', 'tblTempVendorCDR_20' ) end [2025-01-10 10:00:19] Production.INFO: ProcessCDR(1,14216164,1,1,2) [2025-01-10 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216164', 'tblTempUsageDetail_20' ) start [2025-01-10 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216164', 'tblTempUsageDetail_20' ) end [2025-01-10 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:00:24] Production.INFO: ==3556== Releasing lock... [2025-01-10 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:00:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:01:04 [end_date_ymd] => 2025-01-10 10:01:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:01:04' and `end` < '2025-01-10 10: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-01-10 10:01:20] Production.INFO: count ==1869 [2025-01-10 10:01:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:01:04 - End Time 2025-01-10 10:01:04 [2025-01-10 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216169', 'tblTempUsageDetail_20' ) start [2025-01-10 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216169', 'tblTempUsageDetail_20' ) end [2025-01-10 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216169', 'tblTempVendorCDR_20' ) start [2025-01-10 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216169', 'tblTempVendorCDR_20' ) end [2025-01-10 10:01:21] Production.INFO: ProcessCDR(1,14216169,1,1,2) [2025-01-10 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216169', 'tblTempUsageDetail_20' ) start [2025-01-10 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216169', 'tblTempUsageDetail_20' ) end [2025-01-10 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:01:26] Production.INFO: ==3645== Releasing lock... [2025-01-10 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:01:26] Production.INFO: 42 MB #Memory Used# [2025-01-10 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:02:05 [end_date_ymd] => 2025-01-10 10:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:02:05' and `end` < '2025-01-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-01-10 10:02:23] Production.INFO: count ==1885 [2025-01-10 10:02:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:02:05 - End Time 2025-01-10 10:02:05 [2025-01-10 10:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216174', 'tblTempUsageDetail_20' ) start [2025-01-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216174', 'tblTempUsageDetail_20' ) end [2025-01-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216174', 'tblTempVendorCDR_20' ) start [2025-01-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216174', 'tblTempVendorCDR_20' ) end [2025-01-10 10:02:23] Production.INFO: ProcessCDR(1,14216174,1,1,2) [2025-01-10 10:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216174', 'tblTempUsageDetail_20' ) start [2025-01-10 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216174', 'tblTempUsageDetail_20' ) end [2025-01-10 10:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:02:28] Production.INFO: ==3715== Releasing lock... [2025-01-10 10:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:02:28] Production.INFO: 42.25 MB #Memory Used# [2025-01-10 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:03:04 [end_date_ymd] => 2025-01-10 10:03:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:03:04' and `end` < '2025-01-10 10: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-01-10 10:03:20] Production.INFO: count ==1905 [2025-01-10 10:03:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:03:04 - End Time 2025-01-10 10:03:04 [2025-01-10 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216179', 'tblTempUsageDetail_20' ) start [2025-01-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216179', 'tblTempUsageDetail_20' ) end [2025-01-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216179', 'tblTempVendorCDR_20' ) start [2025-01-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216179', 'tblTempVendorCDR_20' ) end [2025-01-10 10:03:21] Production.INFO: ProcessCDR(1,14216179,1,1,2) [2025-01-10 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216179', 'tblTempUsageDetail_20' ) start [2025-01-10 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216179', 'tblTempUsageDetail_20' ) end [2025-01-10 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:03:25] Production.INFO: ==3787== Releasing lock... [2025-01-10 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:03:25] Production.INFO: 42.25 MB #Memory Used# [2025-01-10 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:04:05 [end_date_ymd] => 2025-01-10 10:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:04:05' and `end` < '2025-01-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-01-10 10:04:23] Production.INFO: count ==1917 [2025-01-10 10:04:24] Production.ERROR: pbx CDR StartTime 2025-01-10 07:04:05 - End Time 2025-01-10 10:04:05 [2025-01-10 10:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216184', 'tblTempUsageDetail_20' ) start [2025-01-10 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216184', 'tblTempUsageDetail_20' ) end [2025-01-10 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216184', 'tblTempVendorCDR_20' ) start [2025-01-10 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216184', 'tblTempVendorCDR_20' ) end [2025-01-10 10:04:24] Production.INFO: ProcessCDR(1,14216184,1,1,2) [2025-01-10 10:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216184', 'tblTempUsageDetail_20' ) start [2025-01-10 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216184', 'tblTempUsageDetail_20' ) end [2025-01-10 10:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:04:29] Production.INFO: ==3858== Releasing lock... [2025-01-10 10:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:04:29] Production.INFO: 42.75 MB #Memory Used# [2025-01-10 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:05:05 [end_date_ymd] => 2025-01-10 10:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:05:05' and `end` < '2025-01-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-01-10 10:05:23] Production.INFO: count ==1948 [2025-01-10 10:05:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:05:05 - End Time 2025-01-10 10:05:05 [2025-01-10 10:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216189', 'tblTempUsageDetail_20' ) start [2025-01-10 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216189', 'tblTempUsageDetail_20' ) end [2025-01-10 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216189', 'tblTempVendorCDR_20' ) start [2025-01-10 10:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216189', 'tblTempVendorCDR_20' ) end [2025-01-10 10:05:23] Production.INFO: ProcessCDR(1,14216189,1,1,2) [2025-01-10 10:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216189', 'tblTempUsageDetail_20' ) start [2025-01-10 10:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216189', 'tblTempUsageDetail_20' ) end [2025-01-10 10:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:05:28] Production.INFO: ==3929== Releasing lock... [2025-01-10 10:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:05:28] Production.INFO: 42.75 MB #Memory Used# [2025-01-10 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:06:05 [end_date_ymd] => 2025-01-10 10:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:06:05' and `end` < '2025-01-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-01-10 10:06:27] Production.INFO: count ==1972 [2025-01-10 10:06:28] Production.ERROR: pbx CDR StartTime 2025-01-10 07:06:05 - End Time 2025-01-10 10:06:05 [2025-01-10 10:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216194', 'tblTempUsageDetail_20' ) start [2025-01-10 10:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216194', 'tblTempUsageDetail_20' ) end [2025-01-10 10:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216194', 'tblTempVendorCDR_20' ) start [2025-01-10 10:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216194', 'tblTempVendorCDR_20' ) end [2025-01-10 10:06:28] Production.INFO: ProcessCDR(1,14216194,1,1,2) [2025-01-10 10:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216194', 'tblTempUsageDetail_20' ) start [2025-01-10 10:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216194', 'tblTempUsageDetail_20' ) end [2025-01-10 10:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:06:32] Production.INFO: ==4000== Releasing lock... [2025-01-10 10:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:06:32] Production.INFO: 42.75 MB #Memory Used# [2025-01-10 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:07:04 [end_date_ymd] => 2025-01-10 10:07:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:07:04' and `end` < '2025-01-10 10: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-01-10 10:07:26] Production.INFO: count ==1993 [2025-01-10 10:07:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:07:04 - End Time 2025-01-10 10:07:04 [2025-01-10 10:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216199', 'tblTempUsageDetail_20' ) start [2025-01-10 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216199', 'tblTempUsageDetail_20' ) end [2025-01-10 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216199', 'tblTempVendorCDR_20' ) start [2025-01-10 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216199', 'tblTempVendorCDR_20' ) end [2025-01-10 10:07:27] Production.INFO: ProcessCDR(1,14216199,1,1,2) [2025-01-10 10:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216199', 'tblTempUsageDetail_20' ) start [2025-01-10 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216199', 'tblTempUsageDetail_20' ) end [2025-01-10 10:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:07:32] Production.INFO: ==4076== Releasing lock... [2025-01-10 10:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:07:32] Production.INFO: 43 MB #Memory Used# [2025-01-10 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:08:05 [end_date_ymd] => 2025-01-10 10:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:08:05' and `end` < '2025-01-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-01-10 10:08:22] Production.INFO: count ==2002 [2025-01-10 10:08:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:08:05 - End Time 2025-01-10 10:08:05 [2025-01-10 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216204', 'tblTempUsageDetail_20' ) start [2025-01-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216204', 'tblTempUsageDetail_20' ) end [2025-01-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216204', 'tblTempVendorCDR_20' ) start [2025-01-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216204', 'tblTempVendorCDR_20' ) end [2025-01-10 10:08:23] Production.INFO: ProcessCDR(1,14216204,1,1,2) [2025-01-10 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216204', 'tblTempUsageDetail_20' ) start [2025-01-10 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216204', 'tblTempUsageDetail_20' ) end [2025-01-10 10:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:08:27] Production.INFO: ==4147== Releasing lock... [2025-01-10 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:08:27] Production.INFO: 43 MB #Memory Used# [2025-01-10 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:09:04 [end_date_ymd] => 2025-01-10 10:09:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:09:04' and `end` < '2025-01-10 10: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-01-10 10:09:22] Production.INFO: count ==2013 [2025-01-10 10:09:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:09:04 - End Time 2025-01-10 10:09:04 [2025-01-10 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216209', 'tblTempUsageDetail_20' ) start [2025-01-10 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216209', 'tblTempUsageDetail_20' ) end [2025-01-10 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216209', 'tblTempVendorCDR_20' ) start [2025-01-10 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216209', 'tblTempVendorCDR_20' ) end [2025-01-10 10:09:23] Production.INFO: ProcessCDR(1,14216209,1,1,2) [2025-01-10 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216209', 'tblTempUsageDetail_20' ) start [2025-01-10 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216209', 'tblTempUsageDetail_20' ) end [2025-01-10 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:09:28] Production.INFO: ==4240== Releasing lock... [2025-01-10 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:09:28] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:10:06 [end_date_ymd] => 2025-01-10 10:10:06 [RateCDR] => 1 ) [2025-01-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-01-10 07:10:06' and `end` < '2025-01-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-01-10 10:10:30] Production.INFO: count ==2042 [2025-01-10 10:10:30] Production.ERROR: pbx CDR StartTime 2025-01-10 07:10:06 - End Time 2025-01-10 10:10:06 [2025-01-10 10:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216215', 'tblTempUsageDetail_20' ) start [2025-01-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216215', 'tblTempUsageDetail_20' ) end [2025-01-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216215', 'tblTempVendorCDR_20' ) start [2025-01-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216215', 'tblTempVendorCDR_20' ) end [2025-01-10 10:10:30] Production.INFO: ProcessCDR(1,14216215,1,1,2) [2025-01-10 10:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216215', 'tblTempUsageDetail_20' ) start [2025-01-10 10:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216215', 'tblTempUsageDetail_20' ) end [2025-01-10 10:10:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:10:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:10:35] Production.INFO: ==4417== Releasing lock... [2025-01-10 10:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:10:35] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:11:05 [end_date_ymd] => 2025-01-10 10:11:05 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:11:05' and `end` < '2025-01-10 10: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-01-10 10:11:20] Production.INFO: count ==2124 [2025-01-10 10:11:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:11:05 - End Time 2025-01-10 10:11:05 [2025-01-10 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216220', 'tblTempUsageDetail_20' ) start [2025-01-10 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216220', 'tblTempUsageDetail_20' ) end [2025-01-10 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216220', 'tblTempVendorCDR_20' ) start [2025-01-10 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216220', 'tblTempVendorCDR_20' ) end [2025-01-10 10:11:21] Production.INFO: ProcessCDR(1,14216220,1,1,2) [2025-01-10 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216220', 'tblTempUsageDetail_20' ) start [2025-01-10 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216220', 'tblTempUsageDetail_20' ) end [2025-01-10 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:11:25] Production.INFO: ==4526== Releasing lock... [2025-01-10 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:11:25] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:12:04 [end_date_ymd] => 2025-01-10 10:12:04 [RateCDR] => 1 ) [2025-01-10 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:12:04' and `end` < '2025-01-10 10: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-01-10 10:12:18] Production.INFO: count ==2168 [2025-01-10 10:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 07:12:04 - End Time 2025-01-10 10:12:04 [2025-01-10 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216225', 'tblTempUsageDetail_20' ) start [2025-01-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216225', 'tblTempUsageDetail_20' ) end [2025-01-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216225', 'tblTempVendorCDR_20' ) start [2025-01-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216225', 'tblTempVendorCDR_20' ) end [2025-01-10 10:12:19] Production.INFO: ProcessCDR(1,14216225,1,1,2) [2025-01-10 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216225', 'tblTempUsageDetail_20' ) start [2025-01-10 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216225', 'tblTempUsageDetail_20' ) end [2025-01-10 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:12:24] Production.INFO: ==4639== Releasing lock... [2025-01-10 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:12:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:13:05 [end_date_ymd] => 2025-01-10 10:13:05 [RateCDR] => 1 ) [2025-01-10 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:13:05' and `end` < '2025-01-10 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:13:20] Production.INFO: count ==2180 [2025-01-10 10:13:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:13:05 - End Time 2025-01-10 10:13:05 [2025-01-10 10:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216230', 'tblTempUsageDetail_20' ) start [2025-01-10 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216230', 'tblTempUsageDetail_20' ) end [2025-01-10 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216230', 'tblTempVendorCDR_20' ) start [2025-01-10 10:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216230', 'tblTempVendorCDR_20' ) end [2025-01-10 10:13:21] Production.INFO: ProcessCDR(1,14216230,1,1,2) [2025-01-10 10:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216230', 'tblTempUsageDetail_20' ) start [2025-01-10 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216230', 'tblTempUsageDetail_20' ) end [2025-01-10 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:13:26] Production.INFO: ==4754== Releasing lock... [2025-01-10 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:13:26] Production.INFO: 44.5 MB #Memory Used# [2025-01-10 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:14:05 [end_date_ymd] => 2025-01-10 10:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:14:05' and `end` < '2025-01-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-01-10 10:14:20] Production.INFO: count ==2188 [2025-01-10 10:14:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:14:05 - End Time 2025-01-10 10:14:05 [2025-01-10 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216235', 'tblTempUsageDetail_20' ) start [2025-01-10 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216235', 'tblTempUsageDetail_20' ) end [2025-01-10 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216235', 'tblTempVendorCDR_20' ) start [2025-01-10 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216235', 'tblTempVendorCDR_20' ) end [2025-01-10 10:14:21] Production.INFO: ProcessCDR(1,14216235,1,1,2) [2025-01-10 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216235', 'tblTempUsageDetail_20' ) start [2025-01-10 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216235', 'tblTempUsageDetail_20' ) end [2025-01-10 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:14:26] Production.INFO: ==4849== Releasing lock... [2025-01-10 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:14:26] Production.INFO: 44.5 MB #Memory Used# [2025-01-10 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:15:05 [end_date_ymd] => 2025-01-10 10:15:05 [RateCDR] => 1 ) [2025-01-10 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:15:05' and `end` < '2025-01-10 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:15:19] Production.INFO: count ==2198 [2025-01-10 10:15:20] Production.ERROR: pbx CDR StartTime 2025-01-10 07:15:05 - End Time 2025-01-10 10:15:05 [2025-01-10 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216240', 'tblTempUsageDetail_20' ) start [2025-01-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216240', 'tblTempUsageDetail_20' ) end [2025-01-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216240', 'tblTempVendorCDR_20' ) start [2025-01-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216240', 'tblTempVendorCDR_20' ) end [2025-01-10 10:15:20] Production.INFO: ProcessCDR(1,14216240,1,1,2) [2025-01-10 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216240', 'tblTempUsageDetail_20' ) start [2025-01-10 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216240', 'tblTempUsageDetail_20' ) end [2025-01-10 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:15:24] Production.INFO: ==4920== Releasing lock... [2025-01-10 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:15:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-10 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:16:05 [end_date_ymd] => 2025-01-10 10:16:05 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:16:05' and `end` < '2025-01-10 10: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-01-10 10:16:32] Production.INFO: count ==2229 [2025-01-10 10:16:33] Production.ERROR: pbx CDR StartTime 2025-01-10 07:16:05 - End Time 2025-01-10 10:16:05 [2025-01-10 10:16:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216245', 'tblTempUsageDetail_20' ) start [2025-01-10 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216245', 'tblTempUsageDetail_20' ) end [2025-01-10 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216245', 'tblTempVendorCDR_20' ) start [2025-01-10 10:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216245', 'tblTempVendorCDR_20' ) end [2025-01-10 10:16:33] Production.INFO: ProcessCDR(1,14216245,1,1,2) [2025-01-10 10:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:16:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216245', 'tblTempUsageDetail_20' ) start [2025-01-10 10:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216245', 'tblTempUsageDetail_20' ) end [2025-01-10 10:16:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:16:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:16:38] Production.INFO: ==4990== Releasing lock... [2025-01-10 10:16:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:16:38] Production.INFO: 44.75 MB #Memory Used# [2025-01-10 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:17:05 [end_date_ymd] => 2025-01-10 10:17:05 [RateCDR] => 1 ) [2025-01-10 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:17:05' and `end` < '2025-01-10 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:17:27] Production.INFO: count ==2309 [2025-01-10 10:17:28] Production.ERROR: pbx CDR StartTime 2025-01-10 07:17:05 - End Time 2025-01-10 10:17:05 [2025-01-10 10:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216250', 'tblTempUsageDetail_20' ) start [2025-01-10 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216250', 'tblTempUsageDetail_20' ) end [2025-01-10 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216250', 'tblTempVendorCDR_20' ) start [2025-01-10 10:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216250', 'tblTempVendorCDR_20' ) end [2025-01-10 10:17:28] Production.INFO: ProcessCDR(1,14216250,1,1,2) [2025-01-10 10:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216250', 'tblTempUsageDetail_20' ) start [2025-01-10 10:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216250', 'tblTempUsageDetail_20' ) end [2025-01-10 10:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:17:33] Production.INFO: ==5063== Releasing lock... [2025-01-10 10:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:17:33] Production.INFO: 45.5 MB #Memory Used# [2025-01-10 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:18:04 [end_date_ymd] => 2025-01-10 10:18:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:18:04' and `end` < '2025-01-10 10: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-01-10 10:18:32] Production.INFO: count ==2339 [2025-01-10 10:18:33] Production.ERROR: pbx CDR StartTime 2025-01-10 07:18:04 - End Time 2025-01-10 10:18:04 [2025-01-10 10:18:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216255', 'tblTempUsageDetail_20' ) start [2025-01-10 10:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216255', 'tblTempUsageDetail_20' ) end [2025-01-10 10:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216255', 'tblTempVendorCDR_20' ) start [2025-01-10 10:18:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216255', 'tblTempVendorCDR_20' ) end [2025-01-10 10:18:33] Production.INFO: ProcessCDR(1,14216255,1,1,2) [2025-01-10 10:18:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216255', 'tblTempUsageDetail_20' ) start [2025-01-10 10:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216255', 'tblTempUsageDetail_20' ) end [2025-01-10 10:18:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:18:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:18:37] Production.INFO: ==5134== Releasing lock... [2025-01-10 10:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:18:37] Production.INFO: 45.75 MB #Memory Used# [2025-01-10 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:19:04 [end_date_ymd] => 2025-01-10 10:19:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:19:04' and `end` < '2025-01-10 10: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-01-10 10:19:26] Production.INFO: count ==2351 [2025-01-10 10:19:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:19:04 - End Time 2025-01-10 10:19:04 [2025-01-10 10:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216260', 'tblTempUsageDetail_20' ) start [2025-01-10 10:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216260', 'tblTempUsageDetail_20' ) end [2025-01-10 10:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216260', 'tblTempVendorCDR_20' ) start [2025-01-10 10:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216260', 'tblTempVendorCDR_20' ) end [2025-01-10 10:19:28] Production.INFO: ProcessCDR(1,14216260,1,1,2) [2025-01-10 10:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216260', 'tblTempUsageDetail_20' ) start [2025-01-10 10:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216260', 'tblTempUsageDetail_20' ) end [2025-01-10 10:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:19:33] Production.INFO: ==5205== Releasing lock... [2025-01-10 10:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:19:33] Production.INFO: 45.75 MB #Memory Used# [2025-01-10 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:20:06 [end_date_ymd] => 2025-01-10 10:20:06 [RateCDR] => 1 ) [2025-01-10 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:20:06' and `end` < '2025-01-10 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:20:33] Production.INFO: count ==2390 [2025-01-10 10:20:34] Production.ERROR: pbx CDR StartTime 2025-01-10 07:20:06 - End Time 2025-01-10 10:20:06 [2025-01-10 10:20:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216266', 'tblTempUsageDetail_20' ) start [2025-01-10 10:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216266', 'tblTempUsageDetail_20' ) end [2025-01-10 10:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216266', 'tblTempVendorCDR_20' ) start [2025-01-10 10:20:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216266', 'tblTempVendorCDR_20' ) end [2025-01-10 10:20:34] Production.INFO: ProcessCDR(1,14216266,1,1,2) [2025-01-10 10:20:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:20:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216266', 'tblTempUsageDetail_20' ) start [2025-01-10 10:20:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216266', 'tblTempUsageDetail_20' ) end [2025-01-10 10:20:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:20:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:20:39] Production.INFO: ==5280== Releasing lock... [2025-01-10 10:20:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:20:39] Production.INFO: 46 MB #Memory Used# [2025-01-10 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:21:05 [end_date_ymd] => 2025-01-10 10:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:21:05' and `end` < '2025-01-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-01-10 10:21:26] Production.INFO: count ==2524 [2025-01-10 10:21:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:21:05 - End Time 2025-01-10 10:21:05 [2025-01-10 10:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216271', 'tblTempUsageDetail_20' ) start [2025-01-10 10:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216271', 'tblTempUsageDetail_20' ) end [2025-01-10 10:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216271', 'tblTempVendorCDR_20' ) start [2025-01-10 10:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216271', 'tblTempVendorCDR_20' ) end [2025-01-10 10:21:28] Production.INFO: ProcessCDR(1,14216271,1,1,2) [2025-01-10 10:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216271', 'tblTempUsageDetail_20' ) start [2025-01-10 10:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216271', 'tblTempUsageDetail_20' ) end [2025-01-10 10:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:21:32] Production.INFO: ==5354== Releasing lock... [2025-01-10 10:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:21:32] Production.INFO: 47 MB #Memory Used# [2025-01-10 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:22:05 [end_date_ymd] => 2025-01-10 10:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:22:05' and `end` < '2025-01-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-01-10 10:22:26] Production.INFO: count ==2534 [2025-01-10 10:22:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:22:05 - End Time 2025-01-10 10:22:05 [2025-01-10 10:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216276', 'tblTempUsageDetail_20' ) start [2025-01-10 10:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216276', 'tblTempUsageDetail_20' ) end [2025-01-10 10:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216276', 'tblTempVendorCDR_20' ) start [2025-01-10 10:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216276', 'tblTempVendorCDR_20' ) end [2025-01-10 10:22:27] Production.INFO: ProcessCDR(1,14216276,1,1,2) [2025-01-10 10:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216276', 'tblTempUsageDetail_20' ) start [2025-01-10 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216276', 'tblTempUsageDetail_20' ) end [2025-01-10 10:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:22:31] Production.INFO: ==5431== Releasing lock... [2025-01-10 10:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:22:31] Production.INFO: 47 MB #Memory Used# [2025-01-10 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:23:04 [end_date_ymd] => 2025-01-10 10:23:04 [RateCDR] => 1 ) [2025-01-10 10:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:23:04' and `end` < '2025-01-10 10:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:23:23] Production.INFO: count ==2561 [2025-01-10 10:23:24] Production.ERROR: pbx CDR StartTime 2025-01-10 07:23:04 - End Time 2025-01-10 10:23:04 [2025-01-10 10:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216281', 'tblTempUsageDetail_20' ) start [2025-01-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216281', 'tblTempUsageDetail_20' ) end [2025-01-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216281', 'tblTempVendorCDR_20' ) start [2025-01-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216281', 'tblTempVendorCDR_20' ) end [2025-01-10 10:23:24] Production.INFO: ProcessCDR(1,14216281,1,1,2) [2025-01-10 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216281', 'tblTempUsageDetail_20' ) start [2025-01-10 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216281', 'tblTempUsageDetail_20' ) end [2025-01-10 10:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:23:29] Production.INFO: ==5503== Releasing lock... [2025-01-10 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:23:29] Production.INFO: 47.25 MB #Memory Used# [2025-01-10 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:24:05 [end_date_ymd] => 2025-01-10 10:24:05 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:24:05' and `end` < '2025-01-10 10: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-01-10 10:24:25] Production.INFO: count ==2575 [2025-01-10 10:24:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:24:05 - End Time 2025-01-10 10:24:05 [2025-01-10 10:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216286', 'tblTempUsageDetail_20' ) start [2025-01-10 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216286', 'tblTempUsageDetail_20' ) end [2025-01-10 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216286', 'tblTempVendorCDR_20' ) start [2025-01-10 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216286', 'tblTempVendorCDR_20' ) end [2025-01-10 10:24:26] Production.INFO: ProcessCDR(1,14216286,1,1,2) [2025-01-10 10:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216286', 'tblTempUsageDetail_20' ) start [2025-01-10 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216286', 'tblTempUsageDetail_20' ) end [2025-01-10 10:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:24:30] Production.INFO: ==5577== Releasing lock... [2025-01-10 10:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:24:30] Production.INFO: 47.5 MB #Memory Used# [2025-01-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:25:05 [end_date_ymd] => 2025-01-10 10:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:25:05' and `end` < '2025-01-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-01-10 10:25:25] Production.INFO: count ==2589 [2025-01-10 10:25:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:25:05 - End Time 2025-01-10 10:25:05 [2025-01-10 10:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216291', 'tblTempUsageDetail_20' ) start [2025-01-10 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216291', 'tblTempUsageDetail_20' ) end [2025-01-10 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216291', 'tblTempVendorCDR_20' ) start [2025-01-10 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216291', 'tblTempVendorCDR_20' ) end [2025-01-10 10:25:26] Production.INFO: ProcessCDR(1,14216291,1,1,2) [2025-01-10 10:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216291', 'tblTempUsageDetail_20' ) start [2025-01-10 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216291', 'tblTempUsageDetail_20' ) end [2025-01-10 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:25:30] Production.INFO: ==5692== Releasing lock... [2025-01-10 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:25:30] Production.INFO: 47.5 MB #Memory Used# [2025-01-10 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:26:05 [end_date_ymd] => 2025-01-10 10:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:26:05' and `end` < '2025-01-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-01-10 10:26:28] Production.INFO: count ==2620 [2025-01-10 10:26:29] Production.ERROR: pbx CDR StartTime 2025-01-10 07:26:05 - End Time 2025-01-10 10:26:05 [2025-01-10 10:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216296', 'tblTempUsageDetail_20' ) start [2025-01-10 10:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216296', 'tblTempUsageDetail_20' ) end [2025-01-10 10:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216296', 'tblTempVendorCDR_20' ) start [2025-01-10 10:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216296', 'tblTempVendorCDR_20' ) end [2025-01-10 10:26:29] Production.INFO: ProcessCDR(1,14216296,1,1,2) [2025-01-10 10:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216296', 'tblTempUsageDetail_20' ) start [2025-01-10 10:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216296', 'tblTempUsageDetail_20' ) end [2025-01-10 10:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:26:33] Production.INFO: ==5766== Releasing lock... [2025-01-10 10:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:26:33] Production.INFO: 47.75 MB #Memory Used# [2025-01-10 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:27:05 [end_date_ymd] => 2025-01-10 10:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:27:05' and `end` < '2025-01-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-01-10 10:27:24] Production.INFO: count ==2641 [2025-01-10 10:27:25] Production.ERROR: pbx CDR StartTime 2025-01-10 07:27:05 - End Time 2025-01-10 10:27:05 [2025-01-10 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216301', 'tblTempUsageDetail_20' ) start [2025-01-10 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216301', 'tblTempUsageDetail_20' ) end [2025-01-10 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216301', 'tblTempVendorCDR_20' ) start [2025-01-10 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216301', 'tblTempVendorCDR_20' ) end [2025-01-10 10:27:25] Production.INFO: ProcessCDR(1,14216301,1,1,2) [2025-01-10 10:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216301', 'tblTempUsageDetail_20' ) start [2025-01-10 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216301', 'tblTempUsageDetail_20' ) end [2025-01-10 10:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:27:29] Production.INFO: ==5836== Releasing lock... [2025-01-10 10:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:27:29] Production.INFO: 48 MB #Memory Used# [2025-01-10 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:28:04 [end_date_ymd] => 2025-01-10 10:28:04 [RateCDR] => 1 ) [2025-01-10 10:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:28:04' and `end` < '2025-01-10 10: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-01-10 10:28:26] Production.INFO: count ==2660 [2025-01-10 10:28:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:28:04 - End Time 2025-01-10 10:28:04 [2025-01-10 10:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216306', 'tblTempUsageDetail_20' ) start [2025-01-10 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216306', 'tblTempUsageDetail_20' ) end [2025-01-10 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216306', 'tblTempVendorCDR_20' ) start [2025-01-10 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216306', 'tblTempVendorCDR_20' ) end [2025-01-10 10:28:27] Production.INFO: ProcessCDR(1,14216306,1,1,2) [2025-01-10 10:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216306', 'tblTempUsageDetail_20' ) start [2025-01-10 10:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216306', 'tblTempUsageDetail_20' ) end [2025-01-10 10:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:28:32] Production.INFO: ==5907== Releasing lock... [2025-01-10 10:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:28:32] Production.INFO: 48.25 MB #Memory Used# [2025-01-10 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:29:05 [end_date_ymd] => 2025-01-10 10:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:29:05' and `end` < '2025-01-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-01-10 10:29:25] Production.INFO: count ==2684 [2025-01-10 10:29:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:29:05 - End Time 2025-01-10 10:29:05 [2025-01-10 10:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216311', 'tblTempUsageDetail_20' ) start [2025-01-10 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216311', 'tblTempUsageDetail_20' ) end [2025-01-10 10:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216311', 'tblTempVendorCDR_20' ) start [2025-01-10 10:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216311', 'tblTempVendorCDR_20' ) end [2025-01-10 10:29:27] Production.INFO: ProcessCDR(1,14216311,1,1,2) [2025-01-10 10:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216311', 'tblTempUsageDetail_20' ) start [2025-01-10 10:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216311', 'tblTempUsageDetail_20' ) end [2025-01-10 10:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:29:31] Production.INFO: ==5978== Releasing lock... [2025-01-10 10:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:29:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-10 10:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:30:04 [end_date_ymd] => 2025-01-10 10:30:04 [RateCDR] => 1 ) [2025-01-10 10:30: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-01-10 07:30:04' and `end` < '2025-01-10 10:30: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-01-10 10:30:27] Production.INFO: count ==2704 [2025-01-10 10:30:28] Production.ERROR: pbx CDR StartTime 2025-01-10 07:30:04 - End Time 2025-01-10 10:30:04 [2025-01-10 10:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216316', 'tblTempUsageDetail_20' ) start [2025-01-10 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216316', 'tblTempUsageDetail_20' ) end [2025-01-10 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216316', 'tblTempVendorCDR_20' ) start [2025-01-10 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216316', 'tblTempVendorCDR_20' ) end [2025-01-10 10:30:28] Production.INFO: ProcessCDR(1,14216316,1,1,2) [2025-01-10 10:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216316', 'tblTempUsageDetail_20' ) start [2025-01-10 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216316', 'tblTempUsageDetail_20' ) end [2025-01-10 10:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:30:32] Production.INFO: ==6049== Releasing lock... [2025-01-10 10:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:30:32] Production.INFO: 49.25 MB #Memory Used# [2025-01-10 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:31:04 [end_date_ymd] => 2025-01-10 10:31:04 [RateCDR] => 1 ) [2025-01-10 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:31:04' and `end` < '2025-01-10 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:31:30] Production.INFO: count ==2812 [2025-01-10 10:31:31] Production.ERROR: pbx CDR StartTime 2025-01-10 07:31:04 - End Time 2025-01-10 10:31:04 [2025-01-10 10:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216322', 'tblTempUsageDetail_20' ) start [2025-01-10 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216322', 'tblTempUsageDetail_20' ) end [2025-01-10 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216322', 'tblTempVendorCDR_20' ) start [2025-01-10 10:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216322', 'tblTempVendorCDR_20' ) end [2025-01-10 10:31:32] Production.INFO: ProcessCDR(1,14216322,1,1,2) [2025-01-10 10:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216322', 'tblTempUsageDetail_20' ) start [2025-01-10 10:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216322', 'tblTempUsageDetail_20' ) end [2025-01-10 10:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:31:36] Production.INFO: ==6122== Releasing lock... [2025-01-10 10:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:31:36] Production.INFO: 50 MB #Memory Used# [2025-01-10 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:32:05 [end_date_ymd] => 2025-01-10 10:32:05 [RateCDR] => 1 ) [2025-01-10 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:32:05' and `end` < '2025-01-10 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:32:22] Production.INFO: count ==2824 [2025-01-10 10:32:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:32:05 - End Time 2025-01-10 10:32:05 [2025-01-10 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216327', 'tblTempUsageDetail_20' ) start [2025-01-10 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216327', 'tblTempUsageDetail_20' ) end [2025-01-10 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216327', 'tblTempVendorCDR_20' ) start [2025-01-10 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216327', 'tblTempVendorCDR_20' ) end [2025-01-10 10:32:23] Production.INFO: ProcessCDR(1,14216327,1,1,2) [2025-01-10 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216327', 'tblTempUsageDetail_20' ) start [2025-01-10 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216327', 'tblTempUsageDetail_20' ) end [2025-01-10 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:32:27] Production.INFO: ==6194== Releasing lock... [2025-01-10 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:32:27] Production.INFO: 49.25 MB #Memory Used# [2025-01-10 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:33:04 [end_date_ymd] => 2025-01-10 10:33:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:33:04' and `end` < '2025-01-10 10: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-01-10 10:33:23] Production.INFO: count ==2850 [2025-01-10 10:33:24] Production.ERROR: pbx CDR StartTime 2025-01-10 07:33:04 - End Time 2025-01-10 10:33:04 [2025-01-10 10:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216332', 'tblTempUsageDetail_20' ) start [2025-01-10 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216332', 'tblTempUsageDetail_20' ) end [2025-01-10 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216332', 'tblTempVendorCDR_20' ) start [2025-01-10 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216332', 'tblTempVendorCDR_20' ) end [2025-01-10 10:33:24] Production.INFO: ProcessCDR(1,14216332,1,1,2) [2025-01-10 10:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216332', 'tblTempUsageDetail_20' ) start [2025-01-10 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216332', 'tblTempUsageDetail_20' ) end [2025-01-10 10:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:33:29] Production.INFO: ==6267== Releasing lock... [2025-01-10 10:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:33:29] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:34:05 [end_date_ymd] => 2025-01-10 10:34:05 [RateCDR] => 1 ) [2025-01-10 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:34:05' and `end` < '2025-01-10 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:34:33] Production.INFO: count ==2867 [2025-01-10 10:34:34] Production.ERROR: pbx CDR StartTime 2025-01-10 07:34:05 - End Time 2025-01-10 10:34:05 [2025-01-10 10:34:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216337', 'tblTempUsageDetail_20' ) start [2025-01-10 10:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216337', 'tblTempUsageDetail_20' ) end [2025-01-10 10:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216337', 'tblTempVendorCDR_20' ) start [2025-01-10 10:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216337', 'tblTempVendorCDR_20' ) end [2025-01-10 10:34:34] Production.INFO: ProcessCDR(1,14216337,1,1,2) [2025-01-10 10:34:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:34:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:34:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:34:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216337', 'tblTempUsageDetail_20' ) start [2025-01-10 10:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216337', 'tblTempUsageDetail_20' ) end [2025-01-10 10:34:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:34:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:34:38] Production.INFO: ==6338== Releasing lock... [2025-01-10 10:34:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:34:38] Production.INFO: 50 MB #Memory Used# [2025-01-10 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:35:04 [end_date_ymd] => 2025-01-10 10:35:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:35:04' and `end` < '2025-01-10 10: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-01-10 10:35:24] Production.INFO: count ==2880 [2025-01-10 10:35:25] Production.ERROR: pbx CDR StartTime 2025-01-10 07:35:04 - End Time 2025-01-10 10:35:04 [2025-01-10 10:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216342', 'tblTempUsageDetail_20' ) start [2025-01-10 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216342', 'tblTempUsageDetail_20' ) end [2025-01-10 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216342', 'tblTempVendorCDR_20' ) start [2025-01-10 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216342', 'tblTempVendorCDR_20' ) end [2025-01-10 10:35:25] Production.INFO: ProcessCDR(1,14216342,1,1,2) [2025-01-10 10:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216342', 'tblTempUsageDetail_20' ) start [2025-01-10 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216342', 'tblTempUsageDetail_20' ) end [2025-01-10 10:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:35:30] Production.INFO: ==6409== Releasing lock... [2025-01-10 10:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:35:30] Production.INFO: 51.25 MB #Memory Used# [2025-01-10 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:36:05 [end_date_ymd] => 2025-01-10 10:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:36:05' and `end` < '2025-01-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-01-10 10:36:25] Production.INFO: count ==2948 [2025-01-10 10:36:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:36:05 - End Time 2025-01-10 10:36:05 [2025-01-10 10:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216347', 'tblTempUsageDetail_20' ) start [2025-01-10 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216347', 'tblTempUsageDetail_20' ) end [2025-01-10 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216347', 'tblTempVendorCDR_20' ) start [2025-01-10 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216347', 'tblTempVendorCDR_20' ) end [2025-01-10 10:36:26] Production.INFO: ProcessCDR(1,14216347,1,1,2) [2025-01-10 10:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216347', 'tblTempUsageDetail_20' ) start [2025-01-10 10:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216347', 'tblTempUsageDetail_20' ) end [2025-01-10 10:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:36:31] Production.INFO: ==6481== Releasing lock... [2025-01-10 10:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:36:31] Production.INFO: 50.5 MB #Memory Used# [2025-01-10 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:37:05 [end_date_ymd] => 2025-01-10 10:37:05 [RateCDR] => 1 ) [2025-01-10 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:37:05' and `end` < '2025-01-10 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:37:25] Production.INFO: count ==2951 [2025-01-10 10:37:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:37:05 - End Time 2025-01-10 10:37:05 [2025-01-10 10:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216352', 'tblTempUsageDetail_20' ) start [2025-01-10 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216352', 'tblTempUsageDetail_20' ) end [2025-01-10 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216352', 'tblTempVendorCDR_20' ) start [2025-01-10 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216352', 'tblTempVendorCDR_20' ) end [2025-01-10 10:37:26] Production.INFO: ProcessCDR(1,14216352,1,1,2) [2025-01-10 10:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216352', 'tblTempUsageDetail_20' ) start [2025-01-10 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216352', 'tblTempUsageDetail_20' ) end [2025-01-10 10:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:37:29] Production.INFO: ==6550== Releasing lock... [2025-01-10 10:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:37:29] Production.INFO: 50.5 MB #Memory Used# [2025-01-10 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:38:04 [end_date_ymd] => 2025-01-10 10:38:04 [RateCDR] => 1 ) [2025-01-10 10:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:38:04' and `end` < '2025-01-10 10:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:38:31] Production.INFO: count ==2970 [2025-01-10 10:38:32] Production.ERROR: pbx CDR StartTime 2025-01-10 07:38:04 - End Time 2025-01-10 10:38:04 [2025-01-10 10:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216357', 'tblTempUsageDetail_20' ) start [2025-01-10 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216357', 'tblTempUsageDetail_20' ) end [2025-01-10 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216357', 'tblTempVendorCDR_20' ) start [2025-01-10 10:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216357', 'tblTempVendorCDR_20' ) end [2025-01-10 10:38:32] Production.INFO: ProcessCDR(1,14216357,1,1,2) [2025-01-10 10:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216357', 'tblTempUsageDetail_20' ) start [2025-01-10 10:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216357', 'tblTempUsageDetail_20' ) end [2025-01-10 10:38:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:38:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:38:37] Production.INFO: ==6621== Releasing lock... [2025-01-10 10:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:38:37] Production.INFO: 50.25 MB #Memory Used# [2025-01-10 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:39:05 [end_date_ymd] => 2025-01-10 10:39:05 [RateCDR] => 1 ) [2025-01-10 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:39:05' and `end` < '2025-01-10 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:39:31] Production.INFO: count ==2984 [2025-01-10 10:39:33] Production.ERROR: pbx CDR StartTime 2025-01-10 07:39:05 - End Time 2025-01-10 10:39:05 [2025-01-10 10:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216362', 'tblTempUsageDetail_20' ) start [2025-01-10 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216362', 'tblTempUsageDetail_20' ) end [2025-01-10 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216362', 'tblTempVendorCDR_20' ) start [2025-01-10 10:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216362', 'tblTempVendorCDR_20' ) end [2025-01-10 10:39:33] Production.INFO: ProcessCDR(1,14216362,1,1,2) [2025-01-10 10:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:39:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216362', 'tblTempUsageDetail_20' ) start [2025-01-10 10:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216362', 'tblTempUsageDetail_20' ) end [2025-01-10 10:39:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:39:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:39:38] Production.INFO: ==6695== Releasing lock... [2025-01-10 10:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:39:38] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:40:05 [end_date_ymd] => 2025-01-10 10:40:05 [RateCDR] => 1 ) [2025-01-10 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:40:05' and `end` < '2025-01-10 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:40:35] Production.INFO: count ==3014 [2025-01-10 10:40:37] Production.ERROR: pbx CDR StartTime 2025-01-10 07:40:05 - End Time 2025-01-10 10:40:05 [2025-01-10 10:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216368', 'tblTempUsageDetail_20' ) start [2025-01-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216368', 'tblTempUsageDetail_20' ) end [2025-01-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216368', 'tblTempVendorCDR_20' ) start [2025-01-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216368', 'tblTempVendorCDR_20' ) end [2025-01-10 10:40:37] Production.INFO: ProcessCDR(1,14216368,1,1,2) [2025-01-10 10:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216368', 'tblTempUsageDetail_20' ) start [2025-01-10 10:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216368', 'tblTempUsageDetail_20' ) end [2025-01-10 10:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:40:41] Production.INFO: ==6765== Releasing lock... [2025-01-10 10:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:40:41] Production.INFO: 51 MB #Memory Used# [2025-01-10 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:41:05 [end_date_ymd] => 2025-01-10 10:41:05 [RateCDR] => 1 ) [2025-01-10 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:41:05' and `end` < '2025-01-10 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:41:29] Production.INFO: count ==3101 [2025-01-10 10:41:31] Production.ERROR: pbx CDR StartTime 2025-01-10 07:41:05 - End Time 2025-01-10 10:41:05 [2025-01-10 10:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216373', 'tblTempUsageDetail_20' ) start [2025-01-10 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216373', 'tblTempUsageDetail_20' ) end [2025-01-10 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216373', 'tblTempVendorCDR_20' ) start [2025-01-10 10:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216373', 'tblTempVendorCDR_20' ) end [2025-01-10 10:41:31] Production.INFO: ProcessCDR(1,14216373,1,1,2) [2025-01-10 10:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216373', 'tblTempUsageDetail_20' ) start [2025-01-10 10:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216373', 'tblTempUsageDetail_20' ) end [2025-01-10 10:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:41:35] Production.INFO: ==6880== Releasing lock... [2025-01-10 10:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:41:35] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:42:04 [end_date_ymd] => 2025-01-10 10:42:04 [RateCDR] => 1 ) [2025-01-10 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:42:04' and `end` < '2025-01-10 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:42:25] Production.INFO: count ==3126 [2025-01-10 10:42:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:42:04 - End Time 2025-01-10 10:42:04 [2025-01-10 10:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216378', 'tblTempUsageDetail_20' ) start [2025-01-10 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216378', 'tblTempUsageDetail_20' ) end [2025-01-10 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216378', 'tblTempVendorCDR_20' ) start [2025-01-10 10:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216378', 'tblTempVendorCDR_20' ) end [2025-01-10 10:42:26] Production.INFO: ProcessCDR(1,14216378,1,1,2) [2025-01-10 10:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216378', 'tblTempUsageDetail_20' ) start [2025-01-10 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216378', 'tblTempUsageDetail_20' ) end [2025-01-10 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:42:29] Production.INFO: ==6950== Releasing lock... [2025-01-10 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:42:29] Production.INFO: 51.25 MB #Memory Used# [2025-01-10 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:43:05 [end_date_ymd] => 2025-01-10 10:43:05 [RateCDR] => 1 ) [2025-01-10 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:43:05' and `end` < '2025-01-10 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:43:19] Production.INFO: count ==3135 [2025-01-10 10:43:20] Production.ERROR: pbx CDR StartTime 2025-01-10 07:43:05 - End Time 2025-01-10 10:43:05 [2025-01-10 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216383', 'tblTempUsageDetail_20' ) start [2025-01-10 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216383', 'tblTempUsageDetail_20' ) end [2025-01-10 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216383', 'tblTempVendorCDR_20' ) start [2025-01-10 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216383', 'tblTempVendorCDR_20' ) end [2025-01-10 10:43:21] Production.INFO: ProcessCDR(1,14216383,1,1,2) [2025-01-10 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216383', 'tblTempUsageDetail_20' ) start [2025-01-10 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216383', 'tblTempUsageDetail_20' ) end [2025-01-10 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:43:25] Production.INFO: ==7021== Releasing lock... [2025-01-10 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:43:25] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:44:05 [end_date_ymd] => 2025-01-10 10:44:05 [RateCDR] => 1 ) [2025-01-10 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:44:05' and `end` < '2025-01-10 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:44:31] Production.INFO: count ==3179 [2025-01-10 10:44:32] Production.ERROR: pbx CDR StartTime 2025-01-10 07:44:05 - End Time 2025-01-10 10:44:05 [2025-01-10 10:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216388', 'tblTempUsageDetail_20' ) start [2025-01-10 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216388', 'tblTempUsageDetail_20' ) end [2025-01-10 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216388', 'tblTempVendorCDR_20' ) start [2025-01-10 10:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216388', 'tblTempVendorCDR_20' ) end [2025-01-10 10:44:32] Production.INFO: ProcessCDR(1,14216388,1,1,2) [2025-01-10 10:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216388', 'tblTempUsageDetail_20' ) start [2025-01-10 10:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216388', 'tblTempUsageDetail_20' ) end [2025-01-10 10:44:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:44:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:44:37] Production.INFO: ==7098== Releasing lock... [2025-01-10 10:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:44:37] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:45:04 [end_date_ymd] => 2025-01-10 10:45:04 [RateCDR] => 1 ) [2025-01-10 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:45:04' and `end` < '2025-01-10 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:45:24] Production.INFO: count ==3184 [2025-01-10 10:45:25] Production.ERROR: pbx CDR StartTime 2025-01-10 07:45:04 - End Time 2025-01-10 10:45:04 [2025-01-10 10:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216393', 'tblTempUsageDetail_20' ) start [2025-01-10 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216393', 'tblTempUsageDetail_20' ) end [2025-01-10 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216393', 'tblTempVendorCDR_20' ) start [2025-01-10 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216393', 'tblTempVendorCDR_20' ) end [2025-01-10 10:45:25] Production.INFO: ProcessCDR(1,14216393,1,1,2) [2025-01-10 10:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216393', 'tblTempUsageDetail_20' ) start [2025-01-10 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216393', 'tblTempUsageDetail_20' ) end [2025-01-10 10:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:45:30] Production.INFO: ==7173== Releasing lock... [2025-01-10 10:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:45:30] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:46:05 [end_date_ymd] => 2025-01-10 10:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:46:05' and `end` < '2025-01-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-01-10 10:46:19] Production.INFO: count ==3202 [2025-01-10 10:46:20] Production.ERROR: pbx CDR StartTime 2025-01-10 07:46:05 - End Time 2025-01-10 10:46:05 [2025-01-10 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216398', 'tblTempUsageDetail_20' ) start [2025-01-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216398', 'tblTempUsageDetail_20' ) end [2025-01-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216398', 'tblTempVendorCDR_20' ) start [2025-01-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216398', 'tblTempVendorCDR_20' ) end [2025-01-10 10:46:20] Production.INFO: ProcessCDR(1,14216398,1,1,2) [2025-01-10 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216398', 'tblTempUsageDetail_20' ) start [2025-01-10 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216398', 'tblTempUsageDetail_20' ) end [2025-01-10 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:46:24] Production.INFO: ==7245== Releasing lock... [2025-01-10 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:46:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:47:04 [end_date_ymd] => 2025-01-10 10:47:04 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:47:04' and `end` < '2025-01-10 10: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-01-10 10:47:27] Production.INFO: count ==3219 [2025-01-10 10:47:28] Production.ERROR: pbx CDR StartTime 2025-01-10 07:47:04 - End Time 2025-01-10 10:47:04 [2025-01-10 10:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216403', 'tblTempUsageDetail_20' ) start [2025-01-10 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216403', 'tblTempUsageDetail_20' ) end [2025-01-10 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216403', 'tblTempVendorCDR_20' ) start [2025-01-10 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216403', 'tblTempVendorCDR_20' ) end [2025-01-10 10:47:28] Production.INFO: ProcessCDR(1,14216403,1,1,2) [2025-01-10 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216403', 'tblTempUsageDetail_20' ) start [2025-01-10 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216403', 'tblTempUsageDetail_20' ) end [2025-01-10 10:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:47:33] Production.INFO: ==7317== Releasing lock... [2025-01-10 10:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:47:33] Production.INFO: 52.5 MB #Memory Used# [2025-01-10 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:48:05 [end_date_ymd] => 2025-01-10 10:48:05 [RateCDR] => 1 ) [2025-01-10 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:48:05' and `end` < '2025-01-10 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:48:22] Production.INFO: count ==3251 [2025-01-10 10:48:24] Production.ERROR: pbx CDR StartTime 2025-01-10 07:48:05 - End Time 2025-01-10 10:48:05 [2025-01-10 10:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216408', 'tblTempUsageDetail_20' ) start [2025-01-10 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216408', 'tblTempUsageDetail_20' ) end [2025-01-10 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216408', 'tblTempVendorCDR_20' ) start [2025-01-10 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216408', 'tblTempVendorCDR_20' ) end [2025-01-10 10:48:24] Production.INFO: ProcessCDR(1,14216408,1,1,2) [2025-01-10 10:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216408', 'tblTempUsageDetail_20' ) start [2025-01-10 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216408', 'tblTempUsageDetail_20' ) end [2025-01-10 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:48:28] Production.INFO: ==7387== Releasing lock... [2025-01-10 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:48:28] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:49:05 [end_date_ymd] => 2025-01-10 10:49:05 [RateCDR] => 1 ) [2025-01-10 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:49:05' and `end` < '2025-01-10 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:49:21] Production.INFO: count ==3267 [2025-01-10 10:49:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:49:05 - End Time 2025-01-10 10:49:05 [2025-01-10 10:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216413', 'tblTempUsageDetail_20' ) start [2025-01-10 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216413', 'tblTempUsageDetail_20' ) end [2025-01-10 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216413', 'tblTempVendorCDR_20' ) start [2025-01-10 10:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216413', 'tblTempVendorCDR_20' ) end [2025-01-10 10:49:23] Production.INFO: ProcessCDR(1,14216413,1,1,2) [2025-01-10 10:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216413', 'tblTempUsageDetail_20' ) start [2025-01-10 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216413', 'tblTempUsageDetail_20' ) end [2025-01-10 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:49:27] Production.INFO: ==7458== Releasing lock... [2025-01-10 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:49:27] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:50:05 [end_date_ymd] => 2025-01-10 10:50:05 [RateCDR] => 1 ) [2025-01-10 10: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-01-10 07:50:05' and `end` < '2025-01-10 10: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-01-10 10:50:26] Production.INFO: count ==3276 [2025-01-10 10:50:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:50:05 - End Time 2025-01-10 10:50:05 [2025-01-10 10:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216418', 'tblTempUsageDetail_20' ) start [2025-01-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216418', 'tblTempUsageDetail_20' ) end [2025-01-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216418', 'tblTempVendorCDR_20' ) start [2025-01-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216418', 'tblTempVendorCDR_20' ) end [2025-01-10 10:50:28] Production.INFO: ProcessCDR(1,14216418,1,1,2) [2025-01-10 10:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216418', 'tblTempUsageDetail_20' ) start [2025-01-10 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216418', 'tblTempUsageDetail_20' ) end [2025-01-10 10:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:50:32] Production.INFO: ==7534== Releasing lock... [2025-01-10 10:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:50:32] Production.INFO: 52.5 MB #Memory Used# [2025-01-10 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:51:05 [end_date_ymd] => 2025-01-10 10:51:05 [RateCDR] => 1 ) [2025-01-10 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:51:05' and `end` < '2025-01-10 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:51:27] Production.INFO: count ==3335 [2025-01-10 10:51:28] Production.ERROR: pbx CDR StartTime 2025-01-10 07:51:05 - End Time 2025-01-10 10:51:05 [2025-01-10 10:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216424', 'tblTempUsageDetail_20' ) start [2025-01-10 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216424', 'tblTempUsageDetail_20' ) end [2025-01-10 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216424', 'tblTempVendorCDR_20' ) start [2025-01-10 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216424', 'tblTempVendorCDR_20' ) end [2025-01-10 10:51:28] Production.INFO: ProcessCDR(1,14216424,1,1,2) [2025-01-10 10:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216424', 'tblTempUsageDetail_20' ) start [2025-01-10 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216424', 'tblTempUsageDetail_20' ) end [2025-01-10 10:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:51:33] Production.INFO: ==7610== Releasing lock... [2025-01-10 10:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:51:33] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:52:04 [end_date_ymd] => 2025-01-10 10:52:04 [RateCDR] => 1 ) [2025-01-10 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:52:04' and `end` < '2025-01-10 10:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:52:24] Production.INFO: count ==3344 [2025-01-10 10:52:26] Production.ERROR: pbx CDR StartTime 2025-01-10 07:52:04 - End Time 2025-01-10 10:52:04 [2025-01-10 10:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216428', 'tblTempUsageDetail_20' ) start [2025-01-10 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216428', 'tblTempUsageDetail_20' ) end [2025-01-10 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216428', 'tblTempVendorCDR_20' ) start [2025-01-10 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216428', 'tblTempVendorCDR_20' ) end [2025-01-10 10:52:26] Production.INFO: ProcessCDR(1,14216428,1,1,2) [2025-01-10 10:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216428', 'tblTempUsageDetail_20' ) start [2025-01-10 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216428', 'tblTempUsageDetail_20' ) end [2025-01-10 10:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:52:30] Production.INFO: ==7684== Releasing lock... [2025-01-10 10:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:52:30] Production.INFO: 54 MB #Memory Used# [2025-01-10 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:53:05 [end_date_ymd] => 2025-01-10 10:53:05 [RateCDR] => 1 ) [2025-01-10 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:53:05' and `end` < '2025-01-10 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:53:22] Production.INFO: count ==3358 [2025-01-10 10:53:23] Production.ERROR: pbx CDR StartTime 2025-01-10 07:53:05 - End Time 2025-01-10 10:53:05 [2025-01-10 10:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216434', 'tblTempUsageDetail_20' ) start [2025-01-10 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216434', 'tblTempUsageDetail_20' ) end [2025-01-10 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216434', 'tblTempVendorCDR_20' ) start [2025-01-10 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216434', 'tblTempVendorCDR_20' ) end [2025-01-10 10:53:23] Production.INFO: ProcessCDR(1,14216434,1,1,2) [2025-01-10 10:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216434', 'tblTempUsageDetail_20' ) start [2025-01-10 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216434', 'tblTempUsageDetail_20' ) end [2025-01-10 10:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:53:28] Production.INFO: ==7753== Releasing lock... [2025-01-10 10:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:53:28] Production.INFO: 54 MB #Memory Used# [2025-01-10 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:54:05 [end_date_ymd] => 2025-01-10 10:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:54:05' and `end` < '2025-01-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-01-10 10:54:20] Production.INFO: count ==3367 [2025-01-10 10:54:21] Production.ERROR: pbx CDR StartTime 2025-01-10 07:54:05 - End Time 2025-01-10 10:54:05 [2025-01-10 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216439', 'tblTempUsageDetail_20' ) start [2025-01-10 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216439', 'tblTempUsageDetail_20' ) end [2025-01-10 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216439', 'tblTempVendorCDR_20' ) start [2025-01-10 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216439', 'tblTempVendorCDR_20' ) end [2025-01-10 10:54:22] Production.INFO: ProcessCDR(1,14216439,1,1,2) [2025-01-10 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216439', 'tblTempUsageDetail_20' ) start [2025-01-10 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216439', 'tblTempUsageDetail_20' ) end [2025-01-10 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:54:26] Production.INFO: ==7824== Releasing lock... [2025-01-10 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:54:26] Production.INFO: 54 MB #Memory Used# [2025-01-10 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:55:04 [end_date_ymd] => 2025-01-10 10:55:04 [RateCDR] => 1 ) [2025-01-10 10:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:55:04' and `end` < '2025-01-10 10:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:55:23] Production.INFO: count ==3390 [2025-01-10 10:55:24] Production.ERROR: pbx CDR StartTime 2025-01-10 07:55:04 - End Time 2025-01-10 10:55:04 [2025-01-10 10:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216444', 'tblTempUsageDetail_20' ) start [2025-01-10 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216444', 'tblTempUsageDetail_20' ) end [2025-01-10 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216444', 'tblTempVendorCDR_20' ) start [2025-01-10 10:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216444', 'tblTempVendorCDR_20' ) end [2025-01-10 10:55:24] Production.INFO: ProcessCDR(1,14216444,1,1,2) [2025-01-10 10:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216444', 'tblTempUsageDetail_20' ) start [2025-01-10 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216444', 'tblTempUsageDetail_20' ) end [2025-01-10 10:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:55:29] Production.INFO: ==7894== Releasing lock... [2025-01-10 10:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:55:29] Production.INFO: 55 MB #Memory Used# [2025-01-10 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:56:05 [end_date_ymd] => 2025-01-10 10:56:05 [RateCDR] => 1 ) [2025-01-10 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:56:05' and `end` < '2025-01-10 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:56:30] Production.INFO: count ==3414 [2025-01-10 10:56:31] Production.ERROR: pbx CDR StartTime 2025-01-10 07:56:05 - End Time 2025-01-10 10:56:05 [2025-01-10 10:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216449', 'tblTempUsageDetail_20' ) start [2025-01-10 10:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216449', 'tblTempUsageDetail_20' ) end [2025-01-10 10:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216449', 'tblTempVendorCDR_20' ) start [2025-01-10 10:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216449', 'tblTempVendorCDR_20' ) end [2025-01-10 10:56:31] Production.INFO: ProcessCDR(1,14216449,1,1,2) [2025-01-10 10:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216449', 'tblTempUsageDetail_20' ) start [2025-01-10 10:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216449', 'tblTempUsageDetail_20' ) end [2025-01-10 10:56:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:56:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:56:36] Production.INFO: ==7967== Releasing lock... [2025-01-10 10:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:56:36] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:57:04 [end_date_ymd] => 2025-01-10 10:57:04 [RateCDR] => 1 ) [2025-01-10 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:57:04' and `end` < '2025-01-10 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:57:29] Production.INFO: count ==3423 [2025-01-10 10:57:30] Production.ERROR: pbx CDR StartTime 2025-01-10 07:57:04 - End Time 2025-01-10 10:57:04 [2025-01-10 10:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216454', 'tblTempUsageDetail_20' ) start [2025-01-10 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216454', 'tblTempUsageDetail_20' ) end [2025-01-10 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216454', 'tblTempVendorCDR_20' ) start [2025-01-10 10:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216454', 'tblTempVendorCDR_20' ) end [2025-01-10 10:57:30] Production.INFO: ProcessCDR(1,14216454,1,1,2) [2025-01-10 10:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216454', 'tblTempUsageDetail_20' ) start [2025-01-10 10:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216454', 'tblTempUsageDetail_20' ) end [2025-01-10 10:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:57:34] Production.INFO: ==8076== Releasing lock... [2025-01-10 10:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:57:34] Production.INFO: 55 MB #Memory Used# [2025-01-10 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:58:05 [end_date_ymd] => 2025-01-10 10:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 07:58:05' and `end` < '2025-01-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-01-10 10:58:24] Production.INFO: count ==3470 [2025-01-10 10:58:25] Production.ERROR: pbx CDR StartTime 2025-01-10 07:58:05 - End Time 2025-01-10 10:58:05 [2025-01-10 10:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216459', 'tblTempUsageDetail_20' ) start [2025-01-10 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216459', 'tblTempUsageDetail_20' ) end [2025-01-10 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216459', 'tblTempVendorCDR_20' ) start [2025-01-10 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216459', 'tblTempVendorCDR_20' ) end [2025-01-10 10:58:25] Production.INFO: ProcessCDR(1,14216459,1,1,2) [2025-01-10 10:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216459', 'tblTempUsageDetail_20' ) start [2025-01-10 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216459', 'tblTempUsageDetail_20' ) end [2025-01-10 10:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:58:30] Production.INFO: ==8147== Releasing lock... [2025-01-10 10:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:58:30] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 07:59:05 [end_date_ymd] => 2025-01-10 10:59:05 [RateCDR] => 1 ) [2025-01-10 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 07:59:05' and `end` < '2025-01-10 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 10:59:26] Production.INFO: count ==3495 [2025-01-10 10:59:27] Production.ERROR: pbx CDR StartTime 2025-01-10 07:59:05 - End Time 2025-01-10 10:59:05 [2025-01-10 10:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216464', 'tblTempUsageDetail_20' ) start [2025-01-10 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216464', 'tblTempUsageDetail_20' ) end [2025-01-10 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216464', 'tblTempVendorCDR_20' ) start [2025-01-10 10:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216464', 'tblTempVendorCDR_20' ) end [2025-01-10 10:59:27] Production.INFO: ProcessCDR(1,14216464,1,1,2) [2025-01-10 10:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 10:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 10:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216464', 'tblTempUsageDetail_20' ) start [2025-01-10 10:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216464', 'tblTempUsageDetail_20' ) end [2025-01-10 10:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 10:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 10:59:32] Production.INFO: ==8221== Releasing lock... [2025-01-10 10:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 10:59:32] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:00:05 [end_date_ymd] => 2025-01-10 11:00:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:00:05' and `end` < '2025-01-10 11: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-01-10 11:00:28] Production.INFO: count ==3523 [2025-01-10 11:00:29] Production.ERROR: pbx CDR StartTime 2025-01-10 08:00:05 - End Time 2025-01-10 11:00:05 [2025-01-10 11:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216470', 'tblTempUsageDetail_20' ) start [2025-01-10 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216470', 'tblTempUsageDetail_20' ) end [2025-01-10 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216470', 'tblTempVendorCDR_20' ) start [2025-01-10 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216470', 'tblTempVendorCDR_20' ) end [2025-01-10 11:00:29] Production.INFO: ProcessCDR(1,14216470,1,1,2) [2025-01-10 11:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216470', 'tblTempUsageDetail_20' ) start [2025-01-10 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216470', 'tblTempUsageDetail_20' ) end [2025-01-10 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:00:34] Production.INFO: ==8295== Releasing lock... [2025-01-10 11:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:00:34] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:01:05 [end_date_ymd] => 2025-01-10 11:01:05 [RateCDR] => 1 ) [2025-01-10 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:01:05' and `end` < '2025-01-10 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:01:31] Production.INFO: count ==3633 [2025-01-10 11:01:33] Production.ERROR: pbx CDR StartTime 2025-01-10 08:01:05 - End Time 2025-01-10 11:01:05 [2025-01-10 11:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216475', 'tblTempUsageDetail_20' ) start [2025-01-10 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216475', 'tblTempUsageDetail_20' ) end [2025-01-10 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216475', 'tblTempVendorCDR_20' ) start [2025-01-10 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216475', 'tblTempVendorCDR_20' ) end [2025-01-10 11:01:33] Production.INFO: ProcessCDR(1,14216475,1,1,2) [2025-01-10 11:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216475', 'tblTempUsageDetail_20' ) start [2025-01-10 11:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216475', 'tblTempUsageDetail_20' ) end [2025-01-10 11:01:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:01:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:01:38] Production.INFO: ==8462== Releasing lock... [2025-01-10 11:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:01:38] Production.INFO: 55 MB #Memory Used# [2025-01-10 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:02:04 [end_date_ymd] => 2025-01-10 11:02:04 [RateCDR] => 1 ) [2025-01-10 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:02:04' and `end` < '2025-01-10 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:02:28] Production.INFO: count ==3641 [2025-01-10 11:02:29] Production.ERROR: pbx CDR StartTime 2025-01-10 08:02:04 - End Time 2025-01-10 11:02:04 [2025-01-10 11:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216480', 'tblTempUsageDetail_20' ) start [2025-01-10 11:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216480', 'tblTempUsageDetail_20' ) end [2025-01-10 11:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216480', 'tblTempVendorCDR_20' ) start [2025-01-10 11:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216480', 'tblTempVendorCDR_20' ) end [2025-01-10 11:02:29] Production.INFO: ProcessCDR(1,14216480,1,1,2) [2025-01-10 11:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216480', 'tblTempUsageDetail_20' ) start [2025-01-10 11:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216480', 'tblTempUsageDetail_20' ) end [2025-01-10 11:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:02:34] Production.INFO: ==8536== Releasing lock... [2025-01-10 11:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:02:34] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:03:05 [end_date_ymd] => 2025-01-10 11:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:03:05' and `end` < '2025-01-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-01-10 11:03:26] Production.INFO: count ==3651 [2025-01-10 11:03:28] Production.ERROR: pbx CDR StartTime 2025-01-10 08:03:05 - End Time 2025-01-10 11:03:05 [2025-01-10 11:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216485', 'tblTempUsageDetail_20' ) start [2025-01-10 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216485', 'tblTempUsageDetail_20' ) end [2025-01-10 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216485', 'tblTempVendorCDR_20' ) start [2025-01-10 11:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216485', 'tblTempVendorCDR_20' ) end [2025-01-10 11:03:28] Production.INFO: ProcessCDR(1,14216485,1,1,2) [2025-01-10 11:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216485', 'tblTempUsageDetail_20' ) start [2025-01-10 11:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216485', 'tblTempUsageDetail_20' ) end [2025-01-10 11:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:03:33] Production.INFO: ==8606== Releasing lock... [2025-01-10 11:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:03:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:04:05 [end_date_ymd] => 2025-01-10 11:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:04:05' and `end` < '2025-01-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-01-10 11:04:24] Production.INFO: count ==3651 [2025-01-10 11:04:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:04:05 - End Time 2025-01-10 11:04:05 [2025-01-10 11:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216490', 'tblTempUsageDetail_20' ) start [2025-01-10 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216490', 'tblTempUsageDetail_20' ) end [2025-01-10 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216490', 'tblTempVendorCDR_20' ) start [2025-01-10 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216490', 'tblTempVendorCDR_20' ) end [2025-01-10 11:04:26] Production.INFO: ProcessCDR(1,14216490,1,1,2) [2025-01-10 11:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216490', 'tblTempUsageDetail_20' ) start [2025-01-10 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216490', 'tblTempUsageDetail_20' ) end [2025-01-10 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:04:30] Production.INFO: ==8676== Releasing lock... [2025-01-10 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:04:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:05:05 [end_date_ymd] => 2025-01-10 11:05:05 [RateCDR] => 1 ) [2025-01-10 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:05:05' and `end` < '2025-01-10 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:05:21] Production.INFO: count ==3669 [2025-01-10 11:05:22] Production.ERROR: pbx CDR StartTime 2025-01-10 08:05:05 - End Time 2025-01-10 11:05:05 [2025-01-10 11:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216495', 'tblTempUsageDetail_20' ) start [2025-01-10 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216495', 'tblTempUsageDetail_20' ) end [2025-01-10 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216495', 'tblTempVendorCDR_20' ) start [2025-01-10 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216495', 'tblTempVendorCDR_20' ) end [2025-01-10 11:05:22] Production.INFO: ProcessCDR(1,14216495,1,1,2) [2025-01-10 11:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216495', 'tblTempUsageDetail_20' ) start [2025-01-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216495', 'tblTempUsageDetail_20' ) end [2025-01-10 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:05:26] Production.INFO: ==8826== Releasing lock... [2025-01-10 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:05:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:06:05 [end_date_ymd] => 2025-01-10 11:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:06:05' and `end` < '2025-01-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-01-10 11:06:20] Production.INFO: count ==3694 [2025-01-10 11:06:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:06:05 - End Time 2025-01-10 11:06:05 [2025-01-10 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216500', 'tblTempUsageDetail_20' ) start [2025-01-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216500', 'tblTempUsageDetail_20' ) end [2025-01-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216500', 'tblTempVendorCDR_20' ) start [2025-01-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216500', 'tblTempVendorCDR_20' ) end [2025-01-10 11:06:21] Production.INFO: ProcessCDR(1,14216500,1,1,2) [2025-01-10 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216500', 'tblTempUsageDetail_20' ) start [2025-01-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216500', 'tblTempUsageDetail_20' ) end [2025-01-10 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:06:26] Production.INFO: ==8896== Releasing lock... [2025-01-10 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:06:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:07:04 [end_date_ymd] => 2025-01-10 11:07:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:07:04' and `end` < '2025-01-10 11: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-01-10 11:07:26] Production.INFO: count ==3691 [2025-01-10 11:07:27] Production.ERROR: pbx CDR StartTime 2025-01-10 08:07:04 - End Time 2025-01-10 11:07:04 [2025-01-10 11:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216505', 'tblTempUsageDetail_20' ) start [2025-01-10 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216505', 'tblTempUsageDetail_20' ) end [2025-01-10 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216505', 'tblTempVendorCDR_20' ) start [2025-01-10 11:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216505', 'tblTempVendorCDR_20' ) end [2025-01-10 11:07:27] Production.INFO: ProcessCDR(1,14216505,1,1,2) [2025-01-10 11:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216505', 'tblTempUsageDetail_20' ) start [2025-01-10 11:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216505', 'tblTempUsageDetail_20' ) end [2025-01-10 11:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:07:31] Production.INFO: ==8969== Releasing lock... [2025-01-10 11:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:07:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:08:05 [end_date_ymd] => 2025-01-10 11:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:08:05' and `end` < '2025-01-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-01-10 11:08:24] Production.INFO: count ==3712 [2025-01-10 11:08:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:08:05 - End Time 2025-01-10 11:08:05 [2025-01-10 11:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216510', 'tblTempUsageDetail_20' ) start [2025-01-10 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216510', 'tblTempUsageDetail_20' ) end [2025-01-10 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216510', 'tblTempVendorCDR_20' ) start [2025-01-10 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216510', 'tblTempVendorCDR_20' ) end [2025-01-10 11:08:25] Production.INFO: ProcessCDR(1,14216510,1,1,2) [2025-01-10 11:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216510', 'tblTempUsageDetail_20' ) start [2025-01-10 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216510', 'tblTempUsageDetail_20' ) end [2025-01-10 11:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:08:30] Production.INFO: ==9121== Releasing lock... [2025-01-10 11:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:08:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:09:05 [end_date_ymd] => 2025-01-10 11:09:05 [RateCDR] => 1 ) [2025-01-10 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:09:05' and `end` < '2025-01-10 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:09:22] Production.INFO: count ==3721 [2025-01-10 11:09:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:09:05 - End Time 2025-01-10 11:09:05 [2025-01-10 11:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216515', 'tblTempUsageDetail_20' ) start [2025-01-10 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216515', 'tblTempUsageDetail_20' ) end [2025-01-10 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216515', 'tblTempVendorCDR_20' ) start [2025-01-10 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216515', 'tblTempVendorCDR_20' ) end [2025-01-10 11:09:24] Production.INFO: ProcessCDR(1,14216515,1,1,2) [2025-01-10 11:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216515', 'tblTempUsageDetail_20' ) start [2025-01-10 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216515', 'tblTempUsageDetail_20' ) end [2025-01-10 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:09:28] Production.INFO: ==9191== Releasing lock... [2025-01-10 11:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:09:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:10:05 [end_date_ymd] => 2025-01-10 11:10:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:10:05' and `end` < '2025-01-10 11: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-01-10 11:10:25] Production.INFO: count ==3754 [2025-01-10 11:10:27] Production.ERROR: pbx CDR StartTime 2025-01-10 08:10:05 - End Time 2025-01-10 11:10:05 [2025-01-10 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216521', 'tblTempUsageDetail_20' ) start [2025-01-10 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216521', 'tblTempUsageDetail_20' ) end [2025-01-10 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216521', 'tblTempVendorCDR_20' ) start [2025-01-10 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216521', 'tblTempVendorCDR_20' ) end [2025-01-10 11:10:27] Production.INFO: ProcessCDR(1,14216521,1,1,2) [2025-01-10 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216521', 'tblTempUsageDetail_20' ) start [2025-01-10 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216521', 'tblTempUsageDetail_20' ) end [2025-01-10 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:10:31] Production.INFO: ==9270== Releasing lock... [2025-01-10 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:10:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:11:04 [end_date_ymd] => 2025-01-10 11:11:04 [RateCDR] => 1 ) [2025-01-10 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:11:04' and `end` < '2025-01-10 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:11:35] Production.INFO: count ==3839 [2025-01-10 11:11:37] Production.ERROR: pbx CDR StartTime 2025-01-10 08:11:04 - End Time 2025-01-10 11:11:04 [2025-01-10 11:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216526', 'tblTempUsageDetail_20' ) start [2025-01-10 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216526', 'tblTempUsageDetail_20' ) end [2025-01-10 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216526', 'tblTempVendorCDR_20' ) start [2025-01-10 11:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216526', 'tblTempVendorCDR_20' ) end [2025-01-10 11:11:37] Production.INFO: ProcessCDR(1,14216526,1,1,2) [2025-01-10 11:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:11:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:11:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:11:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216526', 'tblTempUsageDetail_20' ) start [2025-01-10 11:11:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216526', 'tblTempUsageDetail_20' ) end [2025-01-10 11:11:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:11:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:11:41] Production.INFO: ==9341== Releasing lock... [2025-01-10 11:11:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:11:41] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:12:05 [end_date_ymd] => 2025-01-10 11:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:12:05' and `end` < '2025-01-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-01-10 11:12:27] Production.INFO: count ==3842 [2025-01-10 11:12:29] Production.ERROR: pbx CDR StartTime 2025-01-10 08:12:05 - End Time 2025-01-10 11:12:05 [2025-01-10 11:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216531', 'tblTempUsageDetail_20' ) start [2025-01-10 11:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216531', 'tblTempUsageDetail_20' ) end [2025-01-10 11:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216531', 'tblTempVendorCDR_20' ) start [2025-01-10 11:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216531', 'tblTempVendorCDR_20' ) end [2025-01-10 11:12:29] Production.INFO: ProcessCDR(1,14216531,1,1,2) [2025-01-10 11:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216531', 'tblTempUsageDetail_20' ) start [2025-01-10 11:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216531', 'tblTempUsageDetail_20' ) end [2025-01-10 11:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:12:34] Production.INFO: ==9533== Releasing lock... [2025-01-10 11:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:12:34] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:13:05 [end_date_ymd] => 2025-01-10 11:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:13:05' and `end` < '2025-01-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-01-10 11:13:28] Production.INFO: count ==3864 [2025-01-10 11:13:30] Production.ERROR: pbx CDR StartTime 2025-01-10 08:13:05 - End Time 2025-01-10 11:13:05 [2025-01-10 11:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216536', 'tblTempUsageDetail_20' ) start [2025-01-10 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216536', 'tblTempUsageDetail_20' ) end [2025-01-10 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216536', 'tblTempVendorCDR_20' ) start [2025-01-10 11:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216536', 'tblTempVendorCDR_20' ) end [2025-01-10 11:13:30] Production.INFO: ProcessCDR(1,14216536,1,1,2) [2025-01-10 11:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216536', 'tblTempUsageDetail_20' ) start [2025-01-10 11:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216536', 'tblTempUsageDetail_20' ) end [2025-01-10 11:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:13:34] Production.INFO: ==9604== Releasing lock... [2025-01-10 11:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:13:34] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:14:04 [end_date_ymd] => 2025-01-10 11:14:04 [RateCDR] => 1 ) [2025-01-10 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:14:04' and `end` < '2025-01-10 11:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:14:25] Production.INFO: count ==3866 [2025-01-10 11:14:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:14:04 - End Time 2025-01-10 11:14:04 [2025-01-10 11:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216541', 'tblTempUsageDetail_20' ) start [2025-01-10 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216541', 'tblTempUsageDetail_20' ) end [2025-01-10 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216541', 'tblTempVendorCDR_20' ) start [2025-01-10 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216541', 'tblTempVendorCDR_20' ) end [2025-01-10 11:14:27] Production.INFO: ProcessCDR(1,14216541,1,1,2) [2025-01-10 11:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216541', 'tblTempUsageDetail_20' ) start [2025-01-10 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216541', 'tblTempUsageDetail_20' ) end [2025-01-10 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:14:30] Production.INFO: ==9675== Releasing lock... [2025-01-10 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:14:30] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:15:05 [end_date_ymd] => 2025-01-10 11:15:05 [RateCDR] => 1 ) [2025-01-10 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:15:05' and `end` < '2025-01-10 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:15:30] Production.INFO: count ==3877 [2025-01-10 11:15:31] Production.ERROR: pbx CDR StartTime 2025-01-10 08:15:05 - End Time 2025-01-10 11:15:05 [2025-01-10 11:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216546', 'tblTempUsageDetail_20' ) start [2025-01-10 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216546', 'tblTempUsageDetail_20' ) end [2025-01-10 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216546', 'tblTempVendorCDR_20' ) start [2025-01-10 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216546', 'tblTempVendorCDR_20' ) end [2025-01-10 11:15:31] Production.INFO: ProcessCDR(1,14216546,1,1,2) [2025-01-10 11:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216546', 'tblTempUsageDetail_20' ) start [2025-01-10 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216546', 'tblTempUsageDetail_20' ) end [2025-01-10 11:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:15:36] Production.INFO: ==9824== Releasing lock... [2025-01-10 11:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:15:36] Production.INFO: 57 MB #Memory Used# [2025-01-10 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:16:04 [end_date_ymd] => 2025-01-10 11:16:04 [RateCDR] => 1 ) [2025-01-10 11:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:16:04' and `end` < '2025-01-10 11:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:16:24] Production.INFO: count ==3902 [2025-01-10 11:16:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:16:04 - End Time 2025-01-10 11:16:04 [2025-01-10 11:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216551', 'tblTempUsageDetail_20' ) start [2025-01-10 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216551', 'tblTempUsageDetail_20' ) end [2025-01-10 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216551', 'tblTempVendorCDR_20' ) start [2025-01-10 11:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216551', 'tblTempVendorCDR_20' ) end [2025-01-10 11:16:26] Production.INFO: ProcessCDR(1,14216551,1,1,2) [2025-01-10 11:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216551', 'tblTempUsageDetail_20' ) start [2025-01-10 11:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216551', 'tblTempUsageDetail_20' ) end [2025-01-10 11:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:16:31] Production.INFO: ==9895== Releasing lock... [2025-01-10 11:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:16:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:17:05 [end_date_ymd] => 2025-01-10 11:17:05 [RateCDR] => 1 ) [2025-01-10 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:17:05' and `end` < '2025-01-10 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:17:29] Production.INFO: count ==3917 [2025-01-10 11:17:30] Production.ERROR: pbx CDR StartTime 2025-01-10 08:17:05 - End Time 2025-01-10 11:17:05 [2025-01-10 11:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216556', 'tblTempUsageDetail_20' ) start [2025-01-10 11:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216556', 'tblTempUsageDetail_20' ) end [2025-01-10 11:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216556', 'tblTempVendorCDR_20' ) start [2025-01-10 11:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216556', 'tblTempVendorCDR_20' ) end [2025-01-10 11:17:30] Production.INFO: ProcessCDR(1,14216556,1,1,2) [2025-01-10 11:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216556', 'tblTempUsageDetail_20' ) start [2025-01-10 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216556', 'tblTempUsageDetail_20' ) end [2025-01-10 11:17:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:17:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:17:35] Production.INFO: ==9965== Releasing lock... [2025-01-10 11:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:17:35] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:18:04 [end_date_ymd] => 2025-01-10 11:18:04 [RateCDR] => 1 ) [2025-01-10 11:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:18:04' and `end` < '2025-01-10 11:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:18:23] Production.INFO: count ==3918 [2025-01-10 11:18:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:18:04 - End Time 2025-01-10 11:18:04 [2025-01-10 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216561', 'tblTempUsageDetail_20' ) start [2025-01-10 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216561', 'tblTempUsageDetail_20' ) end [2025-01-10 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216561', 'tblTempVendorCDR_20' ) start [2025-01-10 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216561', 'tblTempVendorCDR_20' ) end [2025-01-10 11:18:24] Production.INFO: ProcessCDR(1,14216561,1,1,2) [2025-01-10 11:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216561', 'tblTempUsageDetail_20' ) start [2025-01-10 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216561', 'tblTempUsageDetail_20' ) end [2025-01-10 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:18:29] Production.INFO: ==10037== Releasing lock... [2025-01-10 11:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:18:29] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:19:04 [end_date_ymd] => 2025-01-10 11:19:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:19:04' and `end` < '2025-01-10 11: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-01-10 11:19:34] Production.INFO: count ==3919 [2025-01-10 11:19:35] Production.ERROR: pbx CDR StartTime 2025-01-10 08:19:04 - End Time 2025-01-10 11:19:04 [2025-01-10 11:19:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216566', 'tblTempUsageDetail_20' ) start [2025-01-10 11:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216566', 'tblTempUsageDetail_20' ) end [2025-01-10 11:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216566', 'tblTempVendorCDR_20' ) start [2025-01-10 11:19:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216566', 'tblTempVendorCDR_20' ) end [2025-01-10 11:19:35] Production.INFO: ProcessCDR(1,14216566,1,1,2) [2025-01-10 11:19:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:19:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:19:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:19:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:19:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216566', 'tblTempUsageDetail_20' ) start [2025-01-10 11:19:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216566', 'tblTempUsageDetail_20' ) end [2025-01-10 11:19:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:19:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:19:40] Production.INFO: ==10107== Releasing lock... [2025-01-10 11:19:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:19:40] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:20:05 [end_date_ymd] => 2025-01-10 11:20:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:20:05' and `end` < '2025-01-10 11: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-01-10 11:20:28] Production.INFO: count ==3924 [2025-01-10 11:20:29] Production.ERROR: pbx CDR StartTime 2025-01-10 08:20:05 - End Time 2025-01-10 11:20:05 [2025-01-10 11:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216571', 'tblTempUsageDetail_20' ) start [2025-01-10 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216571', 'tblTempUsageDetail_20' ) end [2025-01-10 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216571', 'tblTempVendorCDR_20' ) start [2025-01-10 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216571', 'tblTempVendorCDR_20' ) end [2025-01-10 11:20:30] Production.INFO: ProcessCDR(1,14216571,1,1,2) [2025-01-10 11:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216571', 'tblTempUsageDetail_20' ) start [2025-01-10 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216571', 'tblTempUsageDetail_20' ) end [2025-01-10 11:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:20:34] Production.INFO: ==10181== Releasing lock... [2025-01-10 11:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:20:34] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:21:05 [end_date_ymd] => 2025-01-10 11:21:05 [RateCDR] => 1 ) [2025-01-10 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:21:05' and `end` < '2025-01-10 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:21:24] Production.INFO: count ==4009 [2025-01-10 11:21:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:21:05 - End Time 2025-01-10 11:21:05 [2025-01-10 11:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216577', 'tblTempUsageDetail_20' ) start [2025-01-10 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216577', 'tblTempUsageDetail_20' ) end [2025-01-10 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216577', 'tblTempVendorCDR_20' ) start [2025-01-10 11:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216577', 'tblTempVendorCDR_20' ) end [2025-01-10 11:21:26] Production.INFO: ProcessCDR(1,14216577,1,1,2) [2025-01-10 11:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216577', 'tblTempUsageDetail_20' ) start [2025-01-10 11:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216577', 'tblTempUsageDetail_20' ) end [2025-01-10 11:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:21:31] Production.INFO: ==10252== Releasing lock... [2025-01-10 11:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:21:31] Production.INFO: 58 MB #Memory Used# [2025-01-10 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:22:05 [end_date_ymd] => 2025-01-10 11:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:22:05' and `end` < '2025-01-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-01-10 11:22:22] Production.INFO: count ==4033 [2025-01-10 11:22:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:22:05 - End Time 2025-01-10 11:22:05 [2025-01-10 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216582', 'tblTempUsageDetail_20' ) start [2025-01-10 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216582', 'tblTempUsageDetail_20' ) end [2025-01-10 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216582', 'tblTempVendorCDR_20' ) start [2025-01-10 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216582', 'tblTempVendorCDR_20' ) end [2025-01-10 11:22:24] Production.INFO: ProcessCDR(1,14216582,1,1,2) [2025-01-10 11:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216582', 'tblTempUsageDetail_20' ) start [2025-01-10 11:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216582', 'tblTempUsageDetail_20' ) end [2025-01-10 11:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:22:28] Production.INFO: ==10323== Releasing lock... [2025-01-10 11:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:22:28] Production.INFO: 58 MB #Memory Used# [2025-01-10 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:23:04 [end_date_ymd] => 2025-01-10 11:23:04 [RateCDR] => 1 ) [2025-01-10 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:23:04' and `end` < '2025-01-10 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:23:18] Production.INFO: count ==4027 [2025-01-10 11:23:19] Production.ERROR: pbx CDR StartTime 2025-01-10 08:23:04 - End Time 2025-01-10 11:23:04 [2025-01-10 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216587', 'tblTempUsageDetail_20' ) start [2025-01-10 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216587', 'tblTempUsageDetail_20' ) end [2025-01-10 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216587', 'tblTempVendorCDR_20' ) start [2025-01-10 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216587', 'tblTempVendorCDR_20' ) end [2025-01-10 11:23:20] Production.INFO: ProcessCDR(1,14216587,1,1,2) [2025-01-10 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216587', 'tblTempUsageDetail_20' ) start [2025-01-10 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216587', 'tblTempUsageDetail_20' ) end [2025-01-10 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:23:22] Production.INFO: ==10398== Releasing lock... [2025-01-10 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:23:22] Production.INFO: 58 MB #Memory Used# [2025-01-10 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:24:05 [end_date_ymd] => 2025-01-10 11:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:24:05' and `end` < '2025-01-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-01-10 11:24:25] Production.INFO: count ==4040 [2025-01-10 11:24:27] Production.ERROR: pbx CDR StartTime 2025-01-10 08:24:05 - End Time 2025-01-10 11:24:05 [2025-01-10 11:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216592', 'tblTempUsageDetail_20' ) start [2025-01-10 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216592', 'tblTempUsageDetail_20' ) end [2025-01-10 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216592', 'tblTempVendorCDR_20' ) start [2025-01-10 11:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216592', 'tblTempVendorCDR_20' ) end [2025-01-10 11:24:27] Production.INFO: ProcessCDR(1,14216592,1,1,2) [2025-01-10 11:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216592', 'tblTempUsageDetail_20' ) start [2025-01-10 11:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216592', 'tblTempUsageDetail_20' ) end [2025-01-10 11:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:24:32] Production.INFO: ==10475== Releasing lock... [2025-01-10 11:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:24:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:25:04 [end_date_ymd] => 2025-01-10 11:25:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:25:04' and `end` < '2025-01-10 11: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-01-10 11:25:23] Production.INFO: count ==4050 [2025-01-10 11:25:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:25:04 - End Time 2025-01-10 11:25:04 [2025-01-10 11:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216597', 'tblTempUsageDetail_20' ) start [2025-01-10 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216597', 'tblTempUsageDetail_20' ) end [2025-01-10 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216597', 'tblTempVendorCDR_20' ) start [2025-01-10 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216597', 'tblTempVendorCDR_20' ) end [2025-01-10 11:25:25] Production.INFO: ProcessCDR(1,14216597,1,1,2) [2025-01-10 11:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216597', 'tblTempUsageDetail_20' ) start [2025-01-10 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216597', 'tblTempUsageDetail_20' ) end [2025-01-10 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:25:30] Production.INFO: ==10546== Releasing lock... [2025-01-10 11:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:25:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:26:04 [end_date_ymd] => 2025-01-10 11:26:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:26:04' and `end` < '2025-01-10 11: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-01-10 11:26:19] Production.INFO: count ==4065 [2025-01-10 11:26:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:26:04 - End Time 2025-01-10 11:26:04 [2025-01-10 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216602', 'tblTempUsageDetail_20' ) start [2025-01-10 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216602', 'tblTempUsageDetail_20' ) end [2025-01-10 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216602', 'tblTempVendorCDR_20' ) start [2025-01-10 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216602', 'tblTempVendorCDR_20' ) end [2025-01-10 11:26:21] Production.INFO: ProcessCDR(1,14216602,1,1,2) [2025-01-10 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216602', 'tblTempUsageDetail_20' ) start [2025-01-10 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216602', 'tblTempUsageDetail_20' ) end [2025-01-10 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:26:25] Production.INFO: ==10619== Releasing lock... [2025-01-10 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:26:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:27:05 [end_date_ymd] => 2025-01-10 11:27:05 [RateCDR] => 1 ) [2025-01-10 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:27:05' and `end` < '2025-01-10 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:27:19] Production.INFO: count ==4054 [2025-01-10 11:27:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:27:05 - End Time 2025-01-10 11:27:05 [2025-01-10 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216607', 'tblTempUsageDetail_20' ) start [2025-01-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216607', 'tblTempUsageDetail_20' ) end [2025-01-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216607', 'tblTempVendorCDR_20' ) start [2025-01-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216607', 'tblTempVendorCDR_20' ) end [2025-01-10 11:27:21] Production.INFO: ProcessCDR(1,14216607,1,1,2) [2025-01-10 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216607', 'tblTempUsageDetail_20' ) start [2025-01-10 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216607', 'tblTempUsageDetail_20' ) end [2025-01-10 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:27:25] Production.INFO: ==10700== Releasing lock... [2025-01-10 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:27:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:28:05 [end_date_ymd] => 2025-01-10 11:28:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:28:05' and `end` < '2025-01-10 11: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-01-10 11:28:22] Production.INFO: count ==4078 [2025-01-10 11:28:23] Production.ERROR: pbx CDR StartTime 2025-01-10 08:28:05 - End Time 2025-01-10 11:28:05 [2025-01-10 11:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216612', 'tblTempUsageDetail_20' ) start [2025-01-10 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216612', 'tblTempUsageDetail_20' ) end [2025-01-10 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216612', 'tblTempVendorCDR_20' ) start [2025-01-10 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216612', 'tblTempVendorCDR_20' ) end [2025-01-10 11:28:24] Production.INFO: ProcessCDR(1,14216612,1,1,2) [2025-01-10 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216612', 'tblTempUsageDetail_20' ) start [2025-01-10 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216612', 'tblTempUsageDetail_20' ) end [2025-01-10 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:28:27] Production.INFO: ==10812== Releasing lock... [2025-01-10 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:28:27] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:29:04 [end_date_ymd] => 2025-01-10 11:29:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:29:04' and `end` < '2025-01-10 11: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-01-10 11:29:31] Production.INFO: count ==4109 [2025-01-10 11:29:33] Production.ERROR: pbx CDR StartTime 2025-01-10 08:29:04 - End Time 2025-01-10 11:29:04 [2025-01-10 11:29:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216617', 'tblTempUsageDetail_20' ) start [2025-01-10 11:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216617', 'tblTempUsageDetail_20' ) end [2025-01-10 11:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216617', 'tblTempVendorCDR_20' ) start [2025-01-10 11:29:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216617', 'tblTempVendorCDR_20' ) end [2025-01-10 11:29:33] Production.INFO: ProcessCDR(1,14216617,1,1,2) [2025-01-10 11:29:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:29:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:29:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216617', 'tblTempUsageDetail_20' ) start [2025-01-10 11:29:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216617', 'tblTempUsageDetail_20' ) end [2025-01-10 11:29:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:29:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:29:38] Production.INFO: ==10891== Releasing lock... [2025-01-10 11:29:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:29:38] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:30:05 [end_date_ymd] => 2025-01-10 11:30:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:30:05' and `end` < '2025-01-10 11: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-01-10 11:30:30] Production.INFO: count ==4114 [2025-01-10 11:30:32] Production.ERROR: pbx CDR StartTime 2025-01-10 08:30:05 - End Time 2025-01-10 11:30:05 [2025-01-10 11:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216623', 'tblTempUsageDetail_20' ) start [2025-01-10 11:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216623', 'tblTempUsageDetail_20' ) end [2025-01-10 11:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216623', 'tblTempVendorCDR_20' ) start [2025-01-10 11:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216623', 'tblTempVendorCDR_20' ) end [2025-01-10 11:30:32] Production.INFO: ProcessCDR(1,14216623,1,1,2) [2025-01-10 11:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216623', 'tblTempUsageDetail_20' ) start [2025-01-10 11:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216623', 'tblTempUsageDetail_20' ) end [2025-01-10 11:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:30:37] Production.INFO: ==10986== Releasing lock... [2025-01-10 11:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:30:37] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:31:05 [end_date_ymd] => 2025-01-10 11:31:05 [RateCDR] => 1 ) [2025-01-10 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:31:05' and `end` < '2025-01-10 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:31:24] Production.INFO: count ==4178 [2025-01-10 11:31:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:31:05 - End Time 2025-01-10 11:31:05 [2025-01-10 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216625', 'tblTempUsageDetail_20' ) start [2025-01-10 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216625', 'tblTempUsageDetail_20' ) end [2025-01-10 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216625', 'tblTempVendorCDR_20' ) start [2025-01-10 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216625', 'tblTempVendorCDR_20' ) end [2025-01-10 11:31:26] Production.INFO: ProcessCDR(1,14216625,1,1,2) [2025-01-10 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216625', 'tblTempUsageDetail_20' ) start [2025-01-10 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216625', 'tblTempUsageDetail_20' ) end [2025-01-10 11:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:31:31] Production.INFO: ==11078== Releasing lock... [2025-01-10 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:31:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:32:04 [end_date_ymd] => 2025-01-10 11:32:04 [RateCDR] => 1 ) [2025-01-10 11:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:32:04' and `end` < '2025-01-10 11:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:32:24] Production.INFO: count ==4182 [2025-01-10 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:32:04 - End Time 2025-01-10 11:32:04 [2025-01-10 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216633', 'tblTempUsageDetail_20' ) start [2025-01-10 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216633', 'tblTempUsageDetail_20' ) end [2025-01-10 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216633', 'tblTempVendorCDR_20' ) start [2025-01-10 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216633', 'tblTempVendorCDR_20' ) end [2025-01-10 11:32:26] Production.INFO: ProcessCDR(1,14216633,1,1,2) [2025-01-10 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216633', 'tblTempUsageDetail_20' ) start [2025-01-10 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216633', 'tblTempUsageDetail_20' ) end [2025-01-10 11:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:32:31] Production.INFO: ==11175== Releasing lock... [2025-01-10 11:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:32:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:33:05 [end_date_ymd] => 2025-01-10 11:33:05 [RateCDR] => 1 ) [2025-01-10 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:33:05' and `end` < '2025-01-10 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:33:19] Production.INFO: count ==4203 [2025-01-10 11:33:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:33:05 - End Time 2025-01-10 11:33:05 [2025-01-10 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216638', 'tblTempUsageDetail_20' ) start [2025-01-10 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216638', 'tblTempUsageDetail_20' ) end [2025-01-10 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216638', 'tblTempVendorCDR_20' ) start [2025-01-10 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216638', 'tblTempVendorCDR_20' ) end [2025-01-10 11:33:21] Production.INFO: ProcessCDR(1,14216638,1,1,2) [2025-01-10 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216638', 'tblTempUsageDetail_20' ) start [2025-01-10 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216638', 'tblTempUsageDetail_20' ) end [2025-01-10 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:33:26] Production.INFO: ==11271== Releasing lock... [2025-01-10 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:33:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:34:04 [end_date_ymd] => 2025-01-10 11:34:04 [RateCDR] => 1 ) [2025-01-10 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:34:04' and `end` < '2025-01-10 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:34:18] Production.INFO: count ==4209 [2025-01-10 11:34:20] Production.ERROR: pbx CDR StartTime 2025-01-10 08:34:04 - End Time 2025-01-10 11:34:04 [2025-01-10 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216643', 'tblTempUsageDetail_20' ) start [2025-01-10 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216643', 'tblTempUsageDetail_20' ) end [2025-01-10 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216643', 'tblTempVendorCDR_20' ) start [2025-01-10 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216643', 'tblTempVendorCDR_20' ) end [2025-01-10 11:34:20] Production.INFO: ProcessCDR(1,14216643,1,1,2) [2025-01-10 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216643', 'tblTempUsageDetail_20' ) start [2025-01-10 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216643', 'tblTempUsageDetail_20' ) end [2025-01-10 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:34:25] Production.INFO: ==11363== Releasing lock... [2025-01-10 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:34:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:35:05 [end_date_ymd] => 2025-01-10 11:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:35:05' and `end` < '2025-01-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-01-10 11:35:21] Production.INFO: count ==4247 [2025-01-10 11:35:22] Production.ERROR: pbx CDR StartTime 2025-01-10 08:35:05 - End Time 2025-01-10 11:35:05 [2025-01-10 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216648', 'tblTempUsageDetail_20' ) start [2025-01-10 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216648', 'tblTempUsageDetail_20' ) end [2025-01-10 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216648', 'tblTempVendorCDR_20' ) start [2025-01-10 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216648', 'tblTempVendorCDR_20' ) end [2025-01-10 11:35:22] Production.INFO: ProcessCDR(1,14216648,1,1,2) [2025-01-10 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216648', 'tblTempUsageDetail_20' ) start [2025-01-10 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216648', 'tblTempUsageDetail_20' ) end [2025-01-10 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:35:27] Production.INFO: ==11467== Releasing lock... [2025-01-10 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:35:27] Production.INFO: 60 MB #Memory Used# [2025-01-10 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:36:04 [end_date_ymd] => 2025-01-10 11:36:04 [RateCDR] => 1 ) [2025-01-10 11:36: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-01-10 08:36:04' and `end` < '2025-01-10 11:36: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-01-10 11:36:30] Production.INFO: count ==4262 [2025-01-10 11:36:32] Production.ERROR: pbx CDR StartTime 2025-01-10 08:36:04 - End Time 2025-01-10 11:36:04 [2025-01-10 11:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216653', 'tblTempUsageDetail_20' ) start [2025-01-10 11:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216653', 'tblTempUsageDetail_20' ) end [2025-01-10 11:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216653', 'tblTempVendorCDR_20' ) start [2025-01-10 11:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216653', 'tblTempVendorCDR_20' ) end [2025-01-10 11:36:32] Production.INFO: ProcessCDR(1,14216653,1,1,2) [2025-01-10 11:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:36:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:36:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:36:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:36:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216653', 'tblTempUsageDetail_20' ) start [2025-01-10 11:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216653', 'tblTempUsageDetail_20' ) end [2025-01-10 11:36:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:36:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:36:37] Production.INFO: ==11564== Releasing lock... [2025-01-10 11:36:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:36:37] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:37:04 [end_date_ymd] => 2025-01-10 11:37:04 [RateCDR] => 1 ) [2025-01-10 11:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:37:04' and `end` < '2025-01-10 11:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:37:24] Production.INFO: count ==4329 [2025-01-10 11:37:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:37:04 - End Time 2025-01-10 11:37:04 [2025-01-10 11:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216658', 'tblTempUsageDetail_20' ) start [2025-01-10 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216658', 'tblTempUsageDetail_20' ) end [2025-01-10 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216658', 'tblTempVendorCDR_20' ) start [2025-01-10 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216658', 'tblTempVendorCDR_20' ) end [2025-01-10 11:37:26] Production.INFO: ProcessCDR(1,14216658,1,1,2) [2025-01-10 11:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216658', 'tblTempUsageDetail_20' ) start [2025-01-10 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216658', 'tblTempUsageDetail_20' ) end [2025-01-10 11:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:37:29] Production.INFO: ==11666== Releasing lock... [2025-01-10 11:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:37:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:38:05 [end_date_ymd] => 2025-01-10 11:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:38:05' and `end` < '2025-01-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-01-10 11:38:25] Production.INFO: count ==4359 [2025-01-10 11:38:27] Production.ERROR: pbx CDR StartTime 2025-01-10 08:38:05 - End Time 2025-01-10 11:38:05 [2025-01-10 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216663', 'tblTempUsageDetail_20' ) start [2025-01-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216663', 'tblTempUsageDetail_20' ) end [2025-01-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216663', 'tblTempVendorCDR_20' ) start [2025-01-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216663', 'tblTempVendorCDR_20' ) end [2025-01-10 11:38:27] Production.INFO: ProcessCDR(1,14216663,1,1,2) [2025-01-10 11:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216663', 'tblTempUsageDetail_20' ) start [2025-01-10 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216663', 'tblTempUsageDetail_20' ) end [2025-01-10 11:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:38:32] Production.INFO: ==11764== Releasing lock... [2025-01-10 11:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:38:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:39:04 [end_date_ymd] => 2025-01-10 11:39:04 [RateCDR] => 1 ) [2025-01-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-01-10 08:39:04' and `end` < '2025-01-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-01-10 11:39:18] Production.INFO: count ==4373 [2025-01-10 11:39:20] Production.ERROR: pbx CDR StartTime 2025-01-10 08:39:04 - End Time 2025-01-10 11:39:04 [2025-01-10 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216668', 'tblTempUsageDetail_20' ) start [2025-01-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216668', 'tblTempUsageDetail_20' ) end [2025-01-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216668', 'tblTempVendorCDR_20' ) start [2025-01-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216668', 'tblTempVendorCDR_20' ) end [2025-01-10 11:39:20] Production.INFO: ProcessCDR(1,14216668,1,1,2) [2025-01-10 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216668', 'tblTempUsageDetail_20' ) start [2025-01-10 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216668', 'tblTempUsageDetail_20' ) end [2025-01-10 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:39:25] Production.INFO: ==11875== Releasing lock... [2025-01-10 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:39:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:40:05 [end_date_ymd] => 2025-01-10 11:40:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:40:05' and `end` < '2025-01-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-01-10 11:40:34] Production.INFO: count ==4379 [2025-01-10 11:40:36] Production.ERROR: pbx CDR StartTime 2025-01-10 08:40:05 - End Time 2025-01-10 11:40:05 [2025-01-10 11:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216674', 'tblTempUsageDetail_20' ) start [2025-01-10 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216674', 'tblTempUsageDetail_20' ) end [2025-01-10 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216674', 'tblTempVendorCDR_20' ) start [2025-01-10 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216674', 'tblTempVendorCDR_20' ) end [2025-01-10 11:40:36] Production.INFO: ProcessCDR(1,14216674,1,1,2) [2025-01-10 11:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216674', 'tblTempUsageDetail_20' ) start [2025-01-10 11:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216674', 'tblTempUsageDetail_20' ) end [2025-01-10 11:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:40:41] Production.INFO: ==12007== Releasing lock... [2025-01-10 11:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:40:41] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:41:05 [end_date_ymd] => 2025-01-10 11:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:41:05' and `end` < '2025-01-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-01-10 11:41:23] Production.INFO: count ==4428 [2025-01-10 11:41:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:41:05 - End Time 2025-01-10 11:41:05 [2025-01-10 11:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216679', 'tblTempUsageDetail_20' ) start [2025-01-10 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216679', 'tblTempUsageDetail_20' ) end [2025-01-10 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216679', 'tblTempVendorCDR_20' ) start [2025-01-10 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216679', 'tblTempVendorCDR_20' ) end [2025-01-10 11:41:25] Production.INFO: ProcessCDR(1,14216679,1,1,2) [2025-01-10 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216679', 'tblTempUsageDetail_20' ) start [2025-01-10 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216679', 'tblTempUsageDetail_20' ) end [2025-01-10 11:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:41:29] Production.INFO: ==12139== Releasing lock... [2025-01-10 11:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:41:29] Production.INFO: 61 MB #Memory Used# [2025-01-10 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:42:05 [end_date_ymd] => 2025-01-10 11:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:42:05' and `end` < '2025-01-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-01-10 11:42:23] Production.INFO: count ==4429 [2025-01-10 11:42:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:42:05 - End Time 2025-01-10 11:42:05 [2025-01-10 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216684', 'tblTempUsageDetail_20' ) start [2025-01-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216684', 'tblTempUsageDetail_20' ) end [2025-01-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216684', 'tblTempVendorCDR_20' ) start [2025-01-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216684', 'tblTempVendorCDR_20' ) end [2025-01-10 11:42:25] Production.INFO: ProcessCDR(1,14216684,1,1,2) [2025-01-10 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216684', 'tblTempUsageDetail_20' ) start [2025-01-10 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216684', 'tblTempUsageDetail_20' ) end [2025-01-10 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:42:30] Production.INFO: ==12276== Releasing lock... [2025-01-10 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:42:30] Production.INFO: 61 MB #Memory Used# [2025-01-10 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:43:05 [end_date_ymd] => 2025-01-10 11:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:43:05' and `end` < '2025-01-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-01-10 11:43:23] Production.INFO: count ==4463 [2025-01-10 11:43:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:43:05 - End Time 2025-01-10 11:43:05 [2025-01-10 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216689', 'tblTempUsageDetail_20' ) start [2025-01-10 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216689', 'tblTempUsageDetail_20' ) end [2025-01-10 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216689', 'tblTempVendorCDR_20' ) start [2025-01-10 11:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216689', 'tblTempVendorCDR_20' ) end [2025-01-10 11:43:25] Production.INFO: ProcessCDR(1,14216689,1,1,2) [2025-01-10 11:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216689', 'tblTempUsageDetail_20' ) start [2025-01-10 11:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216689', 'tblTempUsageDetail_20' ) end [2025-01-10 11:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:43:29] Production.INFO: ==12445== Releasing lock... [2025-01-10 11:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:43:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:44:05 [end_date_ymd] => 2025-01-10 11:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:44:05' and `end` < '2025-01-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-01-10 11:44:28] Production.INFO: count ==4451 [2025-01-10 11:44:29] Production.ERROR: pbx CDR StartTime 2025-01-10 08:44:05 - End Time 2025-01-10 11:44:05 [2025-01-10 11:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216694', 'tblTempUsageDetail_20' ) start [2025-01-10 11:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216694', 'tblTempUsageDetail_20' ) end [2025-01-10 11:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216694', 'tblTempVendorCDR_20' ) start [2025-01-10 11:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216694', 'tblTempVendorCDR_20' ) end [2025-01-10 11:44:30] Production.INFO: ProcessCDR(1,14216694,1,1,2) [2025-01-10 11:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216694', 'tblTempUsageDetail_20' ) start [2025-01-10 11:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216694', 'tblTempUsageDetail_20' ) end [2025-01-10 11:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:44:34] Production.INFO: ==12579== Releasing lock... [2025-01-10 11:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:44:34] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:45:05 [end_date_ymd] => 2025-01-10 11:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:45:05' and `end` < '2025-01-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-01-10 11:45:30] Production.INFO: count ==4464 [2025-01-10 11:45:31] Production.ERROR: pbx CDR StartTime 2025-01-10 08:45:05 - End Time 2025-01-10 11:45:05 [2025-01-10 11:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216699', 'tblTempUsageDetail_20' ) start [2025-01-10 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216699', 'tblTempUsageDetail_20' ) end [2025-01-10 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216699', 'tblTempVendorCDR_20' ) start [2025-01-10 11:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216699', 'tblTempVendorCDR_20' ) end [2025-01-10 11:45:32] Production.INFO: ProcessCDR(1,14216699,1,1,2) [2025-01-10 11:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216699', 'tblTempUsageDetail_20' ) start [2025-01-10 11:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216699', 'tblTempUsageDetail_20' ) end [2025-01-10 11:45:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:45:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:45:36] Production.INFO: ==12712== Releasing lock... [2025-01-10 11:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:45:36] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:46:04 [end_date_ymd] => 2025-01-10 11:46:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:46:04' and `end` < '2025-01-10 11: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-01-10 11:46:18] Production.INFO: count ==4455 [2025-01-10 11:46:20] Production.ERROR: pbx CDR StartTime 2025-01-10 08:46:04 - End Time 2025-01-10 11:46:04 [2025-01-10 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216704', 'tblTempUsageDetail_20' ) start [2025-01-10 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216704', 'tblTempUsageDetail_20' ) end [2025-01-10 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216704', 'tblTempVendorCDR_20' ) start [2025-01-10 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216704', 'tblTempVendorCDR_20' ) end [2025-01-10 11:46:20] Production.INFO: ProcessCDR(1,14216704,1,1,2) [2025-01-10 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216704', 'tblTempUsageDetail_20' ) start [2025-01-10 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216704', 'tblTempUsageDetail_20' ) end [2025-01-10 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:46:25] Production.INFO: ==12840== Releasing lock... [2025-01-10 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:46:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:47:05 [end_date_ymd] => 2025-01-10 11:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:47:05' and `end` < '2025-01-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-01-10 11:47:20] Production.INFO: count ==4453 [2025-01-10 11:47:22] Production.ERROR: pbx CDR StartTime 2025-01-10 08:47:05 - End Time 2025-01-10 11:47:05 [2025-01-10 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216709', 'tblTempUsageDetail_20' ) start [2025-01-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216709', 'tblTempUsageDetail_20' ) end [2025-01-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216709', 'tblTempVendorCDR_20' ) start [2025-01-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216709', 'tblTempVendorCDR_20' ) end [2025-01-10 11:47:22] Production.INFO: ProcessCDR(1,14216709,1,1,2) [2025-01-10 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216709', 'tblTempUsageDetail_20' ) start [2025-01-10 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216709', 'tblTempUsageDetail_20' ) end [2025-01-10 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:47:26] Production.INFO: ==12966== Releasing lock... [2025-01-10 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:47:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:48:05 [end_date_ymd] => 2025-01-10 11:48:05 [RateCDR] => 1 ) [2025-01-10 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:48:05' and `end` < '2025-01-10 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:48:21] Production.INFO: count ==4459 [2025-01-10 11:48:23] Production.ERROR: pbx CDR StartTime 2025-01-10 08:48:05 - End Time 2025-01-10 11:48:05 [2025-01-10 11:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216714', 'tblTempUsageDetail_20' ) start [2025-01-10 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216714', 'tblTempUsageDetail_20' ) end [2025-01-10 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216714', 'tblTempVendorCDR_20' ) start [2025-01-10 11:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216714', 'tblTempVendorCDR_20' ) end [2025-01-10 11:48:23] Production.INFO: ProcessCDR(1,14216714,1,1,2) [2025-01-10 11:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216714', 'tblTempUsageDetail_20' ) start [2025-01-10 11:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216714', 'tblTempUsageDetail_20' ) end [2025-01-10 11:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:48:28] Production.INFO: ==13094== Releasing lock... [2025-01-10 11:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:48:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:49:05 [end_date_ymd] => 2025-01-10 11:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:49:05' and `end` < '2025-01-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-01-10 11:49:22] Production.INFO: count ==4464 [2025-01-10 11:49:24] Production.ERROR: pbx CDR StartTime 2025-01-10 08:49:05 - End Time 2025-01-10 11:49:05 [2025-01-10 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216719', 'tblTempUsageDetail_20' ) start [2025-01-10 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216719', 'tblTempUsageDetail_20' ) end [2025-01-10 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216719', 'tblTempVendorCDR_20' ) start [2025-01-10 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216719', 'tblTempVendorCDR_20' ) end [2025-01-10 11:49:24] Production.INFO: ProcessCDR(1,14216719,1,1,2) [2025-01-10 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216719', 'tblTempUsageDetail_20' ) start [2025-01-10 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216719', 'tblTempUsageDetail_20' ) end [2025-01-10 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:49:29] Production.INFO: ==13221== Releasing lock... [2025-01-10 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:49:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-10 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:50:05 [end_date_ymd] => 2025-01-10 11:50:05 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:50:05' and `end` < '2025-01-10 11: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-01-10 11:50:26] Production.INFO: count ==4468 [2025-01-10 11:50:28] Production.ERROR: pbx CDR StartTime 2025-01-10 08:50:05 - End Time 2025-01-10 11:50:05 [2025-01-10 11:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216725', 'tblTempUsageDetail_20' ) start [2025-01-10 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216725', 'tblTempUsageDetail_20' ) end [2025-01-10 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216725', 'tblTempVendorCDR_20' ) start [2025-01-10 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216725', 'tblTempVendorCDR_20' ) end [2025-01-10 11:50:28] Production.INFO: ProcessCDR(1,14216725,1,1,2) [2025-01-10 11:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216725', 'tblTempUsageDetail_20' ) start [2025-01-10 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216725', 'tblTempUsageDetail_20' ) end [2025-01-10 11:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:50:31] Production.INFO: ==13354== Releasing lock... [2025-01-10 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:50:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-10 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:51:05 [end_date_ymd] => 2025-01-10 11:51:05 [RateCDR] => 1 ) [2025-01-10 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:51:05' and `end` < '2025-01-10 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:51:25] Production.INFO: count ==4567 [2025-01-10 11:51:27] Production.ERROR: pbx CDR StartTime 2025-01-10 08:51:05 - End Time 2025-01-10 11:51:05 [2025-01-10 11:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216730', 'tblTempUsageDetail_20' ) start [2025-01-10 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216730', 'tblTempUsageDetail_20' ) end [2025-01-10 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216730', 'tblTempVendorCDR_20' ) start [2025-01-10 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216730', 'tblTempVendorCDR_20' ) end [2025-01-10 11:51:27] Production.INFO: ProcessCDR(1,14216730,1,1,2) [2025-01-10 11:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216730', 'tblTempUsageDetail_20' ) start [2025-01-10 11:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216730', 'tblTempUsageDetail_20' ) end [2025-01-10 11:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:51:32] Production.INFO: ==13490== Releasing lock... [2025-01-10 11:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:51:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-10 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:52:05 [end_date_ymd] => 2025-01-10 11:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:52:05' and `end` < '2025-01-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-01-10 11:52:29] Production.INFO: count ==4595 [2025-01-10 11:52:31] Production.ERROR: pbx CDR StartTime 2025-01-10 08:52:05 - End Time 2025-01-10 11:52:05 [2025-01-10 11:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216735', 'tblTempUsageDetail_20' ) start [2025-01-10 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216735', 'tblTempUsageDetail_20' ) end [2025-01-10 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216735', 'tblTempVendorCDR_20' ) start [2025-01-10 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216735', 'tblTempVendorCDR_20' ) end [2025-01-10 11:52:31] Production.INFO: ProcessCDR(1,14216735,1,1,2) [2025-01-10 11:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216735', 'tblTempUsageDetail_20' ) start [2025-01-10 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216735', 'tblTempUsageDetail_20' ) end [2025-01-10 11:52:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:52:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:52:36] Production.INFO: ==13610== Releasing lock... [2025-01-10 11:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:52:36] Production.INFO: 62.25 MB #Memory Used# [2025-01-10 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:53:05 [end_date_ymd] => 2025-01-10 11:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:53:05' and `end` < '2025-01-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-01-10 11:53:23] Production.INFO: count ==4597 [2025-01-10 11:53:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:53:05 - End Time 2025-01-10 11:53:05 [2025-01-10 11:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216740', 'tblTempUsageDetail_20' ) start [2025-01-10 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216740', 'tblTempUsageDetail_20' ) end [2025-01-10 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216740', 'tblTempVendorCDR_20' ) start [2025-01-10 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216740', 'tblTempVendorCDR_20' ) end [2025-01-10 11:53:25] Production.INFO: ProcessCDR(1,14216740,1,1,2) [2025-01-10 11:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216740', 'tblTempUsageDetail_20' ) start [2025-01-10 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216740', 'tblTempUsageDetail_20' ) end [2025-01-10 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:53:30] Production.INFO: ==13718== Releasing lock... [2025-01-10 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:53:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-10 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:54:04 [end_date_ymd] => 2025-01-10 11:54:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:54:04' and `end` < '2025-01-10 11: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-01-10 11:54:23] Production.INFO: count ==4586 [2025-01-10 11:54:25] Production.ERROR: pbx CDR StartTime 2025-01-10 08:54:04 - End Time 2025-01-10 11:54:04 [2025-01-10 11:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216745', 'tblTempUsageDetail_20' ) start [2025-01-10 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216745', 'tblTempUsageDetail_20' ) end [2025-01-10 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216745', 'tblTempVendorCDR_20' ) start [2025-01-10 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216745', 'tblTempVendorCDR_20' ) end [2025-01-10 11:54:25] Production.INFO: ProcessCDR(1,14216745,1,1,2) [2025-01-10 11:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216745', 'tblTempUsageDetail_20' ) start [2025-01-10 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216745', 'tblTempUsageDetail_20' ) end [2025-01-10 11:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:54:30] Production.INFO: ==13799== Releasing lock... [2025-01-10 11:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:54:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-10 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:55:05 [end_date_ymd] => 2025-01-10 11:55:05 [RateCDR] => 1 ) [2025-01-10 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:55:05' and `end` < '2025-01-10 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:55:19] Production.INFO: count ==4554 [2025-01-10 11:55:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:55:05 - End Time 2025-01-10 11:55:05 [2025-01-10 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216750', 'tblTempUsageDetail_20' ) start [2025-01-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216750', 'tblTempUsageDetail_20' ) end [2025-01-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216750', 'tblTempVendorCDR_20' ) start [2025-01-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216750', 'tblTempVendorCDR_20' ) end [2025-01-10 11:55:21] Production.INFO: ProcessCDR(1,14216750,1,1,2) [2025-01-10 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216750', 'tblTempUsageDetail_20' ) start [2025-01-10 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216750', 'tblTempUsageDetail_20' ) end [2025-01-10 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:55:25] Production.INFO: ==13874== Releasing lock... [2025-01-10 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:55:25] Production.INFO: 62 MB #Memory Used# [2025-01-10 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:56:04 [end_date_ymd] => 2025-01-10 11:56:04 [RateCDR] => 1 ) [2025-01-10 11: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-01-10 08:56:04' and `end` < '2025-01-10 11: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-01-10 11:56:25] Production.INFO: count ==4526 [2025-01-10 11:56:26] Production.ERROR: pbx CDR StartTime 2025-01-10 08:56:04 - End Time 2025-01-10 11:56:04 [2025-01-10 11:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216755', 'tblTempUsageDetail_20' ) start [2025-01-10 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216755', 'tblTempUsageDetail_20' ) end [2025-01-10 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216755', 'tblTempVendorCDR_20' ) start [2025-01-10 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216755', 'tblTempVendorCDR_20' ) end [2025-01-10 11:56:27] Production.INFO: ProcessCDR(1,14216755,1,1,2) [2025-01-10 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216755', 'tblTempUsageDetail_20' ) start [2025-01-10 11:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216755', 'tblTempUsageDetail_20' ) end [2025-01-10 11:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:56:31] Production.INFO: ==13949== Releasing lock... [2025-01-10 11:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:56:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-10 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:57:04 [end_date_ymd] => 2025-01-10 11:57:04 [RateCDR] => 1 ) [2025-01-10 11:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 08:57:04' and `end` < '2025-01-10 11:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 11:57:21] Production.INFO: count ==4536 [2025-01-10 11:57:23] Production.ERROR: pbx CDR StartTime 2025-01-10 08:57:04 - End Time 2025-01-10 11:57:04 [2025-01-10 11:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216760', 'tblTempUsageDetail_20' ) start [2025-01-10 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216760', 'tblTempUsageDetail_20' ) end [2025-01-10 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216760', 'tblTempVendorCDR_20' ) start [2025-01-10 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216760', 'tblTempVendorCDR_20' ) end [2025-01-10 11:57:24] Production.INFO: ProcessCDR(1,14216760,1,1,2) [2025-01-10 11:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216760', 'tblTempUsageDetail_20' ) start [2025-01-10 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216760', 'tblTempUsageDetail_20' ) end [2025-01-10 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:57:28] Production.INFO: ==14027== Releasing lock... [2025-01-10 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:57:28] Production.INFO: 62 MB #Memory Used# [2025-01-10 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:58:05 [end_date_ymd] => 2025-01-10 11:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:58:05' and `end` < '2025-01-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-01-10 11:58:19] Production.INFO: count ==4542 [2025-01-10 11:58:21] Production.ERROR: pbx CDR StartTime 2025-01-10 08:58:05 - End Time 2025-01-10 11:58:05 [2025-01-10 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216765', 'tblTempUsageDetail_20' ) start [2025-01-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216765', 'tblTempUsageDetail_20' ) end [2025-01-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216765', 'tblTempVendorCDR_20' ) start [2025-01-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216765', 'tblTempVendorCDR_20' ) end [2025-01-10 11:58:21] Production.INFO: ProcessCDR(1,14216765,1,1,2) [2025-01-10 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216765', 'tblTempUsageDetail_20' ) start [2025-01-10 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216765', 'tblTempUsageDetail_20' ) end [2025-01-10 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:58:25] Production.INFO: ==14106== Releasing lock... [2025-01-10 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:58:25] Production.INFO: 62 MB #Memory Used# [2025-01-10 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 08:59:05 [end_date_ymd] => 2025-01-10 11:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 08:59:05' and `end` < '2025-01-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-01-10 11:59:20] Production.INFO: count ==4539 [2025-01-10 11:59:22] Production.ERROR: pbx CDR StartTime 2025-01-10 08:59:05 - End Time 2025-01-10 11:59:05 [2025-01-10 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216770', 'tblTempUsageDetail_20' ) start [2025-01-10 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216770', 'tblTempUsageDetail_20' ) end [2025-01-10 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216770', 'tblTempVendorCDR_20' ) start [2025-01-10 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216770', 'tblTempVendorCDR_20' ) end [2025-01-10 11:59:22] Production.INFO: ProcessCDR(1,14216770,1,1,2) [2025-01-10 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216770', 'tblTempUsageDetail_20' ) start [2025-01-10 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216770', 'tblTempUsageDetail_20' ) end [2025-01-10 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 11:59:26] Production.INFO: ==14225== Releasing lock... [2025-01-10 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 11:59:26] Production.INFO: 62 MB #Memory Used# [2025-01-10 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:00:06 [end_date_ymd] => 2025-01-10 12:00:06 [RateCDR] => 1 ) [2025-01-10 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:00:06' and `end` < '2025-01-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-01-10 12:00:24] Production.INFO: count ==4550 [2025-01-10 12:00:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:00:06 - End Time 2025-01-10 12:00:06 [2025-01-10 12:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216775', 'tblTempUsageDetail_20' ) start [2025-01-10 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216775', 'tblTempUsageDetail_20' ) end [2025-01-10 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216775', 'tblTempVendorCDR_20' ) start [2025-01-10 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216775', 'tblTempVendorCDR_20' ) end [2025-01-10 12:00:26] Production.INFO: ProcessCDR(1,14216775,1,1,2) [2025-01-10 12:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216775', 'tblTempUsageDetail_20' ) start [2025-01-10 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216775', 'tblTempUsageDetail_20' ) end [2025-01-10 12:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:00:31] Production.INFO: ==14303== Releasing lock... [2025-01-10 12:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:00:31] Production.INFO: 62 MB #Memory Used# [2025-01-10 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:01:05 [end_date_ymd] => 2025-01-10 12:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:01:05' and `end` < '2025-01-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-01-10 12:01:35] Production.INFO: count ==4638 [2025-01-10 12:01:36] Production.ERROR: pbx CDR StartTime 2025-01-10 09:01:05 - End Time 2025-01-10 12:01:05 [2025-01-10 12:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216781', 'tblTempUsageDetail_20' ) start [2025-01-10 12:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216781', 'tblTempUsageDetail_20' ) end [2025-01-10 12:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216781', 'tblTempVendorCDR_20' ) start [2025-01-10 12:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216781', 'tblTempVendorCDR_20' ) end [2025-01-10 12:01:37] Production.INFO: ProcessCDR(1,14216781,1,1,2) [2025-01-10 12:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:01:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216781', 'tblTempUsageDetail_20' ) start [2025-01-10 12:01:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216781', 'tblTempUsageDetail_20' ) end [2025-01-10 12:01:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:01:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:01:41] Production.INFO: ==14390== Releasing lock... [2025-01-10 12:01:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:01:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-10 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:02:05 [end_date_ymd] => 2025-01-10 12:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:02:05' and `end` < '2025-01-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-01-10 12:02:30] Production.INFO: count ==4653 [2025-01-10 12:02:32] Production.ERROR: pbx CDR StartTime 2025-01-10 09:02:05 - End Time 2025-01-10 12:02:05 [2025-01-10 12:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216786', 'tblTempUsageDetail_20' ) start [2025-01-10 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216786', 'tblTempUsageDetail_20' ) end [2025-01-10 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216786', 'tblTempVendorCDR_20' ) start [2025-01-10 12:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216786', 'tblTempVendorCDR_20' ) end [2025-01-10 12:02:32] Production.INFO: ProcessCDR(1,14216786,1,1,2) [2025-01-10 12:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216786', 'tblTempUsageDetail_20' ) start [2025-01-10 12:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216786', 'tblTempUsageDetail_20' ) end [2025-01-10 12:02:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:02:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:02:37] Production.INFO: ==14460== Releasing lock... [2025-01-10 12:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:02:37] Production.INFO: 62.75 MB #Memory Used# [2025-01-10 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:03:04 [end_date_ymd] => 2025-01-10 12:03:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:03:04' and `end` < '2025-01-10 12: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-01-10 12:03:26] Production.INFO: count ==4673 [2025-01-10 12:03:28] Production.ERROR: pbx CDR StartTime 2025-01-10 09:03:04 - End Time 2025-01-10 12:03:04 [2025-01-10 12:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216791', 'tblTempUsageDetail_20' ) start [2025-01-10 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216791', 'tblTempUsageDetail_20' ) end [2025-01-10 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216791', 'tblTempVendorCDR_20' ) start [2025-01-10 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216791', 'tblTempVendorCDR_20' ) end [2025-01-10 12:03:28] Production.INFO: ProcessCDR(1,14216791,1,1,2) [2025-01-10 12:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216791', 'tblTempUsageDetail_20' ) start [2025-01-10 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216791', 'tblTempUsageDetail_20' ) end [2025-01-10 12:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:03:33] Production.INFO: ==14534== Releasing lock... [2025-01-10 12:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:03:33] Production.INFO: 63 MB #Memory Used# [2025-01-10 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:04:05 [end_date_ymd] => 2025-01-10 12:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:04:05' and `end` < '2025-01-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-01-10 12:04:26] Production.INFO: count ==4678 [2025-01-10 12:04:28] Production.ERROR: pbx CDR StartTime 2025-01-10 09:04:05 - End Time 2025-01-10 12:04:05 [2025-01-10 12:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216796', 'tblTempUsageDetail_20' ) start [2025-01-10 12:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216796', 'tblTempUsageDetail_20' ) end [2025-01-10 12:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216796', 'tblTempVendorCDR_20' ) start [2025-01-10 12:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216796', 'tblTempVendorCDR_20' ) end [2025-01-10 12:04:28] Production.INFO: ProcessCDR(1,14216796,1,1,2) [2025-01-10 12:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216796', 'tblTempUsageDetail_20' ) start [2025-01-10 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216796', 'tblTempUsageDetail_20' ) end [2025-01-10 12:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:04:33] Production.INFO: ==14609== Releasing lock... [2025-01-10 12:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:04:33] Production.INFO: 63 MB #Memory Used# [2025-01-10 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:05:04 [end_date_ymd] => 2025-01-10 12:05:04 [RateCDR] => 1 ) [2025-01-10 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:05:04' and `end` < '2025-01-10 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:05:19] Production.INFO: count ==4683 [2025-01-10 12:05:20] Production.ERROR: pbx CDR StartTime 2025-01-10 09:05:04 - End Time 2025-01-10 12:05:04 [2025-01-10 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216801', 'tblTempUsageDetail_20' ) start [2025-01-10 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216801', 'tblTempUsageDetail_20' ) end [2025-01-10 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216801', 'tblTempVendorCDR_20' ) start [2025-01-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216801', 'tblTempVendorCDR_20' ) end [2025-01-10 12:05:21] Production.INFO: ProcessCDR(1,14216801,1,1,2) [2025-01-10 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216801', 'tblTempUsageDetail_20' ) start [2025-01-10 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216801', 'tblTempUsageDetail_20' ) end [2025-01-10 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:05:25] Production.INFO: ==14680== Releasing lock... [2025-01-10 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:05:25] Production.INFO: 63 MB #Memory Used# [2025-01-10 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:06:05 [end_date_ymd] => 2025-01-10 12:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:06:05' and `end` < '2025-01-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-01-10 12:06:24] Production.INFO: count ==4691 [2025-01-10 12:06:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:06:05 - End Time 2025-01-10 12:06:05 [2025-01-10 12:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216806', 'tblTempUsageDetail_20' ) start [2025-01-10 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216806', 'tblTempUsageDetail_20' ) end [2025-01-10 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216806', 'tblTempVendorCDR_20' ) start [2025-01-10 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216806', 'tblTempVendorCDR_20' ) end [2025-01-10 12:06:26] Production.INFO: ProcessCDR(1,14216806,1,1,2) [2025-01-10 12:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216806', 'tblTempUsageDetail_20' ) start [2025-01-10 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216806', 'tblTempUsageDetail_20' ) end [2025-01-10 12:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:06:31] Production.INFO: ==14750== Releasing lock... [2025-01-10 12:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:06:31] Production.INFO: 63 MB #Memory Used# [2025-01-10 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:07:04 [end_date_ymd] => 2025-01-10 12:07:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:07:04' and `end` < '2025-01-10 12: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-01-10 12:07:26] Production.INFO: count ==3351 [2025-01-10 12:07:28] Production.ERROR: pbx CDR StartTime 2025-01-10 09:07:04 - End Time 2025-01-10 12:07:04 [2025-01-10 12:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216811', 'tblTempUsageDetail_20' ) start [2025-01-10 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216811', 'tblTempUsageDetail_20' ) end [2025-01-10 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216811', 'tblTempVendorCDR_20' ) start [2025-01-10 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216811', 'tblTempVendorCDR_20' ) end [2025-01-10 12:07:28] Production.INFO: ProcessCDR(1,14216811,1,1,2) [2025-01-10 12:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216811', 'tblTempUsageDetail_20' ) start [2025-01-10 12:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216811', 'tblTempUsageDetail_20' ) end [2025-01-10 12:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:07:33] Production.INFO: ==14819== Releasing lock... [2025-01-10 12:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:07:33] Production.INFO: 53 MB #Memory Used# [2025-01-10 12:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:08:04 [end_date_ymd] => 2025-01-10 12:08:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:08:04' and `end` < '2025-01-10 12: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-01-10 12:08:25] Production.INFO: count ==3341 [2025-01-10 12:08:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:08:04 - End Time 2025-01-10 12:08:04 [2025-01-10 12:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216816', 'tblTempUsageDetail_20' ) start [2025-01-10 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216816', 'tblTempUsageDetail_20' ) end [2025-01-10 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216816', 'tblTempVendorCDR_20' ) start [2025-01-10 12:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216816', 'tblTempVendorCDR_20' ) end [2025-01-10 12:08:27] Production.INFO: ProcessCDR(1,14216816,1,1,2) [2025-01-10 12:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216816', 'tblTempUsageDetail_20' ) start [2025-01-10 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216816', 'tblTempUsageDetail_20' ) end [2025-01-10 12:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:08:32] Production.INFO: ==14894== Releasing lock... [2025-01-10 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:08:32] Production.INFO: 53 MB #Memory Used# [2025-01-10 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:09:05 [end_date_ymd] => 2025-01-10 12:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:09:05' and `end` < '2025-01-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-01-10 12:09:24] Production.INFO: count ==3350 [2025-01-10 12:09:25] Production.ERROR: pbx CDR StartTime 2025-01-10 09:09:05 - End Time 2025-01-10 12:09:05 [2025-01-10 12:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216821', 'tblTempUsageDetail_20' ) start [2025-01-10 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216821', 'tblTempUsageDetail_20' ) end [2025-01-10 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216821', 'tblTempVendorCDR_20' ) start [2025-01-10 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216821', 'tblTempVendorCDR_20' ) end [2025-01-10 12:09:26] Production.INFO: ProcessCDR(1,14216821,1,1,2) [2025-01-10 12:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216821', 'tblTempUsageDetail_20' ) start [2025-01-10 12:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216821', 'tblTempUsageDetail_20' ) end [2025-01-10 12:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:09:31] Production.INFO: ==14968== Releasing lock... [2025-01-10 12:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:09:31] Production.INFO: 53 MB #Memory Used# [2025-01-10 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:10:05 [end_date_ymd] => 2025-01-10 12:10:05 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:10:05' and `end` < '2025-01-10 12: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-01-10 12:10:25] Production.INFO: count ==3348 [2025-01-10 12:10:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:10:05 - End Time 2025-01-10 12:10:05 [2025-01-10 12:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216826', 'tblTempUsageDetail_20' ) start [2025-01-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216826', 'tblTempUsageDetail_20' ) end [2025-01-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216826', 'tblTempVendorCDR_20' ) start [2025-01-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216826', 'tblTempVendorCDR_20' ) end [2025-01-10 12:10:28] Production.INFO: ProcessCDR(1,14216826,1,1,2) [2025-01-10 12:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216826', 'tblTempUsageDetail_20' ) start [2025-01-10 12:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216826', 'tblTempUsageDetail_20' ) end [2025-01-10 12:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:10:32] Production.INFO: ==15042== Releasing lock... [2025-01-10 12:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:10:32] Production.INFO: 53 MB #Memory Used# [2025-01-10 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:11:05 [end_date_ymd] => 2025-01-10 12:11:05 [RateCDR] => 1 ) [2025-01-10 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:11:05' and `end` < '2025-01-10 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:11:20] Production.INFO: count ==3322 [2025-01-10 12:11:22] Production.ERROR: pbx CDR StartTime 2025-01-10 09:11:05 - End Time 2025-01-10 12:11:05 [2025-01-10 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216832', 'tblTempUsageDetail_20' ) start [2025-01-10 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216832', 'tblTempUsageDetail_20' ) end [2025-01-10 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216832', 'tblTempVendorCDR_20' ) start [2025-01-10 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216832', 'tblTempVendorCDR_20' ) end [2025-01-10 12:11:22] Production.INFO: ProcessCDR(1,14216832,1,1,2) [2025-01-10 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216832', 'tblTempUsageDetail_20' ) start [2025-01-10 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216832', 'tblTempUsageDetail_20' ) end [2025-01-10 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:11:27] Production.INFO: ==15122== Releasing lock... [2025-01-10 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:11:27] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:12:05 [end_date_ymd] => 2025-01-10 12:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:12:05' and `end` < '2025-01-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-01-10 12:12:22] Production.INFO: count ==3314 [2025-01-10 12:12:24] Production.ERROR: pbx CDR StartTime 2025-01-10 09:12:05 - End Time 2025-01-10 12:12:05 [2025-01-10 12:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216837', 'tblTempUsageDetail_20' ) start [2025-01-10 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216837', 'tblTempUsageDetail_20' ) end [2025-01-10 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216837', 'tblTempVendorCDR_20' ) start [2025-01-10 12:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216837', 'tblTempVendorCDR_20' ) end [2025-01-10 12:12:24] Production.INFO: ProcessCDR(1,14216837,1,1,2) [2025-01-10 12:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216837', 'tblTempUsageDetail_20' ) start [2025-01-10 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216837', 'tblTempUsageDetail_20' ) end [2025-01-10 12:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:12:29] Production.INFO: ==15194== Releasing lock... [2025-01-10 12:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:12:29] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:13:05 [end_date_ymd] => 2025-01-10 12:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:13:05' and `end` < '2025-01-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-01-10 12:13:27] Production.INFO: count ==3317 [2025-01-10 12:13:29] Production.ERROR: pbx CDR StartTime 2025-01-10 09:13:05 - End Time 2025-01-10 12:13:05 [2025-01-10 12:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216842', 'tblTempUsageDetail_20' ) start [2025-01-10 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216842', 'tblTempUsageDetail_20' ) end [2025-01-10 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216842', 'tblTempVendorCDR_20' ) start [2025-01-10 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216842', 'tblTempVendorCDR_20' ) end [2025-01-10 12:13:29] Production.INFO: ProcessCDR(1,14216842,1,1,2) [2025-01-10 12:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216842', 'tblTempUsageDetail_20' ) start [2025-01-10 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216842', 'tblTempUsageDetail_20' ) end [2025-01-10 12:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:13:34] Production.INFO: ==15265== Releasing lock... [2025-01-10 12:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:13:34] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:14:05 [end_date_ymd] => 2025-01-10 12:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:14:05' and `end` < '2025-01-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-01-10 12:14:24] Production.INFO: count ==3310 [2025-01-10 12:14:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:14:05 - End Time 2025-01-10 12:14:05 [2025-01-10 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216847', 'tblTempUsageDetail_20' ) start [2025-01-10 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216847', 'tblTempUsageDetail_20' ) end [2025-01-10 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216847', 'tblTempVendorCDR_20' ) start [2025-01-10 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216847', 'tblTempVendorCDR_20' ) end [2025-01-10 12:14:26] Production.INFO: ProcessCDR(1,14216847,1,1,2) [2025-01-10 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216847', 'tblTempUsageDetail_20' ) start [2025-01-10 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216847', 'tblTempUsageDetail_20' ) end [2025-01-10 12:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:14:31] Production.INFO: ==15340== Releasing lock... [2025-01-10 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:14:31] Production.INFO: 54 MB #Memory Used# [2025-01-10 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:15:05 [end_date_ymd] => 2025-01-10 12:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:15:05' and `end` < '2025-01-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-01-10 12:15:20] Production.INFO: count ==3305 [2025-01-10 12:15:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:15:05 - End Time 2025-01-10 12:15:05 [2025-01-10 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216852', 'tblTempUsageDetail_20' ) start [2025-01-10 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216852', 'tblTempUsageDetail_20' ) end [2025-01-10 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216852', 'tblTempVendorCDR_20' ) start [2025-01-10 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216852', 'tblTempVendorCDR_20' ) end [2025-01-10 12:15:22] Production.INFO: ProcessCDR(1,14216852,1,1,2) [2025-01-10 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216852', 'tblTempUsageDetail_20' ) start [2025-01-10 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216852', 'tblTempUsageDetail_20' ) end [2025-01-10 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:15:27] Production.INFO: ==15453== Releasing lock... [2025-01-10 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:15:27] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:16:05 [end_date_ymd] => 2025-01-10 12:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:16:05' and `end` < '2025-01-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-01-10 12:16:30] Production.INFO: count ==3293 [2025-01-10 12:16:32] Production.ERROR: pbx CDR StartTime 2025-01-10 09:16:05 - End Time 2025-01-10 12:16:05 [2025-01-10 12:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216857', 'tblTempUsageDetail_20' ) start [2025-01-10 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216857', 'tblTempUsageDetail_20' ) end [2025-01-10 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216857', 'tblTempVendorCDR_20' ) start [2025-01-10 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216857', 'tblTempVendorCDR_20' ) end [2025-01-10 12:16:32] Production.INFO: ProcessCDR(1,14216857,1,1,2) [2025-01-10 12:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216857', 'tblTempUsageDetail_20' ) start [2025-01-10 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216857', 'tblTempUsageDetail_20' ) end [2025-01-10 12:16:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:16:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:16:37] Production.INFO: ==15524== Releasing lock... [2025-01-10 12:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:16:37] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:17:05 [end_date_ymd] => 2025-01-10 12:17:05 [RateCDR] => 1 ) [2025-01-10 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:17:05' and `end` < '2025-01-10 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:17:24] Production.INFO: count ==3309 [2025-01-10 12:17:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:17:05 - End Time 2025-01-10 12:17:05 [2025-01-10 12:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216862', 'tblTempUsageDetail_20' ) start [2025-01-10 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216862', 'tblTempUsageDetail_20' ) end [2025-01-10 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216862', 'tblTempVendorCDR_20' ) start [2025-01-10 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216862', 'tblTempVendorCDR_20' ) end [2025-01-10 12:17:26] Production.INFO: ProcessCDR(1,14216862,1,1,2) [2025-01-10 12:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216862', 'tblTempUsageDetail_20' ) start [2025-01-10 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216862', 'tblTempUsageDetail_20' ) end [2025-01-10 12:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:17:31] Production.INFO: ==15596== Releasing lock... [2025-01-10 12:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:17:31] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:18:05 [end_date_ymd] => 2025-01-10 12:18:05 [RateCDR] => 1 ) [2025-01-10 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:18:05' and `end` < '2025-01-10 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:18:28] Production.INFO: count ==3321 [2025-01-10 12:18:30] Production.ERROR: pbx CDR StartTime 2025-01-10 09:18:05 - End Time 2025-01-10 12:18:05 [2025-01-10 12:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216867', 'tblTempUsageDetail_20' ) start [2025-01-10 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216867', 'tblTempUsageDetail_20' ) end [2025-01-10 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216867', 'tblTempVendorCDR_20' ) start [2025-01-10 12:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216867', 'tblTempVendorCDR_20' ) end [2025-01-10 12:18:30] Production.INFO: ProcessCDR(1,14216867,1,1,2) [2025-01-10 12:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216867', 'tblTempUsageDetail_20' ) start [2025-01-10 12:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216867', 'tblTempUsageDetail_20' ) end [2025-01-10 12:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:18:35] Production.INFO: ==15681== Releasing lock... [2025-01-10 12:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:18:35] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:19:05 [end_date_ymd] => 2025-01-10 12:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:19:05' and `end` < '2025-01-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-01-10 12:19:23] Production.INFO: count ==3310 [2025-01-10 12:19:25] Production.ERROR: pbx CDR StartTime 2025-01-10 09:19:05 - End Time 2025-01-10 12:19:05 [2025-01-10 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216872', 'tblTempUsageDetail_20' ) start [2025-01-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216872', 'tblTempUsageDetail_20' ) end [2025-01-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216872', 'tblTempVendorCDR_20' ) start [2025-01-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216872', 'tblTempVendorCDR_20' ) end [2025-01-10 12:19:25] Production.INFO: ProcessCDR(1,14216872,1,1,2) [2025-01-10 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216872', 'tblTempUsageDetail_20' ) start [2025-01-10 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216872', 'tblTempUsageDetail_20' ) end [2025-01-10 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:19:30] Production.INFO: ==15753== Releasing lock... [2025-01-10 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:19:30] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:20:05 [end_date_ymd] => 2025-01-10 12:20:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:20:05' and `end` < '2025-01-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-01-10 12:20:25] Production.INFO: count ==3310 [2025-01-10 12:20:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:20:05 - End Time 2025-01-10 12:20:05 [2025-01-10 12:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216878', 'tblTempUsageDetail_20' ) start [2025-01-10 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216878', 'tblTempUsageDetail_20' ) end [2025-01-10 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216878', 'tblTempVendorCDR_20' ) start [2025-01-10 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216878', 'tblTempVendorCDR_20' ) end [2025-01-10 12:20:27] Production.INFO: ProcessCDR(1,14216878,1,1,2) [2025-01-10 12:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216878', 'tblTempUsageDetail_20' ) start [2025-01-10 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216878', 'tblTempUsageDetail_20' ) end [2025-01-10 12:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:20:32] Production.INFO: ==15825== Releasing lock... [2025-01-10 12:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:20:32] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:21:04 [end_date_ymd] => 2025-01-10 12:21:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:21:04' and `end` < '2025-01-10 12: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-01-10 12:21:23] Production.INFO: count ==3386 [2025-01-10 12:21:25] Production.ERROR: pbx CDR StartTime 2025-01-10 09:21:04 - End Time 2025-01-10 12:21:04 [2025-01-10 12:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216880', 'tblTempUsageDetail_20' ) start [2025-01-10 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216880', 'tblTempUsageDetail_20' ) end [2025-01-10 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216880', 'tblTempVendorCDR_20' ) start [2025-01-10 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216880', 'tblTempVendorCDR_20' ) end [2025-01-10 12:21:25] Production.INFO: ProcessCDR(1,14216880,1,1,2) [2025-01-10 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216880', 'tblTempUsageDetail_20' ) start [2025-01-10 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216880', 'tblTempUsageDetail_20' ) end [2025-01-10 12:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:21:30] Production.INFO: ==15900== Releasing lock... [2025-01-10 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:21:30] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:22:05 [end_date_ymd] => 2025-01-10 12:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:22:05' and `end` < '2025-01-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-01-10 12:22:29] Production.INFO: count ==3381 [2025-01-10 12:22:30] Production.ERROR: pbx CDR StartTime 2025-01-10 09:22:05 - End Time 2025-01-10 12:22:05 [2025-01-10 12:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216888', 'tblTempUsageDetail_20' ) start [2025-01-10 12:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216888', 'tblTempUsageDetail_20' ) end [2025-01-10 12:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216888', 'tblTempVendorCDR_20' ) start [2025-01-10 12:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216888', 'tblTempVendorCDR_20' ) end [2025-01-10 12:22:31] Production.INFO: ProcessCDR(1,14216888,1,1,2) [2025-01-10 12:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:22:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:22:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216888', 'tblTempUsageDetail_20' ) start [2025-01-10 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216888', 'tblTempUsageDetail_20' ) end [2025-01-10 12:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:22:35] Production.INFO: ==15971== Releasing lock... [2025-01-10 12:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:22:35] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:23:04 [end_date_ymd] => 2025-01-10 12:23:04 [RateCDR] => 1 ) [2025-01-10 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:23:04' and `end` < '2025-01-10 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:23:23] Production.INFO: count ==3390 [2025-01-10 12:23:25] Production.ERROR: pbx CDR StartTime 2025-01-10 09:23:04 - End Time 2025-01-10 12:23:04 [2025-01-10 12:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216893', 'tblTempUsageDetail_20' ) start [2025-01-10 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216893', 'tblTempUsageDetail_20' ) end [2025-01-10 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216893', 'tblTempVendorCDR_20' ) start [2025-01-10 12:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216893', 'tblTempVendorCDR_20' ) end [2025-01-10 12:23:25] Production.INFO: ProcessCDR(1,14216893,1,1,2) [2025-01-10 12:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216893', 'tblTempUsageDetail_20' ) start [2025-01-10 12:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216893', 'tblTempUsageDetail_20' ) end [2025-01-10 12:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:23:29] Production.INFO: ==16043== Releasing lock... [2025-01-10 12:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:23:29] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:24:05 [end_date_ymd] => 2025-01-10 12:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:24:05' and `end` < '2025-01-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-01-10 12:24:35] Production.INFO: count ==3404 [2025-01-10 12:24:36] Production.ERROR: pbx CDR StartTime 2025-01-10 09:24:05 - End Time 2025-01-10 12:24:05 [2025-01-10 12:24:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216898', 'tblTempUsageDetail_20' ) start [2025-01-10 12:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216898', 'tblTempUsageDetail_20' ) end [2025-01-10 12:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216898', 'tblTempVendorCDR_20' ) start [2025-01-10 12:24:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216898', 'tblTempVendorCDR_20' ) end [2025-01-10 12:24:37] Production.INFO: ProcessCDR(1,14216898,1,1,2) [2025-01-10 12:24:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:24:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:24:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:24:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:24:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216898', 'tblTempUsageDetail_20' ) start [2025-01-10 12:24:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216898', 'tblTempUsageDetail_20' ) end [2025-01-10 12:24:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:24:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:24:41] Production.INFO: ==16116== Releasing lock... [2025-01-10 12:24:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:24:41] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:25:05 [end_date_ymd] => 2025-01-10 12:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:25:05' and `end` < '2025-01-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-01-10 12:25:34] Production.INFO: count ==3413 [2025-01-10 12:25:36] Production.ERROR: pbx CDR StartTime 2025-01-10 09:25:05 - End Time 2025-01-10 12:25:05 [2025-01-10 12:25:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216903', 'tblTempUsageDetail_20' ) start [2025-01-10 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216903', 'tblTempUsageDetail_20' ) end [2025-01-10 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216903', 'tblTempVendorCDR_20' ) start [2025-01-10 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216903', 'tblTempVendorCDR_20' ) end [2025-01-10 12:25:36] Production.INFO: ProcessCDR(1,14216903,1,1,2) [2025-01-10 12:25:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:25:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216903', 'tblTempUsageDetail_20' ) start [2025-01-10 12:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216903', 'tblTempUsageDetail_20' ) end [2025-01-10 12:25:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:25:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:25:41] Production.INFO: ==16200== Releasing lock... [2025-01-10 12:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:25:41] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:26:05 [end_date_ymd] => 2025-01-10 12:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:26:05' and `end` < '2025-01-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-01-10 12:26:24] Production.INFO: count ==3391 [2025-01-10 12:26:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:26:05 - End Time 2025-01-10 12:26:05 [2025-01-10 12:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216908', 'tblTempUsageDetail_20' ) start [2025-01-10 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216908', 'tblTempUsageDetail_20' ) end [2025-01-10 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216908', 'tblTempVendorCDR_20' ) start [2025-01-10 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216908', 'tblTempVendorCDR_20' ) end [2025-01-10 12:26:26] Production.INFO: ProcessCDR(1,14216908,1,1,2) [2025-01-10 12:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216908', 'tblTempUsageDetail_20' ) start [2025-01-10 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216908', 'tblTempUsageDetail_20' ) end [2025-01-10 12:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:26:31] Production.INFO: ==16302== Releasing lock... [2025-01-10 12:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:26:31] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:27:05 [end_date_ymd] => 2025-01-10 12:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:27:05' and `end` < '2025-01-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-01-10 12:27:26] Production.INFO: count ==3381 [2025-01-10 12:27:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:27:05 - End Time 2025-01-10 12:27:05 [2025-01-10 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216913', 'tblTempUsageDetail_20' ) start [2025-01-10 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216913', 'tblTempUsageDetail_20' ) end [2025-01-10 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216913', 'tblTempVendorCDR_20' ) start [2025-01-10 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216913', 'tblTempVendorCDR_20' ) end [2025-01-10 12:27:28] Production.INFO: ProcessCDR(1,14216913,1,1,2) [2025-01-10 12:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216913', 'tblTempUsageDetail_20' ) start [2025-01-10 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216913', 'tblTempUsageDetail_20' ) end [2025-01-10 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:27:32] Production.INFO: ==16406== Releasing lock... [2025-01-10 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:27:32] Production.INFO: 54 MB #Memory Used# [2025-01-10 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:28:05 [end_date_ymd] => 2025-01-10 12:28:05 [RateCDR] => 1 ) [2025-01-10 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:28:05' and `end` < '2025-01-10 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:28:37] Production.INFO: count ==3392 [2025-01-10 12:28:39] Production.ERROR: pbx CDR StartTime 2025-01-10 09:28:05 - End Time 2025-01-10 12:28:05 [2025-01-10 12:28:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216918', 'tblTempUsageDetail_20' ) start [2025-01-10 12:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216918', 'tblTempUsageDetail_20' ) end [2025-01-10 12:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216918', 'tblTempVendorCDR_20' ) start [2025-01-10 12:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216918', 'tblTempVendorCDR_20' ) end [2025-01-10 12:28:39] Production.INFO: ProcessCDR(1,14216918,1,1,2) [2025-01-10 12:28:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:28:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:28:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216918', 'tblTempUsageDetail_20' ) start [2025-01-10 12:28:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216918', 'tblTempUsageDetail_20' ) end [2025-01-10 12:28:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:28:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:28:44] Production.INFO: ==16508== Releasing lock... [2025-01-10 12:28:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:28:44] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:29:05 [end_date_ymd] => 2025-01-10 12:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:29:05' and `end` < '2025-01-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-01-10 12:29:27] Production.INFO: count ==3392 [2025-01-10 12:29:29] Production.ERROR: pbx CDR StartTime 2025-01-10 09:29:05 - End Time 2025-01-10 12:29:05 [2025-01-10 12:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216923', 'tblTempUsageDetail_20' ) start [2025-01-10 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216923', 'tblTempUsageDetail_20' ) end [2025-01-10 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216923', 'tblTempVendorCDR_20' ) start [2025-01-10 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216923', 'tblTempVendorCDR_20' ) end [2025-01-10 12:29:29] Production.INFO: ProcessCDR(1,14216923,1,1,2) [2025-01-10 12:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216923', 'tblTempUsageDetail_20' ) start [2025-01-10 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216923', 'tblTempUsageDetail_20' ) end [2025-01-10 12:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:29:33] Production.INFO: ==16609== Releasing lock... [2025-01-10 12:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:29:33] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:30:05 [end_date_ymd] => 2025-01-10 12:30:05 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:30:05' and `end` < '2025-01-10 12: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-01-10 12:30:32] Production.INFO: count ==3415 [2025-01-10 12:30:34] Production.ERROR: pbx CDR StartTime 2025-01-10 09:30:05 - End Time 2025-01-10 12:30:05 [2025-01-10 12:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216929', 'tblTempUsageDetail_20' ) start [2025-01-10 12:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216929', 'tblTempUsageDetail_20' ) end [2025-01-10 12:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216929', 'tblTempVendorCDR_20' ) start [2025-01-10 12:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216929', 'tblTempVendorCDR_20' ) end [2025-01-10 12:30:34] Production.INFO: ProcessCDR(1,14216929,1,1,2) [2025-01-10 12:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216929', 'tblTempUsageDetail_20' ) start [2025-01-10 12:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216929', 'tblTempUsageDetail_20' ) end [2025-01-10 12:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:30:39] Production.INFO: ==16753== Releasing lock... [2025-01-10 12:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:30:39] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:31:05 [end_date_ymd] => 2025-01-10 12:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:31:05' and `end` < '2025-01-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-01-10 12:31:27] Production.INFO: count ==3516 [2025-01-10 12:31:29] Production.ERROR: pbx CDR StartTime 2025-01-10 09:31:05 - End Time 2025-01-10 12:31:05 [2025-01-10 12:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216934', 'tblTempUsageDetail_20' ) start [2025-01-10 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216934', 'tblTempUsageDetail_20' ) end [2025-01-10 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216934', 'tblTempVendorCDR_20' ) start [2025-01-10 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216934', 'tblTempVendorCDR_20' ) end [2025-01-10 12:31:29] Production.INFO: ProcessCDR(1,14216934,1,1,2) [2025-01-10 12:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216934', 'tblTempUsageDetail_20' ) start [2025-01-10 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216934', 'tblTempUsageDetail_20' ) end [2025-01-10 12:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:31:34] Production.INFO: ==16857== Releasing lock... [2025-01-10 12:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:31:34] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:32:05 [end_date_ymd] => 2025-01-10 12:32:05 [RateCDR] => 1 ) [2025-01-10 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:32:05' and `end` < '2025-01-10 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:32:29] Production.INFO: count ==3500 [2025-01-10 12:32:30] Production.ERROR: pbx CDR StartTime 2025-01-10 09:32:05 - End Time 2025-01-10 12:32:05 [2025-01-10 12:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216939', 'tblTempUsageDetail_20' ) start [2025-01-10 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216939', 'tblTempUsageDetail_20' ) end [2025-01-10 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216939', 'tblTempVendorCDR_20' ) start [2025-01-10 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216939', 'tblTempVendorCDR_20' ) end [2025-01-10 12:32:31] Production.INFO: ProcessCDR(1,14216939,1,1,2) [2025-01-10 12:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216939', 'tblTempUsageDetail_20' ) start [2025-01-10 12:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216939', 'tblTempUsageDetail_20' ) end [2025-01-10 12:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:32:36] Production.INFO: ==16963== Releasing lock... [2025-01-10 12:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:32:36] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:33:05 [end_date_ymd] => 2025-01-10 12:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:33:05' and `end` < '2025-01-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-01-10 12:33:37] Production.INFO: count ==3507 [2025-01-10 12:33:38] Production.ERROR: pbx CDR StartTime 2025-01-10 09:33:05 - End Time 2025-01-10 12:33:05 [2025-01-10 12:33:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:33:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216944', 'tblTempUsageDetail_20' ) start [2025-01-10 12:33:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216944', 'tblTempUsageDetail_20' ) end [2025-01-10 12:33:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216944', 'tblTempVendorCDR_20' ) start [2025-01-10 12:33:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216944', 'tblTempVendorCDR_20' ) end [2025-01-10 12:33:39] Production.INFO: ProcessCDR(1,14216944,1,1,2) [2025-01-10 12:33:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:33:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:33:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:33:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:33:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216944', 'tblTempUsageDetail_20' ) start [2025-01-10 12:33:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216944', 'tblTempUsageDetail_20' ) end [2025-01-10 12:33:43] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:33:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:33:44] Production.INFO: ==17064== Releasing lock... [2025-01-10 12:33:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:33:44] Production.INFO: 55 MB #Memory Used# [2025-01-10 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:34:05 [end_date_ymd] => 2025-01-10 12:34:05 [RateCDR] => 1 ) [2025-01-10 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:34:05' and `end` < '2025-01-10 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:34:25] Production.INFO: count ==3498 [2025-01-10 12:34:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:34:05 - End Time 2025-01-10 12:34:05 [2025-01-10 12:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216949', 'tblTempUsageDetail_20' ) start [2025-01-10 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216949', 'tblTempUsageDetail_20' ) end [2025-01-10 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216949', 'tblTempVendorCDR_20' ) start [2025-01-10 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216949', 'tblTempVendorCDR_20' ) end [2025-01-10 12:34:27] Production.INFO: ProcessCDR(1,14216949,1,1,2) [2025-01-10 12:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216949', 'tblTempUsageDetail_20' ) start [2025-01-10 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216949', 'tblTempUsageDetail_20' ) end [2025-01-10 12:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:34:32] Production.INFO: ==17168== Releasing lock... [2025-01-10 12:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:34:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:35:05 [end_date_ymd] => 2025-01-10 12:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:35:05' and `end` < '2025-01-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-01-10 12:35:19] Production.INFO: count ==3513 [2025-01-10 12:35:20] Production.ERROR: pbx CDR StartTime 2025-01-10 09:35:05 - End Time 2025-01-10 12:35:05 [2025-01-10 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216954', 'tblTempUsageDetail_20' ) start [2025-01-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216954', 'tblTempUsageDetail_20' ) end [2025-01-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216954', 'tblTempVendorCDR_20' ) start [2025-01-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216954', 'tblTempVendorCDR_20' ) end [2025-01-10 12:35:21] Production.INFO: ProcessCDR(1,14216954,1,1,2) [2025-01-10 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216954', 'tblTempUsageDetail_20' ) start [2025-01-10 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216954', 'tblTempUsageDetail_20' ) end [2025-01-10 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:35:25] Production.INFO: ==17272== Releasing lock... [2025-01-10 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:35:25] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:36:05 [end_date_ymd] => 2025-01-10 12:36:05 [RateCDR] => 1 ) [2025-01-10 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:36:05' and `end` < '2025-01-10 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:36:20] Production.INFO: count ==3521 [2025-01-10 12:36:22] Production.ERROR: pbx CDR StartTime 2025-01-10 09:36:05 - End Time 2025-01-10 12:36:05 [2025-01-10 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216959', 'tblTempUsageDetail_20' ) start [2025-01-10 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216959', 'tblTempUsageDetail_20' ) end [2025-01-10 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216959', 'tblTempVendorCDR_20' ) start [2025-01-10 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216959', 'tblTempVendorCDR_20' ) end [2025-01-10 12:36:22] Production.INFO: ProcessCDR(1,14216959,1,1,2) [2025-01-10 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216959', 'tblTempUsageDetail_20' ) start [2025-01-10 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216959', 'tblTempUsageDetail_20' ) end [2025-01-10 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:36:27] Production.INFO: ==17379== Releasing lock... [2025-01-10 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:36:27] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:37:04 [end_date_ymd] => 2025-01-10 12:37:04 [RateCDR] => 1 ) [2025-01-10 12:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:37:04' and `end` < '2025-01-10 12:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:37:19] Production.INFO: count ==3522 [2025-01-10 12:37:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:37:04 - End Time 2025-01-10 12:37:04 [2025-01-10 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216964', 'tblTempUsageDetail_20' ) start [2025-01-10 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216964', 'tblTempUsageDetail_20' ) end [2025-01-10 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216964', 'tblTempVendorCDR_20' ) start [2025-01-10 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216964', 'tblTempVendorCDR_20' ) end [2025-01-10 12:37:21] Production.INFO: ProcessCDR(1,14216964,1,1,2) [2025-01-10 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216964', 'tblTempUsageDetail_20' ) start [2025-01-10 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216964', 'tblTempUsageDetail_20' ) end [2025-01-10 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:37:25] Production.INFO: ==17486== Releasing lock... [2025-01-10 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:37:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:38:05 [end_date_ymd] => 2025-01-10 12:38:05 [RateCDR] => 1 ) [2025-01-10 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:38:05' and `end` < '2025-01-10 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:38:22] Production.INFO: count ==3533 [2025-01-10 12:38:24] Production.ERROR: pbx CDR StartTime 2025-01-10 09:38:05 - End Time 2025-01-10 12:38:05 [2025-01-10 12:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216969', 'tblTempUsageDetail_20' ) start [2025-01-10 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216969', 'tblTempUsageDetail_20' ) end [2025-01-10 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216969', 'tblTempVendorCDR_20' ) start [2025-01-10 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216969', 'tblTempVendorCDR_20' ) end [2025-01-10 12:38:24] Production.INFO: ProcessCDR(1,14216969,1,1,2) [2025-01-10 12:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216969', 'tblTempUsageDetail_20' ) start [2025-01-10 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216969', 'tblTempUsageDetail_20' ) end [2025-01-10 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:38:28] Production.INFO: ==17588== Releasing lock... [2025-01-10 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:38:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:39:04 [end_date_ymd] => 2025-01-10 12:39:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:39:04' and `end` < '2025-01-10 12: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-01-10 12:39:19] Production.INFO: count ==3536 [2025-01-10 12:39:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:39:04 - End Time 2025-01-10 12:39:04 [2025-01-10 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216974', 'tblTempUsageDetail_20' ) start [2025-01-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216974', 'tblTempUsageDetail_20' ) end [2025-01-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216974', 'tblTempVendorCDR_20' ) start [2025-01-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216974', 'tblTempVendorCDR_20' ) end [2025-01-10 12:39:21] Production.INFO: ProcessCDR(1,14216974,1,1,2) [2025-01-10 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216974', 'tblTempUsageDetail_20' ) start [2025-01-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216974', 'tblTempUsageDetail_20' ) end [2025-01-10 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:39:26] Production.INFO: ==17691== Releasing lock... [2025-01-10 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:39:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:40:05 [end_date_ymd] => 2025-01-10 12:40:05 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:40:05' and `end` < '2025-01-10 12: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-01-10 12:40:28] Production.INFO: count ==3546 [2025-01-10 12:40:29] Production.ERROR: pbx CDR StartTime 2025-01-10 09:40:05 - End Time 2025-01-10 12:40:05 [2025-01-10 12:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216980', 'tblTempUsageDetail_20' ) start [2025-01-10 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216980', 'tblTempUsageDetail_20' ) end [2025-01-10 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216980', 'tblTempVendorCDR_20' ) start [2025-01-10 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216980', 'tblTempVendorCDR_20' ) end [2025-01-10 12:40:30] Production.INFO: ProcessCDR(1,14216980,1,1,2) [2025-01-10 12:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216980', 'tblTempUsageDetail_20' ) start [2025-01-10 12:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216980', 'tblTempUsageDetail_20' ) end [2025-01-10 12:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:40:34] Production.INFO: ==17795== Releasing lock... [2025-01-10 12:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:40:34] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:41:05 [end_date_ymd] => 2025-01-10 12:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:41:05' and `end` < '2025-01-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-01-10 12:41:25] Production.INFO: count ==3667 [2025-01-10 12:41:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:41:05 - End Time 2025-01-10 12:41:05 [2025-01-10 12:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216985', 'tblTempUsageDetail_20' ) start [2025-01-10 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216985', 'tblTempUsageDetail_20' ) end [2025-01-10 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216985', 'tblTempVendorCDR_20' ) start [2025-01-10 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216985', 'tblTempVendorCDR_20' ) end [2025-01-10 12:41:27] Production.INFO: ProcessCDR(1,14216985,1,1,2) [2025-01-10 12:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216985', 'tblTempUsageDetail_20' ) start [2025-01-10 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216985', 'tblTempUsageDetail_20' ) end [2025-01-10 12:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:41:31] Production.INFO: ==17904== Releasing lock... [2025-01-10 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:41:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:42:05 [end_date_ymd] => 2025-01-10 12:42:05 [RateCDR] => 1 ) [2025-01-10 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:42:05' and `end` < '2025-01-10 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:42:24] Production.INFO: count ==3681 [2025-01-10 12:42:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:42:05 - End Time 2025-01-10 12:42:05 [2025-01-10 12:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216990', 'tblTempUsageDetail_20' ) start [2025-01-10 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216990', 'tblTempUsageDetail_20' ) end [2025-01-10 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216990', 'tblTempVendorCDR_20' ) start [2025-01-10 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216990', 'tblTempVendorCDR_20' ) end [2025-01-10 12:42:26] Production.INFO: ProcessCDR(1,14216990,1,1,2) [2025-01-10 12:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216990', 'tblTempUsageDetail_20' ) start [2025-01-10 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216990', 'tblTempUsageDetail_20' ) end [2025-01-10 12:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:42:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:42:31] Production.INFO: ==18007== Releasing lock... [2025-01-10 12:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:42:31] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:43:05 [end_date_ymd] => 2025-01-10 12:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:43:05' and `end` < '2025-01-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-01-10 12:43:20] Production.INFO: count ==3687 [2025-01-10 12:43:22] Production.ERROR: pbx CDR StartTime 2025-01-10 09:43:05 - End Time 2025-01-10 12:43:05 [2025-01-10 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216995', 'tblTempUsageDetail_20' ) start [2025-01-10 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14216995', 'tblTempUsageDetail_20' ) end [2025-01-10 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216995', 'tblTempVendorCDR_20' ) start [2025-01-10 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14216995', 'tblTempVendorCDR_20' ) end [2025-01-10 12:43:22] Production.INFO: ProcessCDR(1,14216995,1,1,2) [2025-01-10 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14216995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14216995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14216995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14216995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216995', 'tblTempUsageDetail_20' ) start [2025-01-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14216995', 'tblTempUsageDetail_20' ) end [2025-01-10 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:43:26] Production.INFO: ==18110== Releasing lock... [2025-01-10 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:43:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:44:05 [end_date_ymd] => 2025-01-10 12:44:05 [RateCDR] => 1 ) [2025-01-10 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:44:05' and `end` < '2025-01-10 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:44:26] Production.INFO: count ==3677 [2025-01-10 12:44:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:44:05 - End Time 2025-01-10 12:44:05 [2025-01-10 12:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217000', 'tblTempUsageDetail_20' ) start [2025-01-10 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217000', 'tblTempUsageDetail_20' ) end [2025-01-10 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217000', 'tblTempVendorCDR_20' ) start [2025-01-10 12:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217000', 'tblTempVendorCDR_20' ) end [2025-01-10 12:44:28] Production.INFO: ProcessCDR(1,14217000,1,1,2) [2025-01-10 12:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217000', 'tblTempUsageDetail_20' ) start [2025-01-10 12:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217000', 'tblTempUsageDetail_20' ) end [2025-01-10 12:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:44:33] Production.INFO: ==18211== Releasing lock... [2025-01-10 12:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:44:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:45:05 [end_date_ymd] => 2025-01-10 12:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:45:05' and `end` < '2025-01-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-01-10 12:45:20] Production.INFO: count ==3658 [2025-01-10 12:45:22] Production.ERROR: pbx CDR StartTime 2025-01-10 09:45:05 - End Time 2025-01-10 12:45:05 [2025-01-10 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217005', 'tblTempUsageDetail_20' ) start [2025-01-10 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217005', 'tblTempUsageDetail_20' ) end [2025-01-10 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217005', 'tblTempVendorCDR_20' ) start [2025-01-10 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217005', 'tblTempVendorCDR_20' ) end [2025-01-10 12:45:22] Production.INFO: ProcessCDR(1,14217005,1,1,2) [2025-01-10 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217005', 'tblTempUsageDetail_20' ) start [2025-01-10 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217005', 'tblTempUsageDetail_20' ) end [2025-01-10 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:45:27] Production.INFO: ==18314== Releasing lock... [2025-01-10 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:45:27] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:46:04 [end_date_ymd] => 2025-01-10 12:46:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:46:04' and `end` < '2025-01-10 12: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-01-10 12:46:19] Production.INFO: count ==3671 [2025-01-10 12:46:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:46:04 - End Time 2025-01-10 12:46:04 [2025-01-10 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217010', 'tblTempUsageDetail_20' ) start [2025-01-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217010', 'tblTempUsageDetail_20' ) end [2025-01-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217010', 'tblTempVendorCDR_20' ) start [2025-01-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217010', 'tblTempVendorCDR_20' ) end [2025-01-10 12:46:21] Production.INFO: ProcessCDR(1,14217010,1,1,2) [2025-01-10 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217010', 'tblTempUsageDetail_20' ) start [2025-01-10 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217010', 'tblTempUsageDetail_20' ) end [2025-01-10 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:46:26] Production.INFO: ==18458== Releasing lock... [2025-01-10 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:46:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:47:05 [end_date_ymd] => 2025-01-10 12:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:47:05' and `end` < '2025-01-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-01-10 12:47:28] Production.INFO: count ==3689 [2025-01-10 12:47:30] Production.ERROR: pbx CDR StartTime 2025-01-10 09:47:05 - End Time 2025-01-10 12:47:05 [2025-01-10 12:47:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217015', 'tblTempUsageDetail_20' ) start [2025-01-10 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217015', 'tblTempUsageDetail_20' ) end [2025-01-10 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217015', 'tblTempVendorCDR_20' ) start [2025-01-10 12:47:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217015', 'tblTempVendorCDR_20' ) end [2025-01-10 12:47:30] Production.INFO: ProcessCDR(1,14217015,1,1,2) [2025-01-10 12:47:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:47:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:47:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:47:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217015', 'tblTempUsageDetail_20' ) start [2025-01-10 12:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217015', 'tblTempUsageDetail_20' ) end [2025-01-10 12:47:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:47:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:47:35] Production.INFO: ==18570== Releasing lock... [2025-01-10 12:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:47:35] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:48:05 [end_date_ymd] => 2025-01-10 12:48:05 [RateCDR] => 1 ) [2025-01-10 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:48:05' and `end` < '2025-01-10 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:48:25] Production.INFO: count ==3706 [2025-01-10 12:48:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:48:05 - End Time 2025-01-10 12:48:05 [2025-01-10 12:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217020', 'tblTempUsageDetail_20' ) start [2025-01-10 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217020', 'tblTempUsageDetail_20' ) end [2025-01-10 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217020', 'tblTempVendorCDR_20' ) start [2025-01-10 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217020', 'tblTempVendorCDR_20' ) end [2025-01-10 12:48:27] Production.INFO: ProcessCDR(1,14217020,1,1,2) [2025-01-10 12:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217020', 'tblTempUsageDetail_20' ) start [2025-01-10 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217020', 'tblTempUsageDetail_20' ) end [2025-01-10 12:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:48:32] Production.INFO: ==18729== Releasing lock... [2025-01-10 12:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:48:32] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:49:04 [end_date_ymd] => 2025-01-10 12:49:04 [RateCDR] => 1 ) [2025-01-10 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:49:04' and `end` < '2025-01-10 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:49:18] Production.INFO: count ==3721 [2025-01-10 12:49:20] Production.ERROR: pbx CDR StartTime 2025-01-10 09:49:04 - End Time 2025-01-10 12:49:04 [2025-01-10 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217025', 'tblTempUsageDetail_20' ) start [2025-01-10 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217025', 'tblTempUsageDetail_20' ) end [2025-01-10 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217025', 'tblTempVendorCDR_20' ) start [2025-01-10 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217025', 'tblTempVendorCDR_20' ) end [2025-01-10 12:49:20] Production.INFO: ProcessCDR(1,14217025,1,1,2) [2025-01-10 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217025', 'tblTempUsageDetail_20' ) start [2025-01-10 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217025', 'tblTempUsageDetail_20' ) end [2025-01-10 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:49:25] Production.INFO: ==18854== Releasing lock... [2025-01-10 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:49:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:50:06 [end_date_ymd] => 2025-01-10 12:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 09:50:06' and `end` < '2025-01-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-01-10 12:50:30] Production.INFO: count ==3757 [2025-01-10 12:50:32] Production.ERROR: pbx CDR StartTime 2025-01-10 09:50:06 - End Time 2025-01-10 12:50:06 [2025-01-10 12:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217030', 'tblTempUsageDetail_20' ) start [2025-01-10 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217030', 'tblTempUsageDetail_20' ) end [2025-01-10 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217030', 'tblTempVendorCDR_20' ) start [2025-01-10 12:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217030', 'tblTempVendorCDR_20' ) end [2025-01-10 12:50:32] Production.INFO: ProcessCDR(1,14217030,1,1,2) [2025-01-10 12:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217030', 'tblTempUsageDetail_20' ) start [2025-01-10 12:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217030', 'tblTempUsageDetail_20' ) end [2025-01-10 12:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:50:37] Production.INFO: ==18960== Releasing lock... [2025-01-10 12:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:50:37] Production.INFO: 56 MB #Memory Used# [2025-01-10 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:51:04 [end_date_ymd] => 2025-01-10 12:51:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:51:04' and `end` < '2025-01-10 12: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-01-10 12:51:26] Production.INFO: count ==3849 [2025-01-10 12:51:28] Production.ERROR: pbx CDR StartTime 2025-01-10 09:51:04 - End Time 2025-01-10 12:51:04 [2025-01-10 12:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217036', 'tblTempUsageDetail_20' ) start [2025-01-10 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217036', 'tblTempUsageDetail_20' ) end [2025-01-10 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217036', 'tblTempVendorCDR_20' ) start [2025-01-10 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217036', 'tblTempVendorCDR_20' ) end [2025-01-10 12:51:28] Production.INFO: ProcessCDR(1,14217036,1,1,2) [2025-01-10 12:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217036', 'tblTempUsageDetail_20' ) start [2025-01-10 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217036', 'tblTempUsageDetail_20' ) end [2025-01-10 12:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:51:33] Production.INFO: ==19064== Releasing lock... [2025-01-10 12:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:51:33] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:52:06 [end_date_ymd] => 2025-01-10 12:52:06 [RateCDR] => 1 ) [2025-01-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-01-10 09:52:06' and `end` < '2025-01-10 12: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-01-10 12:52:24] Production.INFO: count ==3847 [2025-01-10 12:52:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:52:06 - End Time 2025-01-10 12:52:06 [2025-01-10 12:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217041', 'tblTempUsageDetail_20' ) start [2025-01-10 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217041', 'tblTempUsageDetail_20' ) end [2025-01-10 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217041', 'tblTempVendorCDR_20' ) start [2025-01-10 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217041', 'tblTempVendorCDR_20' ) end [2025-01-10 12:52:26] Production.INFO: ProcessCDR(1,14217041,1,1,2) [2025-01-10 12:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217041', 'tblTempUsageDetail_20' ) start [2025-01-10 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217041', 'tblTempUsageDetail_20' ) end [2025-01-10 12:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:52:32] Production.INFO: ==19167== Releasing lock... [2025-01-10 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:52:32] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:53:05 [end_date_ymd] => 2025-01-10 12:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:53:05' and `end` < '2025-01-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-01-10 12:53:25] Production.INFO: count ==3860 [2025-01-10 12:53:27] Production.ERROR: pbx CDR StartTime 2025-01-10 09:53:05 - End Time 2025-01-10 12:53:05 [2025-01-10 12:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217046', 'tblTempUsageDetail_20' ) start [2025-01-10 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217046', 'tblTempUsageDetail_20' ) end [2025-01-10 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217046', 'tblTempVendorCDR_20' ) start [2025-01-10 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217046', 'tblTempVendorCDR_20' ) end [2025-01-10 12:53:27] Production.INFO: ProcessCDR(1,14217046,1,1,2) [2025-01-10 12:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217046', 'tblTempUsageDetail_20' ) start [2025-01-10 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217046', 'tblTempUsageDetail_20' ) end [2025-01-10 12:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:53:32] Production.INFO: ==19269== Releasing lock... [2025-01-10 12:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:53:32] Production.INFO: 57 MB #Memory Used# [2025-01-10 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:54:05 [end_date_ymd] => 2025-01-10 12:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:54:05' and `end` < '2025-01-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-01-10 12:54:29] Production.INFO: count ==3877 [2025-01-10 12:54:31] Production.ERROR: pbx CDR StartTime 2025-01-10 09:54:05 - End Time 2025-01-10 12:54:05 [2025-01-10 12:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217051', 'tblTempUsageDetail_20' ) start [2025-01-10 12:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217051', 'tblTempUsageDetail_20' ) end [2025-01-10 12:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217051', 'tblTempVendorCDR_20' ) start [2025-01-10 12:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217051', 'tblTempVendorCDR_20' ) end [2025-01-10 12:54:32] Production.INFO: ProcessCDR(1,14217051,1,1,2) [2025-01-10 12:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217051', 'tblTempUsageDetail_20' ) start [2025-01-10 12:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217051', 'tblTempUsageDetail_20' ) end [2025-01-10 12:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:54:37] Production.INFO: ==19387== Releasing lock... [2025-01-10 12:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:54:37] Production.INFO: 57 MB #Memory Used# [2025-01-10 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:55:05 [end_date_ymd] => 2025-01-10 12:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:55:05' and `end` < '2025-01-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-01-10 12:55:24] Production.INFO: count ==3871 [2025-01-10 12:55:26] Production.ERROR: pbx CDR StartTime 2025-01-10 09:55:05 - End Time 2025-01-10 12:55:05 [2025-01-10 12:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217056', 'tblTempUsageDetail_20' ) start [2025-01-10 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217056', 'tblTempUsageDetail_20' ) end [2025-01-10 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217056', 'tblTempVendorCDR_20' ) start [2025-01-10 12:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217056', 'tblTempVendorCDR_20' ) end [2025-01-10 12:55:26] Production.INFO: ProcessCDR(1,14217056,1,1,2) [2025-01-10 12:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217056', 'tblTempUsageDetail_20' ) start [2025-01-10 12:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217056', 'tblTempUsageDetail_20' ) end [2025-01-10 12:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:55:31] Production.INFO: ==19497== Releasing lock... [2025-01-10 12:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:55:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:56:05 [end_date_ymd] => 2025-01-10 12:56:05 [RateCDR] => 1 ) [2025-01-10 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:56:05' and `end` < '2025-01-10 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:56:19] Production.INFO: count ==3872 [2025-01-10 12:56:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:56:05 - End Time 2025-01-10 12:56:05 [2025-01-10 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217061', 'tblTempUsageDetail_20' ) start [2025-01-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217061', 'tblTempUsageDetail_20' ) end [2025-01-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217061', 'tblTempVendorCDR_20' ) start [2025-01-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217061', 'tblTempVendorCDR_20' ) end [2025-01-10 12:56:21] Production.INFO: ProcessCDR(1,14217061,1,1,2) [2025-01-10 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217061', 'tblTempUsageDetail_20' ) start [2025-01-10 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217061', 'tblTempUsageDetail_20' ) end [2025-01-10 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:56:25] Production.INFO: ==19614== Releasing lock... [2025-01-10 12:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:56:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:57:05 [end_date_ymd] => 2025-01-10 12:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 09:57:05' and `end` < '2025-01-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-01-10 12:57:20] Production.INFO: count ==3888 [2025-01-10 12:57:21] Production.ERROR: pbx CDR StartTime 2025-01-10 09:57:05 - End Time 2025-01-10 12:57:05 [2025-01-10 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217066', 'tblTempUsageDetail_20' ) start [2025-01-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217066', 'tblTempUsageDetail_20' ) end [2025-01-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217066', 'tblTempVendorCDR_20' ) start [2025-01-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217066', 'tblTempVendorCDR_20' ) end [2025-01-10 12:57:22] Production.INFO: ProcessCDR(1,14217066,1,1,2) [2025-01-10 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217066', 'tblTempUsageDetail_20' ) start [2025-01-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217066', 'tblTempUsageDetail_20' ) end [2025-01-10 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:57:26] Production.INFO: ==19717== Releasing lock... [2025-01-10 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:57:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:58:05 [end_date_ymd] => 2025-01-10 12:58:05 [RateCDR] => 1 ) [2025-01-10 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 09:58:05' and `end` < '2025-01-10 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 12:58:26] Production.INFO: count ==3868 [2025-01-10 12:58:28] Production.ERROR: pbx CDR StartTime 2025-01-10 09:58:05 - End Time 2025-01-10 12:58:05 [2025-01-10 12:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217071', 'tblTempUsageDetail_20' ) start [2025-01-10 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217071', 'tblTempUsageDetail_20' ) end [2025-01-10 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217071', 'tblTempVendorCDR_20' ) start [2025-01-10 12:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217071', 'tblTempVendorCDR_20' ) end [2025-01-10 12:58:28] Production.INFO: ProcessCDR(1,14217071,1,1,2) [2025-01-10 12:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217071', 'tblTempUsageDetail_20' ) start [2025-01-10 12:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217071', 'tblTempUsageDetail_20' ) end [2025-01-10 12:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:58:32] Production.INFO: ==19828== Releasing lock... [2025-01-10 12:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:58:32] Production.INFO: 57 MB #Memory Used# [2025-01-10 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 09:59:04 [end_date_ymd] => 2025-01-10 12:59:04 [RateCDR] => 1 ) [2025-01-10 12: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-01-10 09:59:04' and `end` < '2025-01-10 12: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-01-10 12:59:35] Production.INFO: count ==3863 [2025-01-10 12:59:37] Production.ERROR: pbx CDR StartTime 2025-01-10 09:59:04 - End Time 2025-01-10 12:59:04 [2025-01-10 12:59:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 12:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217076', 'tblTempUsageDetail_20' ) start [2025-01-10 12:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217076', 'tblTempUsageDetail_20' ) end [2025-01-10 12:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217076', 'tblTempVendorCDR_20' ) start [2025-01-10 12:59:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217076', 'tblTempVendorCDR_20' ) end [2025-01-10 12:59:37] Production.INFO: ProcessCDR(1,14217076,1,1,2) [2025-01-10 12:59:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:59:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 12:59:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:59:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 12:59:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217076', 'tblTempUsageDetail_20' ) start [2025-01-10 12:59:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217076', 'tblTempUsageDetail_20' ) end [2025-01-10 12:59:42] Production.ERROR: pbx prc_insertCDR start [2025-01-10 12:59:42] Production.ERROR: pbx prc_insertCDR end [2025-01-10 12:59:42] Production.INFO: ==19936== Releasing lock... [2025-01-10 12:59:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 12:59:42] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:00:06 [end_date_ymd] => 2025-01-10 13:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 10:00:06' and `end` < '2025-01-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-01-10 13:00:29] Production.INFO: count ==3857 [2025-01-10 13:00:31] Production.ERROR: pbx CDR StartTime 2025-01-10 10:00:06 - End Time 2025-01-10 13:00:06 [2025-01-10 13:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217082', 'tblTempUsageDetail_20' ) start [2025-01-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217082', 'tblTempUsageDetail_20' ) end [2025-01-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217082', 'tblTempVendorCDR_20' ) start [2025-01-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217082', 'tblTempVendorCDR_20' ) end [2025-01-10 13:00:31] Production.INFO: ProcessCDR(1,14217082,1,1,2) [2025-01-10 13:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217082', 'tblTempUsageDetail_20' ) start [2025-01-10 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217082', 'tblTempUsageDetail_20' ) end [2025-01-10 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:00:34] Production.INFO: ==20043== Releasing lock... [2025-01-10 13:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:00:34] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:01:04 [end_date_ymd] => 2025-01-10 13:01:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:01:04' and `end` < '2025-01-10 13: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-01-10 13:01:26] Production.INFO: count ==3973 [2025-01-10 13:01:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:01:04 - End Time 2025-01-10 13:01:04 [2025-01-10 13:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217087', 'tblTempUsageDetail_20' ) start [2025-01-10 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217087', 'tblTempUsageDetail_20' ) end [2025-01-10 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217087', 'tblTempVendorCDR_20' ) start [2025-01-10 13:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217087', 'tblTempVendorCDR_20' ) end [2025-01-10 13:01:28] Production.INFO: ProcessCDR(1,14217087,1,1,2) [2025-01-10 13:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217087', 'tblTempUsageDetail_20' ) start [2025-01-10 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217087', 'tblTempUsageDetail_20' ) end [2025-01-10 13:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:01:33] Production.INFO: ==20165== Releasing lock... [2025-01-10 13:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:01:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:02:05 [end_date_ymd] => 2025-01-10 13:02:05 [RateCDR] => 1 ) [2025-01-10 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:02:05' and `end` < '2025-01-10 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:02:32] Production.INFO: count ==3956 [2025-01-10 13:02:34] Production.ERROR: pbx CDR StartTime 2025-01-10 10:02:05 - End Time 2025-01-10 13:02:05 [2025-01-10 13:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217091', 'tblTempUsageDetail_20' ) start [2025-01-10 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217091', 'tblTempUsageDetail_20' ) end [2025-01-10 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217091', 'tblTempVendorCDR_20' ) start [2025-01-10 13:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217091', 'tblTempVendorCDR_20' ) end [2025-01-10 13:02:35] Production.INFO: ProcessCDR(1,14217091,1,1,2) [2025-01-10 13:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217091', 'tblTempUsageDetail_20' ) start [2025-01-10 13:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217091', 'tblTempUsageDetail_20' ) end [2025-01-10 13:02:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:02:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:02:40] Production.INFO: ==20285== Releasing lock... [2025-01-10 13:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:02:40] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:03:05 [end_date_ymd] => 2025-01-10 13:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:03:05' and `end` < '2025-01-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-01-10 13:03:25] Production.INFO: count ==3957 [2025-01-10 13:03:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:03:05 - End Time 2025-01-10 13:03:05 [2025-01-10 13:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217097', 'tblTempUsageDetail_20' ) start [2025-01-10 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217097', 'tblTempUsageDetail_20' ) end [2025-01-10 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217097', 'tblTempVendorCDR_20' ) start [2025-01-10 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217097', 'tblTempVendorCDR_20' ) end [2025-01-10 13:03:27] Production.INFO: ProcessCDR(1,14217097,1,1,2) [2025-01-10 13:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217097', 'tblTempUsageDetail_20' ) start [2025-01-10 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217097', 'tblTempUsageDetail_20' ) end [2025-01-10 13:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:03:30] Production.INFO: ==20364== Releasing lock... [2025-01-10 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:03:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:04:05 [end_date_ymd] => 2025-01-10 13:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:04:05' and `end` < '2025-01-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-01-10 13:04:22] Production.INFO: count ==3961 [2025-01-10 13:04:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:04:05 - End Time 2025-01-10 13:04:05 [2025-01-10 13:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217102', 'tblTempUsageDetail_20' ) start [2025-01-10 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217102', 'tblTempUsageDetail_20' ) end [2025-01-10 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217102', 'tblTempVendorCDR_20' ) start [2025-01-10 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217102', 'tblTempVendorCDR_20' ) end [2025-01-10 13:04:24] Production.INFO: ProcessCDR(1,14217102,1,1,2) [2025-01-10 13:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217102', 'tblTempUsageDetail_20' ) start [2025-01-10 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217102', 'tblTempUsageDetail_20' ) end [2025-01-10 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:04:29] Production.INFO: ==20435== Releasing lock... [2025-01-10 13:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:04:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:05:04 [end_date_ymd] => 2025-01-10 13:05:04 [RateCDR] => 1 ) [2025-01-10 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:05:04' and `end` < '2025-01-10 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:05:24] Production.INFO: count ==3976 [2025-01-10 13:05:26] Production.ERROR: pbx CDR StartTime 2025-01-10 10:05:04 - End Time 2025-01-10 13:05:04 [2025-01-10 13:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217107', 'tblTempUsageDetail_20' ) start [2025-01-10 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217107', 'tblTempUsageDetail_20' ) end [2025-01-10 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217107', 'tblTempVendorCDR_20' ) start [2025-01-10 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217107', 'tblTempVendorCDR_20' ) end [2025-01-10 13:05:26] Production.INFO: ProcessCDR(1,14217107,1,1,2) [2025-01-10 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217107', 'tblTempUsageDetail_20' ) start [2025-01-10 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217107', 'tblTempUsageDetail_20' ) end [2025-01-10 13:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:05:31] Production.INFO: ==20516== Releasing lock... [2025-01-10 13:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:05:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:06:04 [end_date_ymd] => 2025-01-10 13:06:04 [RateCDR] => 1 ) [2025-01-10 13:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:06:04' and `end` < '2025-01-10 13:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:06:23] Production.INFO: count ==3995 [2025-01-10 13:06:25] Production.ERROR: pbx CDR StartTime 2025-01-10 10:06:04 - End Time 2025-01-10 13:06:04 [2025-01-10 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217112', 'tblTempUsageDetail_20' ) start [2025-01-10 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217112', 'tblTempUsageDetail_20' ) end [2025-01-10 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217112', 'tblTempVendorCDR_20' ) start [2025-01-10 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217112', 'tblTempVendorCDR_20' ) end [2025-01-10 13:06:25] Production.INFO: ProcessCDR(1,14217112,1,1,2) [2025-01-10 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217112', 'tblTempUsageDetail_20' ) start [2025-01-10 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217112', 'tblTempUsageDetail_20' ) end [2025-01-10 13:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:06:30] Production.INFO: ==20594== Releasing lock... [2025-01-10 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:06:30] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:07:05 [end_date_ymd] => 2025-01-10 13:07:05 [RateCDR] => 1 ) [2025-01-10 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:07:05' and `end` < '2025-01-10 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:07:26] Production.INFO: count ==3970 [2025-01-10 13:07:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:07:05 - End Time 2025-01-10 13:07:05 [2025-01-10 13:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217117', 'tblTempUsageDetail_20' ) start [2025-01-10 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217117', 'tblTempUsageDetail_20' ) end [2025-01-10 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217117', 'tblTempVendorCDR_20' ) start [2025-01-10 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217117', 'tblTempVendorCDR_20' ) end [2025-01-10 13:07:28] Production.INFO: ProcessCDR(1,14217117,1,1,2) [2025-01-10 13:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217117', 'tblTempUsageDetail_20' ) start [2025-01-10 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217117', 'tblTempUsageDetail_20' ) end [2025-01-10 13:07:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:07:33] Production.INFO: ==20677== Releasing lock... [2025-01-10 13:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:07:33] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:08:05 [end_date_ymd] => 2025-01-10 13:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:08:05' and `end` < '2025-01-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-01-10 13:08:23] Production.INFO: count ==3951 [2025-01-10 13:08:25] Production.ERROR: pbx CDR StartTime 2025-01-10 10:08:05 - End Time 2025-01-10 13:08:05 [2025-01-10 13:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217122', 'tblTempUsageDetail_20' ) start [2025-01-10 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217122', 'tblTempUsageDetail_20' ) end [2025-01-10 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217122', 'tblTempVendorCDR_20' ) start [2025-01-10 13:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217122', 'tblTempVendorCDR_20' ) end [2025-01-10 13:08:25] Production.INFO: ProcessCDR(1,14217122,1,1,2) [2025-01-10 13:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217122', 'tblTempUsageDetail_20' ) start [2025-01-10 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217122', 'tblTempUsageDetail_20' ) end [2025-01-10 13:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:08:29] Production.INFO: ==20756== Releasing lock... [2025-01-10 13:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:08:29] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:09:04 [end_date_ymd] => 2025-01-10 13:09:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:09:04' and `end` < '2025-01-10 13: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-01-10 13:09:18] Production.INFO: count ==3941 [2025-01-10 13:09:20] Production.ERROR: pbx CDR StartTime 2025-01-10 10:09:04 - End Time 2025-01-10 13:09:04 [2025-01-10 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217127', 'tblTempUsageDetail_20' ) start [2025-01-10 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217127', 'tblTempUsageDetail_20' ) end [2025-01-10 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217127', 'tblTempVendorCDR_20' ) start [2025-01-10 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217127', 'tblTempVendorCDR_20' ) end [2025-01-10 13:09:20] Production.INFO: ProcessCDR(1,14217127,1,1,2) [2025-01-10 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217127', 'tblTempUsageDetail_20' ) start [2025-01-10 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217127', 'tblTempUsageDetail_20' ) end [2025-01-10 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:09:25] Production.INFO: ==20833== Releasing lock... [2025-01-10 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:09:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:10:06 [end_date_ymd] => 2025-01-10 13:10:06 [RateCDR] => 1 ) [2025-01-10 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:10:06' and `end` < '2025-01-10 13: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-01-10 13:10:21] Production.INFO: count ==3936 [2025-01-10 13:10:23] Production.ERROR: pbx CDR StartTime 2025-01-10 10:10:06 - End Time 2025-01-10 13:10:06 [2025-01-10 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217133', 'tblTempUsageDetail_20' ) start [2025-01-10 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217133', 'tblTempUsageDetail_20' ) end [2025-01-10 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217133', 'tblTempVendorCDR_20' ) start [2025-01-10 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217133', 'tblTempVendorCDR_20' ) end [2025-01-10 13:10:24] Production.INFO: ProcessCDR(1,14217133,1,1,2) [2025-01-10 13:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217133', 'tblTempUsageDetail_20' ) start [2025-01-10 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217133', 'tblTempUsageDetail_20' ) end [2025-01-10 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:10:28] Production.INFO: ==20911== Releasing lock... [2025-01-10 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:10:28] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 13:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:11:04 [end_date_ymd] => 2025-01-10 13:11:04 [RateCDR] => 1 ) [2025-01-10 13:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:11:04' and `end` < '2025-01-10 13:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:11:22] Production.INFO: count ==4050 [2025-01-10 13:11:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:11:04 - End Time 2025-01-10 13:11:04 [2025-01-10 13:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217138', 'tblTempUsageDetail_20' ) start [2025-01-10 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217138', 'tblTempUsageDetail_20' ) end [2025-01-10 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217138', 'tblTempVendorCDR_20' ) start [2025-01-10 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217138', 'tblTempVendorCDR_20' ) end [2025-01-10 13:11:24] Production.INFO: ProcessCDR(1,14217138,1,1,2) [2025-01-10 13:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217138', 'tblTempUsageDetail_20' ) start [2025-01-10 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217138', 'tblTempUsageDetail_20' ) end [2025-01-10 13:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:11:29] Production.INFO: ==20992== Releasing lock... [2025-01-10 13:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:11:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:12:05 [end_date_ymd] => 2025-01-10 13:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:12:05' and `end` < '2025-01-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-01-10 13:12:21] Production.INFO: count ==4049 [2025-01-10 13:12:23] Production.ERROR: pbx CDR StartTime 2025-01-10 10:12:05 - End Time 2025-01-10 13:12:05 [2025-01-10 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217143', 'tblTempUsageDetail_20' ) start [2025-01-10 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217143', 'tblTempUsageDetail_20' ) end [2025-01-10 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217143', 'tblTempVendorCDR_20' ) start [2025-01-10 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217143', 'tblTempVendorCDR_20' ) end [2025-01-10 13:12:23] Production.INFO: ProcessCDR(1,14217143,1,1,2) [2025-01-10 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217143', 'tblTempUsageDetail_20' ) start [2025-01-10 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217143', 'tblTempUsageDetail_20' ) end [2025-01-10 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:12:28] Production.INFO: ==21067== Releasing lock... [2025-01-10 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:12:28] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:13:05 [end_date_ymd] => 2025-01-10 13:13:05 [RateCDR] => 1 ) [2025-01-10 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:13:05' and `end` < '2025-01-10 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:13:23] Production.INFO: count ==4033 [2025-01-10 13:13:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:13:05 - End Time 2025-01-10 13:13:05 [2025-01-10 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217148', 'tblTempUsageDetail_20' ) start [2025-01-10 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217148', 'tblTempUsageDetail_20' ) end [2025-01-10 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217148', 'tblTempVendorCDR_20' ) start [2025-01-10 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217148', 'tblTempVendorCDR_20' ) end [2025-01-10 13:13:25] Production.INFO: ProcessCDR(1,14217148,1,1,2) [2025-01-10 13:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217148', 'tblTempUsageDetail_20' ) start [2025-01-10 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217148', 'tblTempUsageDetail_20' ) end [2025-01-10 13:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:13:29] Production.INFO: ==21142== Releasing lock... [2025-01-10 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:13:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:14:05 [end_date_ymd] => 2025-01-10 13:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:14:05' and `end` < '2025-01-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-01-10 13:14:25] Production.INFO: count ==4030 [2025-01-10 13:14:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:14:05 - End Time 2025-01-10 13:14:05 [2025-01-10 13:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217153', 'tblTempUsageDetail_20' ) start [2025-01-10 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217153', 'tblTempUsageDetail_20' ) end [2025-01-10 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217153', 'tblTempVendorCDR_20' ) start [2025-01-10 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217153', 'tblTempVendorCDR_20' ) end [2025-01-10 13:14:27] Production.INFO: ProcessCDR(1,14217153,1,1,2) [2025-01-10 13:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217153', 'tblTempUsageDetail_20' ) start [2025-01-10 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217153', 'tblTempUsageDetail_20' ) end [2025-01-10 13:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:14:32] Production.INFO: ==21217== Releasing lock... [2025-01-10 13:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:14:32] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:15:05 [end_date_ymd] => 2025-01-10 13:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:15:05' and `end` < '2025-01-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-01-10 13:15:25] Production.INFO: count ==4018 [2025-01-10 13:15:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:15:05 - End Time 2025-01-10 13:15:05 [2025-01-10 13:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217158', 'tblTempUsageDetail_20' ) start [2025-01-10 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217158', 'tblTempUsageDetail_20' ) end [2025-01-10 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217158', 'tblTempVendorCDR_20' ) start [2025-01-10 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217158', 'tblTempVendorCDR_20' ) end [2025-01-10 13:15:27] Production.INFO: ProcessCDR(1,14217158,1,1,2) [2025-01-10 13:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217158', 'tblTempUsageDetail_20' ) start [2025-01-10 13:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217158', 'tblTempUsageDetail_20' ) end [2025-01-10 13:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:15:32] Production.INFO: ==21295== Releasing lock... [2025-01-10 13:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:15:32] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:16:05 [end_date_ymd] => 2025-01-10 13:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:16:05' and `end` < '2025-01-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-01-10 13:16:25] Production.INFO: count ==4007 [2025-01-10 13:16:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:16:05 - End Time 2025-01-10 13:16:05 [2025-01-10 13:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217163', 'tblTempUsageDetail_20' ) start [2025-01-10 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217163', 'tblTempUsageDetail_20' ) end [2025-01-10 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217163', 'tblTempVendorCDR_20' ) start [2025-01-10 13:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217163', 'tblTempVendorCDR_20' ) end [2025-01-10 13:16:27] Production.INFO: ProcessCDR(1,14217163,1,1,2) [2025-01-10 13:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217163', 'tblTempUsageDetail_20' ) start [2025-01-10 13:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217163', 'tblTempUsageDetail_20' ) end [2025-01-10 13:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:16:32] Production.INFO: ==21376== Releasing lock... [2025-01-10 13:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:16:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:17:04 [end_date_ymd] => 2025-01-10 13:17:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:17:04' and `end` < '2025-01-10 13: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-01-10 13:17:22] Production.INFO: count ==3986 [2025-01-10 13:17:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:17:04 - End Time 2025-01-10 13:17:04 [2025-01-10 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217168', 'tblTempUsageDetail_20' ) start [2025-01-10 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217168', 'tblTempUsageDetail_20' ) end [2025-01-10 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217168', 'tblTempVendorCDR_20' ) start [2025-01-10 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217168', 'tblTempVendorCDR_20' ) end [2025-01-10 13:17:24] Production.INFO: ProcessCDR(1,14217168,1,1,2) [2025-01-10 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217168', 'tblTempUsageDetail_20' ) start [2025-01-10 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217168', 'tblTempUsageDetail_20' ) end [2025-01-10 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:17:27] Production.INFO: ==21488== Releasing lock... [2025-01-10 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:17:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:18:05 [end_date_ymd] => 2025-01-10 13:18:05 [RateCDR] => 1 ) [2025-01-10 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:18:05' and `end` < '2025-01-10 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:18:27] Production.INFO: count ==4008 [2025-01-10 13:18:29] Production.ERROR: pbx CDR StartTime 2025-01-10 10:18:05 - End Time 2025-01-10 13:18:05 [2025-01-10 13:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217173', 'tblTempUsageDetail_20' ) start [2025-01-10 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217173', 'tblTempUsageDetail_20' ) end [2025-01-10 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217173', 'tblTempVendorCDR_20' ) start [2025-01-10 13:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217173', 'tblTempVendorCDR_20' ) end [2025-01-10 13:18:29] Production.INFO: ProcessCDR(1,14217173,1,1,2) [2025-01-10 13:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217173', 'tblTempUsageDetail_20' ) start [2025-01-10 13:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217173', 'tblTempUsageDetail_20' ) end [2025-01-10 13:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:18:34] Production.INFO: ==21568== Releasing lock... [2025-01-10 13:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:18:34] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:19:05 [end_date_ymd] => 2025-01-10 13:19:05 [RateCDR] => 1 ) [2025-01-10 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:19:05' and `end` < '2025-01-10 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:19:25] Production.INFO: count ==4006 [2025-01-10 13:19:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:19:05 - End Time 2025-01-10 13:19:05 [2025-01-10 13:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217178', 'tblTempUsageDetail_20' ) start [2025-01-10 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217178', 'tblTempUsageDetail_20' ) end [2025-01-10 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217178', 'tblTempVendorCDR_20' ) start [2025-01-10 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217178', 'tblTempVendorCDR_20' ) end [2025-01-10 13:19:27] Production.INFO: ProcessCDR(1,14217178,1,1,2) [2025-01-10 13:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217178', 'tblTempUsageDetail_20' ) start [2025-01-10 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217178', 'tblTempUsageDetail_20' ) end [2025-01-10 13:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:19:32] Production.INFO: ==21649== Releasing lock... [2025-01-10 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:19:32] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:20:05 [end_date_ymd] => 2025-01-10 13:20:05 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:20:05' and `end` < '2025-01-10 13: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-01-10 13:20:34] Production.INFO: count ==4004 [2025-01-10 13:20:36] Production.ERROR: pbx CDR StartTime 2025-01-10 10:20:05 - End Time 2025-01-10 13:20:05 [2025-01-10 13:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217184', 'tblTempUsageDetail_20' ) start [2025-01-10 13:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217184', 'tblTempUsageDetail_20' ) end [2025-01-10 13:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217184', 'tblTempVendorCDR_20' ) start [2025-01-10 13:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217184', 'tblTempVendorCDR_20' ) end [2025-01-10 13:20:36] Production.INFO: ProcessCDR(1,14217184,1,1,2) [2025-01-10 13:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217184', 'tblTempUsageDetail_20' ) start [2025-01-10 13:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217184', 'tblTempUsageDetail_20' ) end [2025-01-10 13:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:20:41] Production.INFO: ==21732== Releasing lock... [2025-01-10 13:20:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:20:41] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:21:05 [end_date_ymd] => 2025-01-10 13:21:05 [RateCDR] => 1 ) [2025-01-10 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:21:05' and `end` < '2025-01-10 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:21:25] Production.INFO: count ==4077 [2025-01-10 13:21:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:21:05 - End Time 2025-01-10 13:21:05 [2025-01-10 13:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217189', 'tblTempUsageDetail_20' ) start [2025-01-10 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217189', 'tblTempUsageDetail_20' ) end [2025-01-10 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217189', 'tblTempVendorCDR_20' ) start [2025-01-10 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217189', 'tblTempVendorCDR_20' ) end [2025-01-10 13:21:27] Production.INFO: ProcessCDR(1,14217189,1,1,2) [2025-01-10 13:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217189', 'tblTempUsageDetail_20' ) start [2025-01-10 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217189', 'tblTempUsageDetail_20' ) end [2025-01-10 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:21:32] Production.INFO: ==21816== Releasing lock... [2025-01-10 13:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:21:32] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:22:04 [end_date_ymd] => 2025-01-10 13:22:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:22:04' and `end` < '2025-01-10 13: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-01-10 13:22:19] Production.INFO: count ==4085 [2025-01-10 13:22:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:22:04 - End Time 2025-01-10 13:22:04 [2025-01-10 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217194', 'tblTempUsageDetail_20' ) start [2025-01-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217194', 'tblTempUsageDetail_20' ) end [2025-01-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217194', 'tblTempVendorCDR_20' ) start [2025-01-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217194', 'tblTempVendorCDR_20' ) end [2025-01-10 13:22:21] Production.INFO: ProcessCDR(1,14217194,1,1,2) [2025-01-10 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217194', 'tblTempUsageDetail_20' ) start [2025-01-10 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217194', 'tblTempUsageDetail_20' ) end [2025-01-10 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:22:26] Production.INFO: ==21894== Releasing lock... [2025-01-10 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:22:26] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:23:05 [end_date_ymd] => 2025-01-10 13:23:05 [RateCDR] => 1 ) [2025-01-10 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:23:05' and `end` < '2025-01-10 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:23:30] Production.INFO: count ==4073 [2025-01-10 13:23:31] Production.ERROR: pbx CDR StartTime 2025-01-10 10:23:05 - End Time 2025-01-10 13:23:05 [2025-01-10 13:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217199', 'tblTempUsageDetail_20' ) start [2025-01-10 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217199', 'tblTempUsageDetail_20' ) end [2025-01-10 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217199', 'tblTempVendorCDR_20' ) start [2025-01-10 13:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217199', 'tblTempVendorCDR_20' ) end [2025-01-10 13:23:32] Production.INFO: ProcessCDR(1,14217199,1,1,2) [2025-01-10 13:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217199', 'tblTempUsageDetail_20' ) start [2025-01-10 13:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217199', 'tblTempUsageDetail_20' ) end [2025-01-10 13:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:23:36] Production.INFO: ==21970== Releasing lock... [2025-01-10 13:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:23:36] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:24:05 [end_date_ymd] => 2025-01-10 13:24:05 [RateCDR] => 1 ) [2025-01-10 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:24:05' and `end` < '2025-01-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-01-10 13:24:19] Production.INFO: count ==4054 [2025-01-10 13:24:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:24:05 - End Time 2025-01-10 13:24:05 [2025-01-10 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217204', 'tblTempUsageDetail_20' ) start [2025-01-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217204', 'tblTempUsageDetail_20' ) end [2025-01-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217204', 'tblTempVendorCDR_20' ) start [2025-01-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217204', 'tblTempVendorCDR_20' ) end [2025-01-10 13:24:21] Production.INFO: ProcessCDR(1,14217204,1,1,2) [2025-01-10 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217204', 'tblTempUsageDetail_20' ) start [2025-01-10 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217204', 'tblTempUsageDetail_20' ) end [2025-01-10 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:24:26] Production.INFO: ==22050== Releasing lock... [2025-01-10 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:24:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:25:05 [end_date_ymd] => 2025-01-10 13:25:05 [RateCDR] => 1 ) [2025-01-10 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:25:05' and `end` < '2025-01-10 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:25:26] Production.INFO: count ==4039 [2025-01-10 13:25:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:25:05 - End Time 2025-01-10 13:25:05 [2025-01-10 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217209', 'tblTempUsageDetail_20' ) start [2025-01-10 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217209', 'tblTempUsageDetail_20' ) end [2025-01-10 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217209', 'tblTempVendorCDR_20' ) start [2025-01-10 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217209', 'tblTempVendorCDR_20' ) end [2025-01-10 13:25:28] Production.INFO: ProcessCDR(1,14217209,1,1,2) [2025-01-10 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217209', 'tblTempUsageDetail_20' ) start [2025-01-10 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217209', 'tblTempUsageDetail_20' ) end [2025-01-10 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:25:32] Production.INFO: ==22129== Releasing lock... [2025-01-10 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:25:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:26:05 [end_date_ymd] => 2025-01-10 13:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:26:05' and `end` < '2025-01-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-01-10 13:26:29] Production.INFO: count ==4005 [2025-01-10 13:26:31] Production.ERROR: pbx CDR StartTime 2025-01-10 10:26:05 - End Time 2025-01-10 13:26:05 [2025-01-10 13:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217214', 'tblTempUsageDetail_20' ) start [2025-01-10 13:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217214', 'tblTempUsageDetail_20' ) end [2025-01-10 13:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217214', 'tblTempVendorCDR_20' ) start [2025-01-10 13:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217214', 'tblTempVendorCDR_20' ) end [2025-01-10 13:26:31] Production.INFO: ProcessCDR(1,14217214,1,1,2) [2025-01-10 13:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217214', 'tblTempUsageDetail_20' ) start [2025-01-10 13:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217214', 'tblTempUsageDetail_20' ) end [2025-01-10 13:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:26:35] Production.INFO: ==22207== Releasing lock... [2025-01-10 13:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:26:35] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:27:04 [end_date_ymd] => 2025-01-10 13:27:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:27:04' and `end` < '2025-01-10 13: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-01-10 13:27:25] Production.INFO: count ==4016 [2025-01-10 13:27:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:27:04 - End Time 2025-01-10 13:27:04 [2025-01-10 13:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217219', 'tblTempUsageDetail_20' ) start [2025-01-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217219', 'tblTempUsageDetail_20' ) end [2025-01-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217219', 'tblTempVendorCDR_20' ) start [2025-01-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217219', 'tblTempVendorCDR_20' ) end [2025-01-10 13:27:27] Production.INFO: ProcessCDR(1,14217219,1,1,2) [2025-01-10 13:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217219', 'tblTempUsageDetail_20' ) start [2025-01-10 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217219', 'tblTempUsageDetail_20' ) end [2025-01-10 13:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:27:32] Production.INFO: ==22291== Releasing lock... [2025-01-10 13:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:27:32] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:28:05 [end_date_ymd] => 2025-01-10 13:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:28:05' and `end` < '2025-01-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-01-10 13:28:22] Production.INFO: count ==4007 [2025-01-10 13:28:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:28:05 - End Time 2025-01-10 13:28:05 [2025-01-10 13:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217223', 'tblTempUsageDetail_20' ) start [2025-01-10 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217223', 'tblTempUsageDetail_20' ) end [2025-01-10 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217223', 'tblTempVendorCDR_20' ) start [2025-01-10 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217223', 'tblTempVendorCDR_20' ) end [2025-01-10 13:28:24] Production.INFO: ProcessCDR(1,14217223,1,1,2) [2025-01-10 13:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217223', 'tblTempUsageDetail_20' ) start [2025-01-10 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217223', 'tblTempUsageDetail_20' ) end [2025-01-10 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:28:27] Production.INFO: ==22373== Releasing lock... [2025-01-10 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:28:27] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:29:05 [end_date_ymd] => 2025-01-10 13:29:05 [RateCDR] => 1 ) [2025-01-10 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:29:05' and `end` < '2025-01-10 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:29:26] Production.INFO: count ==4008 [2025-01-10 13:29:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:29:05 - End Time 2025-01-10 13:29:05 [2025-01-10 13:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217229', 'tblTempUsageDetail_20' ) start [2025-01-10 13:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217229', 'tblTempUsageDetail_20' ) end [2025-01-10 13:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217229', 'tblTempVendorCDR_20' ) start [2025-01-10 13:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217229', 'tblTempVendorCDR_20' ) end [2025-01-10 13:29:28] Production.INFO: ProcessCDR(1,14217229,1,1,2) [2025-01-10 13:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217229', 'tblTempUsageDetail_20' ) start [2025-01-10 13:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217229', 'tblTempUsageDetail_20' ) end [2025-01-10 13:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:29:33] Production.INFO: ==22462== Releasing lock... [2025-01-10 13:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:29:33] Production.INFO: 58 MB #Memory Used# [2025-01-10 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:30:05 [end_date_ymd] => 2025-01-10 13:30:05 [RateCDR] => 1 ) [2025-01-10 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:30:05' and `end` < '2025-01-10 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:30:27] Production.INFO: count ==3978 [2025-01-10 13:30:29] Production.ERROR: pbx CDR StartTime 2025-01-10 10:30:05 - End Time 2025-01-10 13:30:05 [2025-01-10 13:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217233', 'tblTempUsageDetail_20' ) start [2025-01-10 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217233', 'tblTempUsageDetail_20' ) end [2025-01-10 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217233', 'tblTempVendorCDR_20' ) start [2025-01-10 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217233', 'tblTempVendorCDR_20' ) end [2025-01-10 13:30:29] Production.INFO: ProcessCDR(1,14217233,1,1,2) [2025-01-10 13:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217233', 'tblTempUsageDetail_20' ) start [2025-01-10 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217233', 'tblTempUsageDetail_20' ) end [2025-01-10 13:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:30:33] Production.INFO: ==22551== Releasing lock... [2025-01-10 13:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:30:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:31:04 [end_date_ymd] => 2025-01-10 13:31:04 [RateCDR] => 1 ) [2025-01-10 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:31:04' and `end` < '2025-01-10 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:31:29] Production.INFO: count ==4065 [2025-01-10 13:31:31] Production.ERROR: pbx CDR StartTime 2025-01-10 10:31:04 - End Time 2025-01-10 13:31:04 [2025-01-10 13:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217240', 'tblTempUsageDetail_20' ) start [2025-01-10 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217240', 'tblTempUsageDetail_20' ) end [2025-01-10 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217240', 'tblTempVendorCDR_20' ) start [2025-01-10 13:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217240', 'tblTempVendorCDR_20' ) end [2025-01-10 13:31:31] Production.INFO: ProcessCDR(1,14217240,1,1,2) [2025-01-10 13:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217240', 'tblTempUsageDetail_20' ) start [2025-01-10 13:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217240', 'tblTempUsageDetail_20' ) end [2025-01-10 13:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:31:36] Production.INFO: ==22637== Releasing lock... [2025-01-10 13:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:31:36] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:32:04 [end_date_ymd] => 2025-01-10 13:32:04 [RateCDR] => 1 ) [2025-01-10 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:32:04' and `end` < '2025-01-10 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:32:25] Production.INFO: count ==4049 [2025-01-10 13:32:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:32:04 - End Time 2025-01-10 13:32:04 [2025-01-10 13:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217245', 'tblTempUsageDetail_20' ) start [2025-01-10 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217245', 'tblTempUsageDetail_20' ) end [2025-01-10 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217245', 'tblTempVendorCDR_20' ) start [2025-01-10 13:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217245', 'tblTempVendorCDR_20' ) end [2025-01-10 13:32:27] Production.INFO: ProcessCDR(1,14217245,1,1,2) [2025-01-10 13:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217245', 'tblTempUsageDetail_20' ) start [2025-01-10 13:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217245', 'tblTempUsageDetail_20' ) end [2025-01-10 13:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:32:32] Production.INFO: ==22719== Releasing lock... [2025-01-10 13:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:32:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:33:04 [end_date_ymd] => 2025-01-10 13:33:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:33:04' and `end` < '2025-01-10 13: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-01-10 13:33:23] Production.INFO: count ==4051 [2025-01-10 13:33:25] Production.ERROR: pbx CDR StartTime 2025-01-10 10:33:04 - End Time 2025-01-10 13:33:04 [2025-01-10 13:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217250', 'tblTempUsageDetail_20' ) start [2025-01-10 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217250', 'tblTempUsageDetail_20' ) end [2025-01-10 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217250', 'tblTempVendorCDR_20' ) start [2025-01-10 13:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217250', 'tblTempVendorCDR_20' ) end [2025-01-10 13:33:25] Production.INFO: ProcessCDR(1,14217250,1,1,2) [2025-01-10 13:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217250', 'tblTempUsageDetail_20' ) start [2025-01-10 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217250', 'tblTempUsageDetail_20' ) end [2025-01-10 13:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:33:29] Production.INFO: ==22841== Releasing lock... [2025-01-10 13:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:33:29] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:34:05 [end_date_ymd] => 2025-01-10 13:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:34:05' and `end` < '2025-01-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-01-10 13:34:19] Production.INFO: count ==4045 [2025-01-10 13:34:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:34:05 - End Time 2025-01-10 13:34:05 [2025-01-10 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217252', 'tblTempUsageDetail_20' ) start [2025-01-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217252', 'tblTempUsageDetail_20' ) end [2025-01-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217252', 'tblTempVendorCDR_20' ) start [2025-01-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217252', 'tblTempVendorCDR_20' ) end [2025-01-10 13:34:21] Production.INFO: ProcessCDR(1,14217252,1,1,2) [2025-01-10 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217252', 'tblTempUsageDetail_20' ) start [2025-01-10 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217252', 'tblTempUsageDetail_20' ) end [2025-01-10 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:34:26] Production.INFO: ==22932== Releasing lock... [2025-01-10 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:34:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:35:04 [end_date_ymd] => 2025-01-10 13:35:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:35:04' and `end` < '2025-01-10 13: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-01-10 13:35:30] Production.INFO: count ==4083 [2025-01-10 13:35:32] Production.ERROR: pbx CDR StartTime 2025-01-10 10:35:04 - End Time 2025-01-10 13:35:04 [2025-01-10 13:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217260', 'tblTempUsageDetail_20' ) start [2025-01-10 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217260', 'tblTempUsageDetail_20' ) end [2025-01-10 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217260', 'tblTempVendorCDR_20' ) start [2025-01-10 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217260', 'tblTempVendorCDR_20' ) end [2025-01-10 13:35:32] Production.INFO: ProcessCDR(1,14217260,1,1,2) [2025-01-10 13:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217260', 'tblTempUsageDetail_20' ) start [2025-01-10 13:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217260', 'tblTempUsageDetail_20' ) end [2025-01-10 13:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:35:37] Production.INFO: ==23023== Releasing lock... [2025-01-10 13:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:35:37] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:36:05 [end_date_ymd] => 2025-01-10 13:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:36:05' and `end` < '2025-01-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-01-10 13:36:26] Production.INFO: count ==4080 [2025-01-10 13:36:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:36:05 - End Time 2025-01-10 13:36:05 [2025-01-10 13:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217265', 'tblTempUsageDetail_20' ) start [2025-01-10 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217265', 'tblTempUsageDetail_20' ) end [2025-01-10 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217265', 'tblTempVendorCDR_20' ) start [2025-01-10 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217265', 'tblTempVendorCDR_20' ) end [2025-01-10 13:36:28] Production.INFO: ProcessCDR(1,14217265,1,1,2) [2025-01-10 13:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217265', 'tblTempUsageDetail_20' ) start [2025-01-10 13:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217265', 'tblTempUsageDetail_20' ) end [2025-01-10 13:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:36:33] Production.INFO: ==23114== Releasing lock... [2025-01-10 13:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:36:33] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:37:05 [end_date_ymd] => 2025-01-10 13:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:37:05' and `end` < '2025-01-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-01-10 13:37:27] Production.INFO: count ==4090 [2025-01-10 13:37:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:37:05 - End Time 2025-01-10 13:37:05 [2025-01-10 13:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217270', 'tblTempUsageDetail_20' ) start [2025-01-10 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217270', 'tblTempUsageDetail_20' ) end [2025-01-10 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217270', 'tblTempVendorCDR_20' ) start [2025-01-10 13:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217270', 'tblTempVendorCDR_20' ) end [2025-01-10 13:37:29] Production.INFO: ProcessCDR(1,14217270,1,1,2) [2025-01-10 13:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217270', 'tblTempUsageDetail_20' ) start [2025-01-10 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217270', 'tblTempUsageDetail_20' ) end [2025-01-10 13:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:37:33] Production.INFO: ==23195== Releasing lock... [2025-01-10 13:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:37:33] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:38:04 [end_date_ymd] => 2025-01-10 13:38:04 [RateCDR] => 1 ) [2025-01-10 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:38:04' and `end` < '2025-01-10 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:38:18] Production.INFO: count ==4117 [2025-01-10 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 10:38:04 - End Time 2025-01-10 13:38:04 [2025-01-10 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217275', 'tblTempUsageDetail_20' ) start [2025-01-10 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217275', 'tblTempUsageDetail_20' ) end [2025-01-10 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217275', 'tblTempVendorCDR_20' ) start [2025-01-10 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217275', 'tblTempVendorCDR_20' ) end [2025-01-10 13:38:20] Production.INFO: ProcessCDR(1,14217275,1,1,2) [2025-01-10 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217275', 'tblTempUsageDetail_20' ) start [2025-01-10 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217275', 'tblTempUsageDetail_20' ) end [2025-01-10 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:38:25] Production.INFO: ==23276== Releasing lock... [2025-01-10 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:38:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:39:05 [end_date_ymd] => 2025-01-10 13:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:39:05' and `end` < '2025-01-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-01-10 13:39:23] Production.INFO: count ==4094 [2025-01-10 13:39:25] Production.ERROR: pbx CDR StartTime 2025-01-10 10:39:05 - End Time 2025-01-10 13:39:05 [2025-01-10 13:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217280', 'tblTempUsageDetail_20' ) start [2025-01-10 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217280', 'tblTempUsageDetail_20' ) end [2025-01-10 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217280', 'tblTempVendorCDR_20' ) start [2025-01-10 13:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217280', 'tblTempVendorCDR_20' ) end [2025-01-10 13:39:25] Production.INFO: ProcessCDR(1,14217280,1,1,2) [2025-01-10 13:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217280', 'tblTempUsageDetail_20' ) start [2025-01-10 13:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217280', 'tblTempUsageDetail_20' ) end [2025-01-10 13:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:39:30] Production.INFO: ==23351== Releasing lock... [2025-01-10 13:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:39:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:40:05 [end_date_ymd] => 2025-01-10 13:40:05 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:40:05' and `end` < '2025-01-10 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:40:20] Production.INFO: count ==4093 [2025-01-10 13:40:22] Production.ERROR: pbx CDR StartTime 2025-01-10 10:40:05 - End Time 2025-01-10 13:40:05 [2025-01-10 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217286', 'tblTempUsageDetail_20' ) start [2025-01-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217286', 'tblTempUsageDetail_20' ) end [2025-01-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217286', 'tblTempVendorCDR_20' ) start [2025-01-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217286', 'tblTempVendorCDR_20' ) end [2025-01-10 13:40:22] Production.INFO: ProcessCDR(1,14217286,1,1,2) [2025-01-10 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217286', 'tblTempUsageDetail_20' ) start [2025-01-10 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217286', 'tblTempUsageDetail_20' ) end [2025-01-10 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:40:25] Production.INFO: ==23430== Releasing lock... [2025-01-10 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:40:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:41:05 [end_date_ymd] => 2025-01-10 13:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:41:05' and `end` < '2025-01-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-01-10 13:41:19] Production.INFO: count ==4132 [2025-01-10 13:41:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:41:05 - End Time 2025-01-10 13:41:05 [2025-01-10 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217291', 'tblTempUsageDetail_20' ) start [2025-01-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217291', 'tblTempUsageDetail_20' ) end [2025-01-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217291', 'tblTempVendorCDR_20' ) start [2025-01-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217291', 'tblTempVendorCDR_20' ) end [2025-01-10 13:41:21] Production.INFO: ProcessCDR(1,14217291,1,1,2) [2025-01-10 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217291', 'tblTempUsageDetail_20' ) start [2025-01-10 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217291', 'tblTempUsageDetail_20' ) end [2025-01-10 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:41:25] Production.INFO: ==23511== Releasing lock... [2025-01-10 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:41:25] Production.INFO: 59 MB #Memory Used# [2025-01-10 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:42:06 [end_date_ymd] => 2025-01-10 13:42:06 [RateCDR] => 1 ) [2025-01-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-01-10 10:42:06' and `end` < '2025-01-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-01-10 13:42:20] Production.INFO: count ==4143 [2025-01-10 13:42:22] Production.ERROR: pbx CDR StartTime 2025-01-10 10:42:06 - End Time 2025-01-10 13:42:06 [2025-01-10 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217296', 'tblTempUsageDetail_20' ) start [2025-01-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217296', 'tblTempUsageDetail_20' ) end [2025-01-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217296', 'tblTempVendorCDR_20' ) start [2025-01-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217296', 'tblTempVendorCDR_20' ) end [2025-01-10 13:42:22] Production.INFO: ProcessCDR(1,14217296,1,1,2) [2025-01-10 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217296', 'tblTempUsageDetail_20' ) start [2025-01-10 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217296', 'tblTempUsageDetail_20' ) end [2025-01-10 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:42:27] Production.INFO: ==23592== Releasing lock... [2025-01-10 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:42:27] Production.INFO: 59 MB #Memory Used# [2025-01-10 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:43:05 [end_date_ymd] => 2025-01-10 13:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:43:05' and `end` < '2025-01-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-01-10 13:43:21] Production.INFO: count ==4141 [2025-01-10 13:43:23] Production.ERROR: pbx CDR StartTime 2025-01-10 10:43:05 - End Time 2025-01-10 13:43:05 [2025-01-10 13:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217301', 'tblTempUsageDetail_20' ) start [2025-01-10 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217301', 'tblTempUsageDetail_20' ) end [2025-01-10 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217301', 'tblTempVendorCDR_20' ) start [2025-01-10 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217301', 'tblTempVendorCDR_20' ) end [2025-01-10 13:43:23] Production.INFO: ProcessCDR(1,14217301,1,1,2) [2025-01-10 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217301', 'tblTempUsageDetail_20' ) start [2025-01-10 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217301', 'tblTempUsageDetail_20' ) end [2025-01-10 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:43:28] Production.INFO: ==23670== Releasing lock... [2025-01-10 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:43:28] Production.INFO: 59 MB #Memory Used# [2025-01-10 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:44:05 [end_date_ymd] => 2025-01-10 13:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:44:05' and `end` < '2025-01-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-01-10 13:44:22] Production.INFO: count ==4159 [2025-01-10 13:44:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:44:05 - End Time 2025-01-10 13:44:05 [2025-01-10 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217306', 'tblTempUsageDetail_20' ) start [2025-01-10 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217306', 'tblTempUsageDetail_20' ) end [2025-01-10 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217306', 'tblTempVendorCDR_20' ) start [2025-01-10 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217306', 'tblTempVendorCDR_20' ) end [2025-01-10 13:44:24] Production.INFO: ProcessCDR(1,14217306,1,1,2) [2025-01-10 13:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217306', 'tblTempUsageDetail_20' ) start [2025-01-10 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217306', 'tblTempUsageDetail_20' ) end [2025-01-10 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:44:29] Production.INFO: ==23751== Releasing lock... [2025-01-10 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:44:29] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:45:05 [end_date_ymd] => 2025-01-10 13:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:45:05' and `end` < '2025-01-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-01-10 13:45:24] Production.INFO: count ==4157 [2025-01-10 13:45:26] Production.ERROR: pbx CDR StartTime 2025-01-10 10:45:05 - End Time 2025-01-10 13:45:05 [2025-01-10 13:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217311', 'tblTempUsageDetail_20' ) start [2025-01-10 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217311', 'tblTempUsageDetail_20' ) end [2025-01-10 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217311', 'tblTempVendorCDR_20' ) start [2025-01-10 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217311', 'tblTempVendorCDR_20' ) end [2025-01-10 13:45:26] Production.INFO: ProcessCDR(1,14217311,1,1,2) [2025-01-10 13:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217311', 'tblTempUsageDetail_20' ) start [2025-01-10 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217311', 'tblTempUsageDetail_20' ) end [2025-01-10 13:45:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:45:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:45:31] Production.INFO: ==23831== Releasing lock... [2025-01-10 13:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:45:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:46:05 [end_date_ymd] => 2025-01-10 13:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:46:05' and `end` < '2025-01-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-01-10 13:46:28] Production.INFO: count ==4169 [2025-01-10 13:46:30] Production.ERROR: pbx CDR StartTime 2025-01-10 10:46:05 - End Time 2025-01-10 13:46:05 [2025-01-10 13:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217316', 'tblTempUsageDetail_20' ) start [2025-01-10 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217316', 'tblTempUsageDetail_20' ) end [2025-01-10 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217316', 'tblTempVendorCDR_20' ) start [2025-01-10 13:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217316', 'tblTempVendorCDR_20' ) end [2025-01-10 13:46:30] Production.INFO: ProcessCDR(1,14217316,1,1,2) [2025-01-10 13:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217316', 'tblTempUsageDetail_20' ) start [2025-01-10 13:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217316', 'tblTempUsageDetail_20' ) end [2025-01-10 13:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:46:34] Production.INFO: ==23905== Releasing lock... [2025-01-10 13:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:46:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:47:04 [end_date_ymd] => 2025-01-10 13:47:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:47:04' and `end` < '2025-01-10 13: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-01-10 13:47:23] Production.INFO: count ==4164 [2025-01-10 13:47:25] Production.ERROR: pbx CDR StartTime 2025-01-10 10:47:04 - End Time 2025-01-10 13:47:04 [2025-01-10 13:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217321', 'tblTempUsageDetail_20' ) start [2025-01-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217321', 'tblTempUsageDetail_20' ) end [2025-01-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217321', 'tblTempVendorCDR_20' ) start [2025-01-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217321', 'tblTempVendorCDR_20' ) end [2025-01-10 13:47:25] Production.INFO: ProcessCDR(1,14217321,1,1,2) [2025-01-10 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217321', 'tblTempUsageDetail_20' ) start [2025-01-10 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217321', 'tblTempUsageDetail_20' ) end [2025-01-10 13:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:47:30] Production.INFO: ==24000== Releasing lock... [2025-01-10 13:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:47:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:48:05 [end_date_ymd] => 2025-01-10 13:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:48:05' and `end` < '2025-01-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-01-10 13:48:25] Production.INFO: count ==4160 [2025-01-10 13:48:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:48:05 - End Time 2025-01-10 13:48:05 [2025-01-10 13:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217326', 'tblTempUsageDetail_20' ) start [2025-01-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217326', 'tblTempUsageDetail_20' ) end [2025-01-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217326', 'tblTempVendorCDR_20' ) start [2025-01-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217326', 'tblTempVendorCDR_20' ) end [2025-01-10 13:48:27] Production.INFO: ProcessCDR(1,14217326,1,1,2) [2025-01-10 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217326', 'tblTempUsageDetail_20' ) start [2025-01-10 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217326', 'tblTempUsageDetail_20' ) end [2025-01-10 13:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:48:31] Production.INFO: ==24127== Releasing lock... [2025-01-10 13:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:48:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:49:04 [end_date_ymd] => 2025-01-10 13:49:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:49:04' and `end` < '2025-01-10 13: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-01-10 13:49:26] Production.INFO: count ==4158 [2025-01-10 13:49:27] Production.ERROR: pbx CDR StartTime 2025-01-10 10:49:04 - End Time 2025-01-10 13:49:04 [2025-01-10 13:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217331', 'tblTempUsageDetail_20' ) start [2025-01-10 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217331', 'tblTempUsageDetail_20' ) end [2025-01-10 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217331', 'tblTempVendorCDR_20' ) start [2025-01-10 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217331', 'tblTempVendorCDR_20' ) end [2025-01-10 13:49:28] Production.INFO: ProcessCDR(1,14217331,1,1,2) [2025-01-10 13:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217331', 'tblTempUsageDetail_20' ) start [2025-01-10 13:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217331', 'tblTempUsageDetail_20' ) end [2025-01-10 13:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:49:32] Production.INFO: ==24208== Releasing lock... [2025-01-10 13:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:49:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:50:05 [end_date_ymd] => 2025-01-10 13:50:05 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:50:05' and `end` < '2025-01-10 13: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-01-10 13:50:29] Production.INFO: count ==4158 [2025-01-10 13:50:31] Production.ERROR: pbx CDR StartTime 2025-01-10 10:50:05 - End Time 2025-01-10 13:50:05 [2025-01-10 13:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217337', 'tblTempUsageDetail_20' ) start [2025-01-10 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217337', 'tblTempUsageDetail_20' ) end [2025-01-10 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217337', 'tblTempVendorCDR_20' ) start [2025-01-10 13:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217337', 'tblTempVendorCDR_20' ) end [2025-01-10 13:50:31] Production.INFO: ProcessCDR(1,14217337,1,1,2) [2025-01-10 13:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217337', 'tblTempUsageDetail_20' ) start [2025-01-10 13:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217337', 'tblTempUsageDetail_20' ) end [2025-01-10 13:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:50:35] Production.INFO: ==24293== Releasing lock... [2025-01-10 13:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:50:35] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:51:05 [end_date_ymd] => 2025-01-10 13:51:05 [RateCDR] => 1 ) [2025-01-10 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:51:05' and `end` < '2025-01-10 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:51:22] Production.INFO: count ==4213 [2025-01-10 13:51:24] Production.ERROR: pbx CDR StartTime 2025-01-10 10:51:05 - End Time 2025-01-10 13:51:05 [2025-01-10 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217342', 'tblTempUsageDetail_20' ) start [2025-01-10 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217342', 'tblTempUsageDetail_20' ) end [2025-01-10 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217342', 'tblTempVendorCDR_20' ) start [2025-01-10 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217342', 'tblTempVendorCDR_20' ) end [2025-01-10 13:51:24] Production.INFO: ProcessCDR(1,14217342,1,1,2) [2025-01-10 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217342', 'tblTempUsageDetail_20' ) start [2025-01-10 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217342', 'tblTempUsageDetail_20' ) end [2025-01-10 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:51:28] Production.INFO: ==24378== Releasing lock... [2025-01-10 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:51:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:52:05 [end_date_ymd] => 2025-01-10 13:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:52:05' and `end` < '2025-01-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-01-10 13:52:24] Production.INFO: count ==4218 [2025-01-10 13:52:26] Production.ERROR: pbx CDR StartTime 2025-01-10 10:52:05 - End Time 2025-01-10 13:52:05 [2025-01-10 13:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217347', 'tblTempUsageDetail_20' ) start [2025-01-10 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217347', 'tblTempUsageDetail_20' ) end [2025-01-10 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217347', 'tblTempVendorCDR_20' ) start [2025-01-10 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217347', 'tblTempVendorCDR_20' ) end [2025-01-10 13:52:26] Production.INFO: ProcessCDR(1,14217347,1,1,2) [2025-01-10 13:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217347', 'tblTempUsageDetail_20' ) start [2025-01-10 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217347', 'tblTempUsageDetail_20' ) end [2025-01-10 13:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:52:31] Production.INFO: ==24458== Releasing lock... [2025-01-10 13:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:52:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:53:05 [end_date_ymd] => 2025-01-10 13:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:53:05' and `end` < '2025-01-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-01-10 13:53:27] Production.INFO: count ==4204 [2025-01-10 13:53:28] Production.ERROR: pbx CDR StartTime 2025-01-10 10:53:05 - End Time 2025-01-10 13:53:05 [2025-01-10 13:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217352', 'tblTempUsageDetail_20' ) start [2025-01-10 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217352', 'tblTempUsageDetail_20' ) end [2025-01-10 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217352', 'tblTempVendorCDR_20' ) start [2025-01-10 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217352', 'tblTempVendorCDR_20' ) end [2025-01-10 13:53:29] Production.INFO: ProcessCDR(1,14217352,1,1,2) [2025-01-10 13:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217352', 'tblTempUsageDetail_20' ) start [2025-01-10 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217352', 'tblTempUsageDetail_20' ) end [2025-01-10 13:53:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:53:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:53:33] Production.INFO: ==24539== Releasing lock... [2025-01-10 13:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:53:33] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:54:05 [end_date_ymd] => 2025-01-10 13:54:05 [RateCDR] => 1 ) [2025-01-10 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 10:54:05' and `end` < '2025-01-10 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 13:54:19] Production.INFO: count ==4214 [2025-01-10 13:54:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:54:05 - End Time 2025-01-10 13:54:05 [2025-01-10 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217357', 'tblTempUsageDetail_20' ) start [2025-01-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217357', 'tblTempUsageDetail_20' ) end [2025-01-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217357', 'tblTempVendorCDR_20' ) start [2025-01-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217357', 'tblTempVendorCDR_20' ) end [2025-01-10 13:54:21] Production.INFO: ProcessCDR(1,14217357,1,1,2) [2025-01-10 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217357', 'tblTempUsageDetail_20' ) start [2025-01-10 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217357', 'tblTempUsageDetail_20' ) end [2025-01-10 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:54:25] Production.INFO: ==24609== Releasing lock... [2025-01-10 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:54:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:55:05 [end_date_ymd] => 2025-01-10 13:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:55:05' and `end` < '2025-01-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-01-10 13:55:24] Production.INFO: count ==4188 [2025-01-10 13:55:26] Production.ERROR: pbx CDR StartTime 2025-01-10 10:55:05 - End Time 2025-01-10 13:55:05 [2025-01-10 13:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217362', 'tblTempUsageDetail_20' ) start [2025-01-10 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217362', 'tblTempUsageDetail_20' ) end [2025-01-10 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217362', 'tblTempVendorCDR_20' ) start [2025-01-10 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217362', 'tblTempVendorCDR_20' ) end [2025-01-10 13:55:26] Production.INFO: ProcessCDR(1,14217362,1,1,2) [2025-01-10 13:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217362', 'tblTempUsageDetail_20' ) start [2025-01-10 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217362', 'tblTempUsageDetail_20' ) end [2025-01-10 13:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:55:30] Production.INFO: ==24679== Releasing lock... [2025-01-10 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:55:30] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 13:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:56:04 [end_date_ymd] => 2025-01-10 13:56:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:56:04' and `end` < '2025-01-10 13: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-01-10 13:56:18] Production.INFO: count ==4171 [2025-01-10 13:56:20] Production.ERROR: pbx CDR StartTime 2025-01-10 10:56:04 - End Time 2025-01-10 13:56:04 [2025-01-10 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217367', 'tblTempUsageDetail_20' ) start [2025-01-10 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217367', 'tblTempUsageDetail_20' ) end [2025-01-10 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217367', 'tblTempVendorCDR_20' ) start [2025-01-10 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217367', 'tblTempVendorCDR_20' ) end [2025-01-10 13:56:20] Production.INFO: ProcessCDR(1,14217367,1,1,2) [2025-01-10 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217367', 'tblTempUsageDetail_20' ) start [2025-01-10 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217367', 'tblTempUsageDetail_20' ) end [2025-01-10 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:56:23] Production.INFO: ==24750== Releasing lock... [2025-01-10 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:56:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:57:05 [end_date_ymd] => 2025-01-10 13:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:57:05' and `end` < '2025-01-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-01-10 13:57:19] Production.INFO: count ==4153 [2025-01-10 13:57:21] Production.ERROR: pbx CDR StartTime 2025-01-10 10:57:05 - End Time 2025-01-10 13:57:05 [2025-01-10 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217372', 'tblTempUsageDetail_20' ) start [2025-01-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217372', 'tblTempUsageDetail_20' ) end [2025-01-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217372', 'tblTempVendorCDR_20' ) start [2025-01-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217372', 'tblTempVendorCDR_20' ) end [2025-01-10 13:57:21] Production.INFO: ProcessCDR(1,14217372,1,1,2) [2025-01-10 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217372', 'tblTempUsageDetail_20' ) start [2025-01-10 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217372', 'tblTempUsageDetail_20' ) end [2025-01-10 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:57:25] Production.INFO: ==24822== Releasing lock... [2025-01-10 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:57:25] Production.INFO: 59 MB #Memory Used# [2025-01-10 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:58:04 [end_date_ymd] => 2025-01-10 13:58:04 [RateCDR] => 1 ) [2025-01-10 13: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-01-10 10:58:04' and `end` < '2025-01-10 13: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-01-10 13:58:18] Production.INFO: count ==4150 [2025-01-10 13:58:20] Production.ERROR: pbx CDR StartTime 2025-01-10 10:58:04 - End Time 2025-01-10 13:58:04 [2025-01-10 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217376', 'tblTempUsageDetail_20' ) start [2025-01-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217376', 'tblTempUsageDetail_20' ) end [2025-01-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217376', 'tblTempVendorCDR_20' ) start [2025-01-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217376', 'tblTempVendorCDR_20' ) end [2025-01-10 13:58:20] Production.INFO: ProcessCDR(1,14217376,1,1,2) [2025-01-10 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217376', 'tblTempUsageDetail_20' ) start [2025-01-10 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217376', 'tblTempUsageDetail_20' ) end [2025-01-10 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:58:25] Production.INFO: ==24894== Releasing lock... [2025-01-10 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:58:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 10:59:05 [end_date_ymd] => 2025-01-10 13:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 10:59:05' and `end` < '2025-01-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-01-10 13:59:21] Production.INFO: count ==4132 [2025-01-10 13:59:23] Production.ERROR: pbx CDR StartTime 2025-01-10 10:59:05 - End Time 2025-01-10 13:59:05 [2025-01-10 13:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217382', 'tblTempUsageDetail_20' ) start [2025-01-10 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217382', 'tblTempUsageDetail_20' ) end [2025-01-10 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217382', 'tblTempVendorCDR_20' ) start [2025-01-10 13:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217382', 'tblTempVendorCDR_20' ) end [2025-01-10 13:59:23] Production.INFO: ProcessCDR(1,14217382,1,1,2) [2025-01-10 13:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217382', 'tblTempUsageDetail_20' ) start [2025-01-10 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217382', 'tblTempUsageDetail_20' ) end [2025-01-10 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 13:59:28] Production.INFO: ==24966== Releasing lock... [2025-01-10 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 13:59:28] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:00:06 [end_date_ymd] => 2025-01-10 14:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 11:00:06' and `end` < '2025-01-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-01-10 14:00:31] Production.INFO: count ==4127 [2025-01-10 14:00:32] Production.ERROR: pbx CDR StartTime 2025-01-10 11:00:06 - End Time 2025-01-10 14:00:06 [2025-01-10 14:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217388', 'tblTempUsageDetail_20' ) start [2025-01-10 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217388', 'tblTempUsageDetail_20' ) end [2025-01-10 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217388', 'tblTempVendorCDR_20' ) start [2025-01-10 14:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217388', 'tblTempVendorCDR_20' ) end [2025-01-10 14:00:32] Production.INFO: ProcessCDR(1,14217388,1,1,2) [2025-01-10 14:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217388', 'tblTempUsageDetail_20' ) start [2025-01-10 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217388', 'tblTempUsageDetail_20' ) end [2025-01-10 14:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:00:37] Production.INFO: ==25045== Releasing lock... [2025-01-10 14:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:00:37] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:01:05 [end_date_ymd] => 2025-01-10 14:01:05 [RateCDR] => 1 ) [2025-01-10 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:01:05' and `end` < '2025-01-10 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:01:21] Production.INFO: count ==4177 [2025-01-10 14:01:22] Production.ERROR: pbx CDR StartTime 2025-01-10 11:01:05 - End Time 2025-01-10 14:01:05 [2025-01-10 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217393', 'tblTempUsageDetail_20' ) start [2025-01-10 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217393', 'tblTempUsageDetail_20' ) end [2025-01-10 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217393', 'tblTempVendorCDR_20' ) start [2025-01-10 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217393', 'tblTempVendorCDR_20' ) end [2025-01-10 14:01:23] Production.INFO: ProcessCDR(1,14217393,1,1,2) [2025-01-10 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217393', 'tblTempUsageDetail_20' ) start [2025-01-10 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217393', 'tblTempUsageDetail_20' ) end [2025-01-10 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:01:27] Production.INFO: ==25130== Releasing lock... [2025-01-10 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:01:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:02:05 [end_date_ymd] => 2025-01-10 14:02:05 [RateCDR] => 1 ) [2025-01-10 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:02:05' and `end` < '2025-01-10 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:02:37] Production.INFO: count ==4199 [2025-01-10 14:02:39] Production.ERROR: pbx CDR StartTime 2025-01-10 11:02:05 - End Time 2025-01-10 14:02:05 [2025-01-10 14:02:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217398', 'tblTempUsageDetail_20' ) start [2025-01-10 14:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217398', 'tblTempUsageDetail_20' ) end [2025-01-10 14:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217398', 'tblTempVendorCDR_20' ) start [2025-01-10 14:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217398', 'tblTempVendorCDR_20' ) end [2025-01-10 14:02:39] Production.INFO: ProcessCDR(1,14217398,1,1,2) [2025-01-10 14:02:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:02:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:02:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:02:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217398', 'tblTempUsageDetail_20' ) start [2025-01-10 14:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217398', 'tblTempUsageDetail_20' ) end [2025-01-10 14:02:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:02:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:02:44] Production.INFO: ==25199== Releasing lock... [2025-01-10 14:02:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:02:44] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:03:05 [end_date_ymd] => 2025-01-10 14:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:03:05' and `end` < '2025-01-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-01-10 14:03:33] Production.INFO: count ==4200 [2025-01-10 14:03:35] Production.ERROR: pbx CDR StartTime 2025-01-10 11:03:05 - End Time 2025-01-10 14:03:05 [2025-01-10 14:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217403', 'tblTempUsageDetail_20' ) start [2025-01-10 14:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217403', 'tblTempUsageDetail_20' ) end [2025-01-10 14:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217403', 'tblTempVendorCDR_20' ) start [2025-01-10 14:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217403', 'tblTempVendorCDR_20' ) end [2025-01-10 14:03:35] Production.INFO: ProcessCDR(1,14217403,1,1,2) [2025-01-10 14:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217403', 'tblTempUsageDetail_20' ) start [2025-01-10 14:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217403', 'tblTempUsageDetail_20' ) end [2025-01-10 14:03:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:03:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:03:40] Production.INFO: ==25270== Releasing lock... [2025-01-10 14:03:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:03:40] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:04:05 [end_date_ymd] => 2025-01-10 14:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:04:05' and `end` < '2025-01-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-01-10 14:04:29] Production.INFO: count ==4208 [2025-01-10 14:04:30] Production.ERROR: pbx CDR StartTime 2025-01-10 11:04:05 - End Time 2025-01-10 14:04:05 [2025-01-10 14:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217408', 'tblTempUsageDetail_20' ) start [2025-01-10 14:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217408', 'tblTempUsageDetail_20' ) end [2025-01-10 14:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217408', 'tblTempVendorCDR_20' ) start [2025-01-10 14:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217408', 'tblTempVendorCDR_20' ) end [2025-01-10 14:04:30] Production.INFO: ProcessCDR(1,14217408,1,1,2) [2025-01-10 14:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217408', 'tblTempUsageDetail_20' ) start [2025-01-10 14:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217408', 'tblTempUsageDetail_20' ) end [2025-01-10 14:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:04:36] Production.INFO: ==25381== Releasing lock... [2025-01-10 14:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:04:36] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:05:04 [end_date_ymd] => 2025-01-10 14:05:04 [RateCDR] => 1 ) [2025-01-10 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:05:04' and `end` < '2025-01-10 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:05:24] Production.INFO: count ==4194 [2025-01-10 14:05:25] Production.ERROR: pbx CDR StartTime 2025-01-10 11:05:04 - End Time 2025-01-10 14:05:04 [2025-01-10 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217413', 'tblTempUsageDetail_20' ) start [2025-01-10 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217413', 'tblTempUsageDetail_20' ) end [2025-01-10 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217413', 'tblTempVendorCDR_20' ) start [2025-01-10 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217413', 'tblTempVendorCDR_20' ) end [2025-01-10 14:05:26] Production.INFO: ProcessCDR(1,14217413,1,1,2) [2025-01-10 14:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217413', 'tblTempUsageDetail_20' ) start [2025-01-10 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217413', 'tblTempUsageDetail_20' ) end [2025-01-10 14:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:05:29] Production.INFO: ==25452== Releasing lock... [2025-01-10 14:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:05:29] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:06:05 [end_date_ymd] => 2025-01-10 14:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:06:05' and `end` < '2025-01-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-01-10 14:06:19] Production.INFO: count ==4170 [2025-01-10 14:06:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:06:05 - End Time 2025-01-10 14:06:05 [2025-01-10 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217418', 'tblTempUsageDetail_20' ) start [2025-01-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217418', 'tblTempUsageDetail_20' ) end [2025-01-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217418', 'tblTempVendorCDR_20' ) start [2025-01-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217418', 'tblTempVendorCDR_20' ) end [2025-01-10 14:06:21] Production.INFO: ProcessCDR(1,14217418,1,1,2) [2025-01-10 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217418', 'tblTempUsageDetail_20' ) start [2025-01-10 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217418', 'tblTempUsageDetail_20' ) end [2025-01-10 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:06:24] Production.INFO: ==25524== Releasing lock... [2025-01-10 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:06:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:07:04 [end_date_ymd] => 2025-01-10 14:07:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:07:04' and `end` < '2025-01-10 14: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-01-10 14:07:24] Production.INFO: count ==4152 [2025-01-10 14:07:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:07:04 - End Time 2025-01-10 14:07:04 [2025-01-10 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217423', 'tblTempUsageDetail_20' ) start [2025-01-10 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217423', 'tblTempUsageDetail_20' ) end [2025-01-10 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217423', 'tblTempVendorCDR_20' ) start [2025-01-10 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217423', 'tblTempVendorCDR_20' ) end [2025-01-10 14:07:26] Production.INFO: ProcessCDR(1,14217423,1,1,2) [2025-01-10 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217423', 'tblTempUsageDetail_20' ) start [2025-01-10 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217423', 'tblTempUsageDetail_20' ) end [2025-01-10 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:07:31] Production.INFO: ==25594== Releasing lock... [2025-01-10 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:07:31] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:08:05 [end_date_ymd] => 2025-01-10 14:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:08:05' and `end` < '2025-01-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-01-10 14:08:22] Production.INFO: count ==4132 [2025-01-10 14:08:24] Production.ERROR: pbx CDR StartTime 2025-01-10 11:08:05 - End Time 2025-01-10 14:08:05 [2025-01-10 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217428', 'tblTempUsageDetail_20' ) start [2025-01-10 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217428', 'tblTempUsageDetail_20' ) end [2025-01-10 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217428', 'tblTempVendorCDR_20' ) start [2025-01-10 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217428', 'tblTempVendorCDR_20' ) end [2025-01-10 14:08:24] Production.INFO: ProcessCDR(1,14217428,1,1,2) [2025-01-10 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217428', 'tblTempUsageDetail_20' ) start [2025-01-10 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217428', 'tblTempUsageDetail_20' ) end [2025-01-10 14:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:08:29] Production.INFO: ==25666== Releasing lock... [2025-01-10 14:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:08:29] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:09:05 [end_date_ymd] => 2025-01-10 14:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:09:05' and `end` < '2025-01-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-01-10 14:09:29] Production.INFO: count ==4120 [2025-01-10 14:09:31] Production.ERROR: pbx CDR StartTime 2025-01-10 11:09:05 - End Time 2025-01-10 14:09:05 [2025-01-10 14:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217433', 'tblTempUsageDetail_20' ) start [2025-01-10 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217433', 'tblTempUsageDetail_20' ) end [2025-01-10 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217433', 'tblTempVendorCDR_20' ) start [2025-01-10 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217433', 'tblTempVendorCDR_20' ) end [2025-01-10 14:09:31] Production.INFO: ProcessCDR(1,14217433,1,1,2) [2025-01-10 14:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217433', 'tblTempUsageDetail_20' ) start [2025-01-10 14:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217433', 'tblTempUsageDetail_20' ) end [2025-01-10 14:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:09:36] Production.INFO: ==25736== Releasing lock... [2025-01-10 14:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:09:36] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:10:05 [end_date_ymd] => 2025-01-10 14:10:05 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:10:05' and `end` < '2025-01-10 14: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-01-10 14:10:24] Production.INFO: count ==4143 [2025-01-10 14:10:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:10:05 - End Time 2025-01-10 14:10:05 [2025-01-10 14:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217439', 'tblTempUsageDetail_20' ) start [2025-01-10 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217439', 'tblTempUsageDetail_20' ) end [2025-01-10 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217439', 'tblTempVendorCDR_20' ) start [2025-01-10 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217439', 'tblTempVendorCDR_20' ) end [2025-01-10 14:10:26] Production.INFO: ProcessCDR(1,14217439,1,1,2) [2025-01-10 14:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217439', 'tblTempUsageDetail_20' ) start [2025-01-10 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217439', 'tblTempUsageDetail_20' ) end [2025-01-10 14:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:10:31] Production.INFO: ==25808== Releasing lock... [2025-01-10 14:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:10:31] Production.INFO: 59 MB #Memory Used# [2025-01-10 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:11:05 [end_date_ymd] => 2025-01-10 14:11:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:11:05' and `end` < '2025-01-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-01-10 14:11:24] Production.INFO: count ==4228 [2025-01-10 14:11:25] Production.ERROR: pbx CDR StartTime 2025-01-10 11:11:05 - End Time 2025-01-10 14:11:05 [2025-01-10 14:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217444', 'tblTempUsageDetail_20' ) start [2025-01-10 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217444', 'tblTempUsageDetail_20' ) end [2025-01-10 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217444', 'tblTempVendorCDR_20' ) start [2025-01-10 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217444', 'tblTempVendorCDR_20' ) end [2025-01-10 14:11:26] Production.INFO: ProcessCDR(1,14217444,1,1,2) [2025-01-10 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217444', 'tblTempUsageDetail_20' ) start [2025-01-10 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217444', 'tblTempUsageDetail_20' ) end [2025-01-10 14:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:11:29] Production.INFO: ==25879== Releasing lock... [2025-01-10 14:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:11:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:12:04 [end_date_ymd] => 2025-01-10 14:12:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:12:04' and `end` < '2025-01-10 14: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-01-10 14:12:18] Production.INFO: count ==4207 [2025-01-10 14:12:20] Production.ERROR: pbx CDR StartTime 2025-01-10 11:12:04 - End Time 2025-01-10 14:12:04 [2025-01-10 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217449', 'tblTempUsageDetail_20' ) start [2025-01-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217449', 'tblTempUsageDetail_20' ) end [2025-01-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217449', 'tblTempVendorCDR_20' ) start [2025-01-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217449', 'tblTempVendorCDR_20' ) end [2025-01-10 14:12:20] Production.INFO: ProcessCDR(1,14217449,1,1,2) [2025-01-10 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217449', 'tblTempUsageDetail_20' ) start [2025-01-10 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217449', 'tblTempUsageDetail_20' ) end [2025-01-10 14:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:12:25] Production.INFO: ==25949== Releasing lock... [2025-01-10 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:12:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:13:05 [end_date_ymd] => 2025-01-10 14:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:13:05' and `end` < '2025-01-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-01-10 14:13:31] Production.INFO: count ==4211 [2025-01-10 14:13:33] Production.ERROR: pbx CDR StartTime 2025-01-10 11:13:05 - End Time 2025-01-10 14:13:05 [2025-01-10 14:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217454', 'tblTempUsageDetail_20' ) start [2025-01-10 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217454', 'tblTempUsageDetail_20' ) end [2025-01-10 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217454', 'tblTempVendorCDR_20' ) start [2025-01-10 14:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217454', 'tblTempVendorCDR_20' ) end [2025-01-10 14:13:33] Production.INFO: ProcessCDR(1,14217454,1,1,2) [2025-01-10 14:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:13:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:13:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:13:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217454', 'tblTempUsageDetail_20' ) start [2025-01-10 14:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217454', 'tblTempUsageDetail_20' ) end [2025-01-10 14:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:13:38] Production.INFO: ==26026== Releasing lock... [2025-01-10 14:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:13:38] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:14:05 [end_date_ymd] => 2025-01-10 14:14:05 [RateCDR] => 1 ) [2025-01-10 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:14:05' and `end` < '2025-01-10 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:14:25] Production.INFO: count ==4190 [2025-01-10 14:14:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:14:05 - End Time 2025-01-10 14:14:05 [2025-01-10 14:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217459', 'tblTempUsageDetail_20' ) start [2025-01-10 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217459', 'tblTempUsageDetail_20' ) end [2025-01-10 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217459', 'tblTempVendorCDR_20' ) start [2025-01-10 14:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217459', 'tblTempVendorCDR_20' ) end [2025-01-10 14:14:27] Production.INFO: ProcessCDR(1,14217459,1,1,2) [2025-01-10 14:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217459', 'tblTempUsageDetail_20' ) start [2025-01-10 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217459', 'tblTempUsageDetail_20' ) end [2025-01-10 14:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:14:31] Production.INFO: ==26096== Releasing lock... [2025-01-10 14:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:14:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:15:05 [end_date_ymd] => 2025-01-10 14:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:15:05' and `end` < '2025-01-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-01-10 14:15:19] Production.INFO: count ==4173 [2025-01-10 14:15:20] Production.ERROR: pbx CDR StartTime 2025-01-10 11:15:05 - End Time 2025-01-10 14:15:05 [2025-01-10 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217464', 'tblTempUsageDetail_20' ) start [2025-01-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217464', 'tblTempUsageDetail_20' ) end [2025-01-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217464', 'tblTempVendorCDR_20' ) start [2025-01-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217464', 'tblTempVendorCDR_20' ) end [2025-01-10 14:15:21] Production.INFO: ProcessCDR(1,14217464,1,1,2) [2025-01-10 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217464', 'tblTempUsageDetail_20' ) start [2025-01-10 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217464', 'tblTempUsageDetail_20' ) end [2025-01-10 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:15:25] Production.INFO: ==26167== Releasing lock... [2025-01-10 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:15:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:16:05 [end_date_ymd] => 2025-01-10 14:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:16:05' and `end` < '2025-01-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-01-10 14:16:28] Production.INFO: count ==4183 [2025-01-10 14:16:30] Production.ERROR: pbx CDR StartTime 2025-01-10 11:16:05 - End Time 2025-01-10 14:16:05 [2025-01-10 14:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217469', 'tblTempUsageDetail_20' ) start [2025-01-10 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217469', 'tblTempUsageDetail_20' ) end [2025-01-10 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217469', 'tblTempVendorCDR_20' ) start [2025-01-10 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217469', 'tblTempVendorCDR_20' ) end [2025-01-10 14:16:30] Production.INFO: ProcessCDR(1,14217469,1,1,2) [2025-01-10 14:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217469', 'tblTempUsageDetail_20' ) start [2025-01-10 14:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217469', 'tblTempUsageDetail_20' ) end [2025-01-10 14:16:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:16:35] Production.INFO: ==26239== Releasing lock... [2025-01-10 14:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:16:35] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:17:05 [end_date_ymd] => 2025-01-10 14:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:17:05' and `end` < '2025-01-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-01-10 14:17:24] Production.INFO: count ==4173 [2025-01-10 14:17:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:17:05 - End Time 2025-01-10 14:17:05 [2025-01-10 14:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217474', 'tblTempUsageDetail_20' ) start [2025-01-10 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217474', 'tblTempUsageDetail_20' ) end [2025-01-10 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217474', 'tblTempVendorCDR_20' ) start [2025-01-10 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217474', 'tblTempVendorCDR_20' ) end [2025-01-10 14:17:26] Production.INFO: ProcessCDR(1,14217474,1,1,2) [2025-01-10 14:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217474', 'tblTempUsageDetail_20' ) start [2025-01-10 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217474', 'tblTempUsageDetail_20' ) end [2025-01-10 14:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:17:31] Production.INFO: ==26310== Releasing lock... [2025-01-10 14:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:17:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:18:05 [end_date_ymd] => 2025-01-10 14:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:18:05' and `end` < '2025-01-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-01-10 14:18:26] Production.INFO: count ==4182 [2025-01-10 14:18:27] Production.ERROR: pbx CDR StartTime 2025-01-10 11:18:05 - End Time 2025-01-10 14:18:05 [2025-01-10 14:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217479', 'tblTempUsageDetail_20' ) start [2025-01-10 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217479', 'tblTempUsageDetail_20' ) end [2025-01-10 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217479', 'tblTempVendorCDR_20' ) start [2025-01-10 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217479', 'tblTempVendorCDR_20' ) end [2025-01-10 14:18:27] Production.INFO: ProcessCDR(1,14217479,1,1,2) [2025-01-10 14:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217479', 'tblTempUsageDetail_20' ) start [2025-01-10 14:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217479', 'tblTempUsageDetail_20' ) end [2025-01-10 14:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:18:32] Production.INFO: ==26380== Releasing lock... [2025-01-10 14:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:18:32] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:19:05 [end_date_ymd] => 2025-01-10 14:19:05 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:19:05' and `end` < '2025-01-10 14: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-01-10 14:19:23] Production.INFO: count ==4188 [2025-01-10 14:19:25] Production.ERROR: pbx CDR StartTime 2025-01-10 11:19:05 - End Time 2025-01-10 14:19:05 [2025-01-10 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217484', 'tblTempUsageDetail_20' ) start [2025-01-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217484', 'tblTempUsageDetail_20' ) end [2025-01-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217484', 'tblTempVendorCDR_20' ) start [2025-01-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217484', 'tblTempVendorCDR_20' ) end [2025-01-10 14:19:25] Production.INFO: ProcessCDR(1,14217484,1,1,2) [2025-01-10 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217484', 'tblTempUsageDetail_20' ) start [2025-01-10 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217484', 'tblTempUsageDetail_20' ) end [2025-01-10 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:19:30] Production.INFO: ==26451== Releasing lock... [2025-01-10 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:19:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:20:05 [end_date_ymd] => 2025-01-10 14:20:05 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:20:05' and `end` < '2025-01-10 14: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-01-10 14:20:26] Production.INFO: count ==4197 [2025-01-10 14:20:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:20:05 - End Time 2025-01-10 14:20:05 [2025-01-10 14:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217490', 'tblTempUsageDetail_20' ) start [2025-01-10 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217490', 'tblTempUsageDetail_20' ) end [2025-01-10 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217490', 'tblTempVendorCDR_20' ) start [2025-01-10 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217490', 'tblTempVendorCDR_20' ) end [2025-01-10 14:20:28] Production.INFO: ProcessCDR(1,14217490,1,1,2) [2025-01-10 14:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217490', 'tblTempUsageDetail_20' ) start [2025-01-10 14:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217490', 'tblTempUsageDetail_20' ) end [2025-01-10 14:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:20:33] Production.INFO: ==26566== Releasing lock... [2025-01-10 14:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:20:33] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:21:05 [end_date_ymd] => 2025-01-10 14:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:21:05' and `end` < '2025-01-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-01-10 14:21:22] Production.INFO: count ==4267 [2025-01-10 14:21:24] Production.ERROR: pbx CDR StartTime 2025-01-10 11:21:05 - End Time 2025-01-10 14:21:05 [2025-01-10 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217495', 'tblTempUsageDetail_20' ) start [2025-01-10 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217495', 'tblTempUsageDetail_20' ) end [2025-01-10 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217495', 'tblTempVendorCDR_20' ) start [2025-01-10 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217495', 'tblTempVendorCDR_20' ) end [2025-01-10 14:21:24] Production.INFO: ProcessCDR(1,14217495,1,1,2) [2025-01-10 14:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217495', 'tblTempUsageDetail_20' ) start [2025-01-10 14:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217495', 'tblTempUsageDetail_20' ) end [2025-01-10 14:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:21:29] Production.INFO: ==26639== Releasing lock... [2025-01-10 14:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:21:29] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:22:04 [end_date_ymd] => 2025-01-10 14:22:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:22:04' and `end` < '2025-01-10 14: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-01-10 14:22:18] Production.INFO: count ==4253 [2025-01-10 14:22:20] Production.ERROR: pbx CDR StartTime 2025-01-10 11:22:04 - End Time 2025-01-10 14:22:04 [2025-01-10 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217500', 'tblTempUsageDetail_20' ) start [2025-01-10 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217500', 'tblTempUsageDetail_20' ) end [2025-01-10 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217500', 'tblTempVendorCDR_20' ) start [2025-01-10 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217500', 'tblTempVendorCDR_20' ) end [2025-01-10 14:22:20] Production.INFO: ProcessCDR(1,14217500,1,1,2) [2025-01-10 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217500', 'tblTempUsageDetail_20' ) start [2025-01-10 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217500', 'tblTempUsageDetail_20' ) end [2025-01-10 14:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:22:24] Production.INFO: ==26707== Releasing lock... [2025-01-10 14:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:22:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:23:05 [end_date_ymd] => 2025-01-10 14:23:05 [RateCDR] => 1 ) [2025-01-10 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:23:05' and `end` < '2025-01-10 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:23:20] Production.INFO: count ==4265 [2025-01-10 14:23:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:23:05 - End Time 2025-01-10 14:23:05 [2025-01-10 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217505', 'tblTempUsageDetail_20' ) start [2025-01-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217505', 'tblTempUsageDetail_20' ) end [2025-01-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217505', 'tblTempVendorCDR_20' ) start [2025-01-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217505', 'tblTempVendorCDR_20' ) end [2025-01-10 14:23:22] Production.INFO: ProcessCDR(1,14217505,1,1,2) [2025-01-10 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217505', 'tblTempUsageDetail_20' ) start [2025-01-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217505', 'tblTempUsageDetail_20' ) end [2025-01-10 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:23:26] Production.INFO: ==26779== Releasing lock... [2025-01-10 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:23:26] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:24:05 [end_date_ymd] => 2025-01-10 14:24:05 [RateCDR] => 1 ) [2025-01-10 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:24:05' and `end` < '2025-01-10 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:24:36] Production.INFO: count ==4276 [2025-01-10 14:24:38] Production.ERROR: pbx CDR StartTime 2025-01-10 11:24:05 - End Time 2025-01-10 14:24:05 [2025-01-10 14:24:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217510', 'tblTempUsageDetail_20' ) start [2025-01-10 14:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217510', 'tblTempUsageDetail_20' ) end [2025-01-10 14:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217510', 'tblTempVendorCDR_20' ) start [2025-01-10 14:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217510', 'tblTempVendorCDR_20' ) end [2025-01-10 14:24:38] Production.INFO: ProcessCDR(1,14217510,1,1,2) [2025-01-10 14:24:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:24:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:24:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:24:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217510', 'tblTempUsageDetail_20' ) start [2025-01-10 14:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217510', 'tblTempUsageDetail_20' ) end [2025-01-10 14:24:43] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:24:43] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:24:43] Production.INFO: ==26851== Releasing lock... [2025-01-10 14:24:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:24:43] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:25:05 [end_date_ymd] => 2025-01-10 14:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:25:05' and `end` < '2025-01-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-01-10 14:25:26] Production.INFO: count ==4274 [2025-01-10 14:25:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:25:05 - End Time 2025-01-10 14:25:05 [2025-01-10 14:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217515', 'tblTempUsageDetail_20' ) start [2025-01-10 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217515', 'tblTempUsageDetail_20' ) end [2025-01-10 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217515', 'tblTempVendorCDR_20' ) start [2025-01-10 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217515', 'tblTempVendorCDR_20' ) end [2025-01-10 14:25:28] Production.INFO: ProcessCDR(1,14217515,1,1,2) [2025-01-10 14:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217515', 'tblTempUsageDetail_20' ) start [2025-01-10 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217515', 'tblTempUsageDetail_20' ) end [2025-01-10 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:25:32] Production.INFO: ==26921== Releasing lock... [2025-01-10 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:25:32] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:26:05 [end_date_ymd] => 2025-01-10 14:26:05 [RateCDR] => 1 ) [2025-01-10 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:26:05' and `end` < '2025-01-10 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:26:19] Production.INFO: count ==4238 [2025-01-10 14:26:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:26:05 - End Time 2025-01-10 14:26:05 [2025-01-10 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217520', 'tblTempUsageDetail_20' ) start [2025-01-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217520', 'tblTempUsageDetail_20' ) end [2025-01-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217520', 'tblTempVendorCDR_20' ) start [2025-01-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217520', 'tblTempVendorCDR_20' ) end [2025-01-10 14:26:21] Production.INFO: ProcessCDR(1,14217520,1,1,2) [2025-01-10 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217520', 'tblTempUsageDetail_20' ) start [2025-01-10 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217520', 'tblTempUsageDetail_20' ) end [2025-01-10 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:26:26] Production.INFO: ==26996== Releasing lock... [2025-01-10 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:26:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:27:05 [end_date_ymd] => 2025-01-10 14:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:27:05' and `end` < '2025-01-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-01-10 14:27:19] Production.INFO: count ==4257 [2025-01-10 14:27:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:27:05 - End Time 2025-01-10 14:27:05 [2025-01-10 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217525', 'tblTempUsageDetail_20' ) start [2025-01-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217525', 'tblTempUsageDetail_20' ) end [2025-01-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217525', 'tblTempVendorCDR_20' ) start [2025-01-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217525', 'tblTempVendorCDR_20' ) end [2025-01-10 14:27:21] Production.INFO: ProcessCDR(1,14217525,1,1,2) [2025-01-10 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217525', 'tblTempUsageDetail_20' ) start [2025-01-10 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217525', 'tblTempUsageDetail_20' ) end [2025-01-10 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:27:27] Production.INFO: ==27072== Releasing lock... [2025-01-10 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:27:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:28:05 [end_date_ymd] => 2025-01-10 14:28:05 [RateCDR] => 1 ) [2025-01-10 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:28:05' and `end` < '2025-01-10 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:28:24] Production.INFO: count ==4254 [2025-01-10 14:28:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:28:05 - End Time 2025-01-10 14:28:05 [2025-01-10 14:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217530', 'tblTempUsageDetail_20' ) start [2025-01-10 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217530', 'tblTempUsageDetail_20' ) end [2025-01-10 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217530', 'tblTempVendorCDR_20' ) start [2025-01-10 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217530', 'tblTempVendorCDR_20' ) end [2025-01-10 14:28:26] Production.INFO: ProcessCDR(1,14217530,1,1,2) [2025-01-10 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217530', 'tblTempUsageDetail_20' ) start [2025-01-10 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217530', 'tblTempUsageDetail_20' ) end [2025-01-10 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:28:31] Production.INFO: ==27143== Releasing lock... [2025-01-10 14:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:28:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:29:04 [end_date_ymd] => 2025-01-10 14:29:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:29:04' and `end` < '2025-01-10 14: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-01-10 14:29:26] Production.INFO: count ==4263 [2025-01-10 14:29:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:29:04 - End Time 2025-01-10 14:29:04 [2025-01-10 14:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217535', 'tblTempUsageDetail_20' ) start [2025-01-10 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217535', 'tblTempUsageDetail_20' ) end [2025-01-10 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217535', 'tblTempVendorCDR_20' ) start [2025-01-10 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217535', 'tblTempVendorCDR_20' ) end [2025-01-10 14:29:28] Production.INFO: ProcessCDR(1,14217535,1,1,2) [2025-01-10 14:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217535', 'tblTempUsageDetail_20' ) start [2025-01-10 14:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217535', 'tblTempUsageDetail_20' ) end [2025-01-10 14:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:29:32] Production.INFO: ==27213== Releasing lock... [2025-01-10 14:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:29:32] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:30:06 [end_date_ymd] => 2025-01-10 14:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 11:30:06' and `end` < '2025-01-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-01-10 14:30:27] Production.INFO: count ==4262 [2025-01-10 14:30:29] Production.ERROR: pbx CDR StartTime 2025-01-10 11:30:06 - End Time 2025-01-10 14:30:06 [2025-01-10 14:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217541', 'tblTempUsageDetail_20' ) start [2025-01-10 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217541', 'tblTempUsageDetail_20' ) end [2025-01-10 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217541', 'tblTempVendorCDR_20' ) start [2025-01-10 14:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217541', 'tblTempVendorCDR_20' ) end [2025-01-10 14:30:29] Production.INFO: ProcessCDR(1,14217541,1,1,2) [2025-01-10 14:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217541', 'tblTempUsageDetail_20' ) start [2025-01-10 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217541', 'tblTempUsageDetail_20' ) end [2025-01-10 14:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:30:34] Production.INFO: ==27286== Releasing lock... [2025-01-10 14:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:30:34] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:31:04 [end_date_ymd] => 2025-01-10 14:31:04 [RateCDR] => 1 ) [2025-01-10 14:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:31:04' and `end` < '2025-01-10 14:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:31:22] Production.INFO: count ==4360 [2025-01-10 14:31:24] Production.ERROR: pbx CDR StartTime 2025-01-10 11:31:04 - End Time 2025-01-10 14:31:04 [2025-01-10 14:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217546', 'tblTempUsageDetail_20' ) start [2025-01-10 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217546', 'tblTempUsageDetail_20' ) end [2025-01-10 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217546', 'tblTempVendorCDR_20' ) start [2025-01-10 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217546', 'tblTempVendorCDR_20' ) end [2025-01-10 14:31:24] Production.INFO: ProcessCDR(1,14217546,1,1,2) [2025-01-10 14:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217546', 'tblTempUsageDetail_20' ) start [2025-01-10 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217546', 'tblTempUsageDetail_20' ) end [2025-01-10 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:31:27] Production.INFO: ==27380== Releasing lock... [2025-01-10 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:31:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:32:05 [end_date_ymd] => 2025-01-10 14:32:05 [RateCDR] => 1 ) [2025-01-10 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:32:05' and `end` < '2025-01-10 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:32:24] Production.INFO: count ==4359 [2025-01-10 14:32:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:32:05 - End Time 2025-01-10 14:32:05 [2025-01-10 14:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217551', 'tblTempUsageDetail_20' ) start [2025-01-10 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217551', 'tblTempUsageDetail_20' ) end [2025-01-10 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217551', 'tblTempVendorCDR_20' ) start [2025-01-10 14:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217551', 'tblTempVendorCDR_20' ) end [2025-01-10 14:32:26] Production.INFO: ProcessCDR(1,14217551,1,1,2) [2025-01-10 14:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217551', 'tblTempUsageDetail_20' ) start [2025-01-10 14:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217551', 'tblTempUsageDetail_20' ) end [2025-01-10 14:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:32:31] Production.INFO: ==27452== Releasing lock... [2025-01-10 14:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:32:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:33:05 [end_date_ymd] => 2025-01-10 14:33:05 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:33:05' and `end` < '2025-01-10 14: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-01-10 14:33:19] Production.INFO: count ==4320 [2025-01-10 14:33:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:33:05 - End Time 2025-01-10 14:33:05 [2025-01-10 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217556', 'tblTempUsageDetail_20' ) start [2025-01-10 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217556', 'tblTempUsageDetail_20' ) end [2025-01-10 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217556', 'tblTempVendorCDR_20' ) start [2025-01-10 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217556', 'tblTempVendorCDR_20' ) end [2025-01-10 14:33:21] Production.INFO: ProcessCDR(1,14217556,1,1,2) [2025-01-10 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217556', 'tblTempUsageDetail_20' ) start [2025-01-10 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217556', 'tblTempUsageDetail_20' ) end [2025-01-10 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:33:26] Production.INFO: ==27527== Releasing lock... [2025-01-10 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:33:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:34:05 [end_date_ymd] => 2025-01-10 14:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:34:05' and `end` < '2025-01-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-01-10 14:34:22] Production.INFO: count ==4282 [2025-01-10 14:34:24] Production.ERROR: pbx CDR StartTime 2025-01-10 11:34:05 - End Time 2025-01-10 14:34:05 [2025-01-10 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217561', 'tblTempUsageDetail_20' ) start [2025-01-10 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217561', 'tblTempUsageDetail_20' ) end [2025-01-10 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217561', 'tblTempVendorCDR_20' ) start [2025-01-10 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217561', 'tblTempVendorCDR_20' ) end [2025-01-10 14:34:24] Production.INFO: ProcessCDR(1,14217561,1,1,2) [2025-01-10 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217561', 'tblTempUsageDetail_20' ) start [2025-01-10 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217561', 'tblTempUsageDetail_20' ) end [2025-01-10 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:34:29] Production.INFO: ==27599== Releasing lock... [2025-01-10 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:34:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:35:05 [end_date_ymd] => 2025-01-10 14:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:35:05' and `end` < '2025-01-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-01-10 14:35:24] Production.INFO: count ==4261 [2025-01-10 14:35:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:35:05 - End Time 2025-01-10 14:35:05 [2025-01-10 14:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217566', 'tblTempUsageDetail_20' ) start [2025-01-10 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217566', 'tblTempUsageDetail_20' ) end [2025-01-10 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217566', 'tblTempVendorCDR_20' ) start [2025-01-10 14:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217566', 'tblTempVendorCDR_20' ) end [2025-01-10 14:35:26] Production.INFO: ProcessCDR(1,14217566,1,1,2) [2025-01-10 14:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217566', 'tblTempUsageDetail_20' ) start [2025-01-10 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217566', 'tblTempUsageDetail_20' ) end [2025-01-10 14:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:35:30] Production.INFO: ==27720== Releasing lock... [2025-01-10 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:35:30] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:36:05 [end_date_ymd] => 2025-01-10 14:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:36:05' and `end` < '2025-01-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-01-10 14:36:27] Production.INFO: count ==4239 [2025-01-10 14:36:29] Production.ERROR: pbx CDR StartTime 2025-01-10 11:36:05 - End Time 2025-01-10 14:36:05 [2025-01-10 14:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217571', 'tblTempUsageDetail_20' ) start [2025-01-10 14:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217571', 'tblTempUsageDetail_20' ) end [2025-01-10 14:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217571', 'tblTempVendorCDR_20' ) start [2025-01-10 14:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217571', 'tblTempVendorCDR_20' ) end [2025-01-10 14:36:29] Production.INFO: ProcessCDR(1,14217571,1,1,2) [2025-01-10 14:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217571', 'tblTempUsageDetail_20' ) start [2025-01-10 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217571', 'tblTempUsageDetail_20' ) end [2025-01-10 14:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:36:32] Production.INFO: ==27792== Releasing lock... [2025-01-10 14:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:36:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:37:05 [end_date_ymd] => 2025-01-10 14:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:37:05' and `end` < '2025-01-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-01-10 14:37:26] Production.INFO: count ==4222 [2025-01-10 14:37:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:37:05 - End Time 2025-01-10 14:37:05 [2025-01-10 14:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217576', 'tblTempUsageDetail_20' ) start [2025-01-10 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217576', 'tblTempUsageDetail_20' ) end [2025-01-10 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217576', 'tblTempVendorCDR_20' ) start [2025-01-10 14:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217576', 'tblTempVendorCDR_20' ) end [2025-01-10 14:37:28] Production.INFO: ProcessCDR(1,14217576,1,1,2) [2025-01-10 14:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217576', 'tblTempUsageDetail_20' ) start [2025-01-10 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217576', 'tblTempUsageDetail_20' ) end [2025-01-10 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:37:31] Production.INFO: ==27863== Releasing lock... [2025-01-10 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:37:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:38:05 [end_date_ymd] => 2025-01-10 14:38:05 [RateCDR] => 1 ) [2025-01-10 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:38:05' and `end` < '2025-01-10 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:38:22] Production.INFO: count ==4215 [2025-01-10 14:38:23] Production.ERROR: pbx CDR StartTime 2025-01-10 11:38:05 - End Time 2025-01-10 14:38:05 [2025-01-10 14:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217581', 'tblTempUsageDetail_20' ) start [2025-01-10 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217581', 'tblTempUsageDetail_20' ) end [2025-01-10 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217581', 'tblTempVendorCDR_20' ) start [2025-01-10 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217581', 'tblTempVendorCDR_20' ) end [2025-01-10 14:38:24] Production.INFO: ProcessCDR(1,14217581,1,1,2) [2025-01-10 14:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217581', 'tblTempUsageDetail_20' ) start [2025-01-10 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217581', 'tblTempUsageDetail_20' ) end [2025-01-10 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:38:28] Production.INFO: ==27934== Releasing lock... [2025-01-10 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:38:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:39:05 [end_date_ymd] => 2025-01-10 14:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:39:05' and `end` < '2025-01-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-01-10 14:39:29] Production.INFO: count ==4203 [2025-01-10 14:39:31] Production.ERROR: pbx CDR StartTime 2025-01-10 11:39:05 - End Time 2025-01-10 14:39:05 [2025-01-10 14:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217586', 'tblTempUsageDetail_20' ) start [2025-01-10 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217586', 'tblTempUsageDetail_20' ) end [2025-01-10 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217586', 'tblTempVendorCDR_20' ) start [2025-01-10 14:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217586', 'tblTempVendorCDR_20' ) end [2025-01-10 14:39:31] Production.INFO: ProcessCDR(1,14217586,1,1,2) [2025-01-10 14:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217586', 'tblTempUsageDetail_20' ) start [2025-01-10 14:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217586', 'tblTempUsageDetail_20' ) end [2025-01-10 14:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:39:36] Production.INFO: ==28009== Releasing lock... [2025-01-10 14:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:39:36] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:40:05 [end_date_ymd] => 2025-01-10 14:40:05 [RateCDR] => 1 ) [2025-01-10 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:40:05' and `end` < '2025-01-10 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:40:28] Production.INFO: count ==4215 [2025-01-10 14:40:29] Production.ERROR: pbx CDR StartTime 2025-01-10 11:40:05 - End Time 2025-01-10 14:40:05 [2025-01-10 14:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217592', 'tblTempUsageDetail_20' ) start [2025-01-10 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217592', 'tblTempUsageDetail_20' ) end [2025-01-10 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217592', 'tblTempVendorCDR_20' ) start [2025-01-10 14:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217592', 'tblTempVendorCDR_20' ) end [2025-01-10 14:40:30] Production.INFO: ProcessCDR(1,14217592,1,1,2) [2025-01-10 14:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217592', 'tblTempUsageDetail_20' ) start [2025-01-10 14:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217592', 'tblTempUsageDetail_20' ) end [2025-01-10 14:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:40:34] Production.INFO: ==28087== Releasing lock... [2025-01-10 14:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:40:34] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:41:05 [end_date_ymd] => 2025-01-10 14:41:05 [RateCDR] => 1 ) [2025-01-10 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:41:05' and `end` < '2025-01-10 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:41:25] Production.INFO: count ==4282 [2025-01-10 14:41:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:41:05 - End Time 2025-01-10 14:41:05 [2025-01-10 14:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217597', 'tblTempUsageDetail_20' ) start [2025-01-10 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217597', 'tblTempUsageDetail_20' ) end [2025-01-10 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217597', 'tblTempVendorCDR_20' ) start [2025-01-10 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217597', 'tblTempVendorCDR_20' ) end [2025-01-10 14:41:27] Production.INFO: ProcessCDR(1,14217597,1,1,2) [2025-01-10 14:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217597', 'tblTempUsageDetail_20' ) start [2025-01-10 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217597', 'tblTempUsageDetail_20' ) end [2025-01-10 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:41:31] Production.INFO: ==28160== Releasing lock... [2025-01-10 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:41:31] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:42:05 [end_date_ymd] => 2025-01-10 14:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:42:05' and `end` < '2025-01-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-01-10 14:42:19] Production.INFO: count ==4279 [2025-01-10 14:42:20] Production.ERROR: pbx CDR StartTime 2025-01-10 11:42:05 - End Time 2025-01-10 14:42:05 [2025-01-10 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217602', 'tblTempUsageDetail_20' ) start [2025-01-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217602', 'tblTempUsageDetail_20' ) end [2025-01-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217602', 'tblTempVendorCDR_20' ) start [2025-01-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217602', 'tblTempVendorCDR_20' ) end [2025-01-10 14:42:21] Production.INFO: ProcessCDR(1,14217602,1,1,2) [2025-01-10 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217602', 'tblTempUsageDetail_20' ) start [2025-01-10 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217602', 'tblTempUsageDetail_20' ) end [2025-01-10 14:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:42:25] Production.INFO: ==28229== Releasing lock... [2025-01-10 14:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:42:25] Production.INFO: 60 MB #Memory Used# [2025-01-10 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:43:05 [end_date_ymd] => 2025-01-10 14:43:05 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:43:05' and `end` < '2025-01-10 14: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-01-10 14:43:24] Production.INFO: count ==4301 [2025-01-10 14:43:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:43:05 - End Time 2025-01-10 14:43:05 [2025-01-10 14:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217607', 'tblTempUsageDetail_20' ) start [2025-01-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217607', 'tblTempUsageDetail_20' ) end [2025-01-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217607', 'tblTempVendorCDR_20' ) start [2025-01-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217607', 'tblTempVendorCDR_20' ) end [2025-01-10 14:43:26] Production.INFO: ProcessCDR(1,14217607,1,1,2) [2025-01-10 14:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217607', 'tblTempUsageDetail_20' ) start [2025-01-10 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217607', 'tblTempUsageDetail_20' ) end [2025-01-10 14:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:43:31] Production.INFO: ==28299== Releasing lock... [2025-01-10 14:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:43:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:44:04 [end_date_ymd] => 2025-01-10 14:44:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:44:04' and `end` < '2025-01-10 14: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-01-10 14:44:21] Production.INFO: count ==4308 [2025-01-10 14:44:22] Production.ERROR: pbx CDR StartTime 2025-01-10 11:44:04 - End Time 2025-01-10 14:44:04 [2025-01-10 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217612', 'tblTempUsageDetail_20' ) start [2025-01-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217612', 'tblTempUsageDetail_20' ) end [2025-01-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217612', 'tblTempVendorCDR_20' ) start [2025-01-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217612', 'tblTempVendorCDR_20' ) end [2025-01-10 14:44:22] Production.INFO: ProcessCDR(1,14217612,1,1,2) [2025-01-10 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217612', 'tblTempUsageDetail_20' ) start [2025-01-10 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217612', 'tblTempUsageDetail_20' ) end [2025-01-10 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:44:27] Production.INFO: ==28372== Releasing lock... [2025-01-10 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:44:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:45:05 [end_date_ymd] => 2025-01-10 14:45:05 [RateCDR] => 1 ) [2025-01-10 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:45:05' and `end` < '2025-01-10 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:45:26] Production.INFO: count ==4321 [2025-01-10 14:45:27] Production.ERROR: pbx CDR StartTime 2025-01-10 11:45:05 - End Time 2025-01-10 14:45:05 [2025-01-10 14:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217617', 'tblTempUsageDetail_20' ) start [2025-01-10 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217617', 'tblTempUsageDetail_20' ) end [2025-01-10 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217617', 'tblTempVendorCDR_20' ) start [2025-01-10 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217617', 'tblTempVendorCDR_20' ) end [2025-01-10 14:45:27] Production.INFO: ProcessCDR(1,14217617,1,1,2) [2025-01-10 14:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217617', 'tblTempUsageDetail_20' ) start [2025-01-10 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217617', 'tblTempUsageDetail_20' ) end [2025-01-10 14:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:45:32] Production.INFO: ==28442== Releasing lock... [2025-01-10 14:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:45:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:46:05 [end_date_ymd] => 2025-01-10 14:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:46:05' and `end` < '2025-01-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-01-10 14:46:19] Production.INFO: count ==4314 [2025-01-10 14:46:21] Production.ERROR: pbx CDR StartTime 2025-01-10 11:46:05 - End Time 2025-01-10 14:46:05 [2025-01-10 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217622', 'tblTempUsageDetail_20' ) start [2025-01-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217622', 'tblTempUsageDetail_20' ) end [2025-01-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217622', 'tblTempVendorCDR_20' ) start [2025-01-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217622', 'tblTempVendorCDR_20' ) end [2025-01-10 14:46:21] Production.INFO: ProcessCDR(1,14217622,1,1,2) [2025-01-10 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217622', 'tblTempUsageDetail_20' ) start [2025-01-10 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217622', 'tblTempUsageDetail_20' ) end [2025-01-10 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:46:25] Production.INFO: ==28513== Releasing lock... [2025-01-10 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:46:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:47:05 [end_date_ymd] => 2025-01-10 14:47:05 [RateCDR] => 1 ) [2025-01-10 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:47:05' and `end` < '2025-01-10 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:47:21] Production.INFO: count ==4316 [2025-01-10 14:47:23] Production.ERROR: pbx CDR StartTime 2025-01-10 11:47:05 - End Time 2025-01-10 14:47:05 [2025-01-10 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217627', 'tblTempUsageDetail_20' ) start [2025-01-10 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217627', 'tblTempUsageDetail_20' ) end [2025-01-10 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217627', 'tblTempVendorCDR_20' ) start [2025-01-10 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217627', 'tblTempVendorCDR_20' ) end [2025-01-10 14:47:23] Production.INFO: ProcessCDR(1,14217627,1,1,2) [2025-01-10 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217627', 'tblTempUsageDetail_20' ) start [2025-01-10 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217627', 'tblTempUsageDetail_20' ) end [2025-01-10 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:47:27] Production.INFO: ==28586== Releasing lock... [2025-01-10 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:47:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:48:05 [end_date_ymd] => 2025-01-10 14:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:48:05' and `end` < '2025-01-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-01-10 14:48:21] Production.INFO: count ==4331 [2025-01-10 14:48:23] Production.ERROR: pbx CDR StartTime 2025-01-10 11:48:05 - End Time 2025-01-10 14:48:05 [2025-01-10 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217632', 'tblTempUsageDetail_20' ) start [2025-01-10 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217632', 'tblTempUsageDetail_20' ) end [2025-01-10 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217632', 'tblTempVendorCDR_20' ) start [2025-01-10 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217632', 'tblTempVendorCDR_20' ) end [2025-01-10 14:48:23] Production.INFO: ProcessCDR(1,14217632,1,1,2) [2025-01-10 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217632', 'tblTempUsageDetail_20' ) start [2025-01-10 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217632', 'tblTempUsageDetail_20' ) end [2025-01-10 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:48:28] Production.INFO: ==28658== Releasing lock... [2025-01-10 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:48:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:49:05 [end_date_ymd] => 2025-01-10 14:49:05 [RateCDR] => 1 ) [2025-01-10 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:49:05' and `end` < '2025-01-10 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:49:23] Production.INFO: count ==4342 [2025-01-10 14:49:25] Production.ERROR: pbx CDR StartTime 2025-01-10 11:49:05 - End Time 2025-01-10 14:49:05 [2025-01-10 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217637', 'tblTempUsageDetail_20' ) start [2025-01-10 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217637', 'tblTempUsageDetail_20' ) end [2025-01-10 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217637', 'tblTempVendorCDR_20' ) start [2025-01-10 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217637', 'tblTempVendorCDR_20' ) end [2025-01-10 14:49:25] Production.INFO: ProcessCDR(1,14217637,1,1,2) [2025-01-10 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217637', 'tblTempUsageDetail_20' ) start [2025-01-10 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217637', 'tblTempUsageDetail_20' ) end [2025-01-10 14:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:49:30] Production.INFO: ==28729== Releasing lock... [2025-01-10 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:49:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:50:05 [end_date_ymd] => 2025-01-10 14:50:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:50:05' and `end` < '2025-01-10 14: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-01-10 14:50:33] Production.INFO: count ==4385 [2025-01-10 14:50:35] Production.ERROR: pbx CDR StartTime 2025-01-10 11:50:05 - End Time 2025-01-10 14:50:05 [2025-01-10 14:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217642', 'tblTempUsageDetail_20' ) start [2025-01-10 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217642', 'tblTempUsageDetail_20' ) end [2025-01-10 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217642', 'tblTempVendorCDR_20' ) start [2025-01-10 14:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217642', 'tblTempVendorCDR_20' ) end [2025-01-10 14:50:35] Production.INFO: ProcessCDR(1,14217642,1,1,2) [2025-01-10 14:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217642', 'tblTempUsageDetail_20' ) start [2025-01-10 14:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217642', 'tblTempUsageDetail_20' ) end [2025-01-10 14:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:50:40] Production.INFO: ==28803== Releasing lock... [2025-01-10 14:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:50:40] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:51:04 [end_date_ymd] => 2025-01-10 14:51:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:51:04' and `end` < '2025-01-10 14: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-01-10 14:51:29] Production.INFO: count ==3057 [2025-01-10 14:51:31] Production.ERROR: pbx CDR StartTime 2025-01-10 11:51:04 - End Time 2025-01-10 14:51:04 [2025-01-10 14:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217648', 'tblTempUsageDetail_20' ) start [2025-01-10 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217648', 'tblTempUsageDetail_20' ) end [2025-01-10 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217648', 'tblTempVendorCDR_20' ) start [2025-01-10 14:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217648', 'tblTempVendorCDR_20' ) end [2025-01-10 14:51:31] Production.INFO: ProcessCDR(1,14217648,1,1,2) [2025-01-10 14:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217648', 'tblTempUsageDetail_20' ) start [2025-01-10 14:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217648', 'tblTempUsageDetail_20' ) end [2025-01-10 14:51:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:51:36] Production.INFO: ==28914== Releasing lock... [2025-01-10 14:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:51:36] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:52:05 [end_date_ymd] => 2025-01-10 14:52:05 [RateCDR] => 1 ) [2025-01-10 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:52:05' and `end` < '2025-01-10 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:52:24] Production.INFO: count ==3059 [2025-01-10 14:52:26] Production.ERROR: pbx CDR StartTime 2025-01-10 11:52:05 - End Time 2025-01-10 14:52:05 [2025-01-10 14:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217653', 'tblTempUsageDetail_20' ) start [2025-01-10 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217653', 'tblTempUsageDetail_20' ) end [2025-01-10 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217653', 'tblTempVendorCDR_20' ) start [2025-01-10 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217653', 'tblTempVendorCDR_20' ) end [2025-01-10 14:52:26] Production.INFO: ProcessCDR(1,14217653,1,1,2) [2025-01-10 14:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217653', 'tblTempUsageDetail_20' ) start [2025-01-10 14:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217653', 'tblTempUsageDetail_20' ) end [2025-01-10 14:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:52:31] Production.INFO: ==28989== Releasing lock... [2025-01-10 14:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:52:31] Production.INFO: 51 MB #Memory Used# [2025-01-10 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:53:04 [end_date_ymd] => 2025-01-10 14:53:04 [RateCDR] => 1 ) [2025-01-10 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:53:04' and `end` < '2025-01-10 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:53:23] Production.INFO: count ==3049 [2025-01-10 14:53:25] Production.ERROR: pbx CDR StartTime 2025-01-10 11:53:04 - End Time 2025-01-10 14:53:04 [2025-01-10 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217658', 'tblTempUsageDetail_20' ) start [2025-01-10 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217658', 'tblTempUsageDetail_20' ) end [2025-01-10 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217658', 'tblTempVendorCDR_20' ) start [2025-01-10 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217658', 'tblTempVendorCDR_20' ) end [2025-01-10 14:53:25] Production.INFO: ProcessCDR(1,14217658,1,1,2) [2025-01-10 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217658', 'tblTempUsageDetail_20' ) start [2025-01-10 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217658', 'tblTempUsageDetail_20' ) end [2025-01-10 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:53:30] Production.INFO: ==29064== Releasing lock... [2025-01-10 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:53:30] Production.INFO: 51.25 MB #Memory Used# [2025-01-10 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:54:05 [end_date_ymd] => 2025-01-10 14:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:54:05' and `end` < '2025-01-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-01-10 14:54:22] Production.INFO: count ==3058 [2025-01-10 14:54:24] Production.ERROR: pbx CDR StartTime 2025-01-10 11:54:05 - End Time 2025-01-10 14:54:05 [2025-01-10 14:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217663', 'tblTempUsageDetail_20' ) start [2025-01-10 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217663', 'tblTempUsageDetail_20' ) end [2025-01-10 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217663', 'tblTempVendorCDR_20' ) start [2025-01-10 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217663', 'tblTempVendorCDR_20' ) end [2025-01-10 14:54:24] Production.INFO: ProcessCDR(1,14217663,1,1,2) [2025-01-10 14:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217663', 'tblTempUsageDetail_20' ) start [2025-01-10 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217663', 'tblTempUsageDetail_20' ) end [2025-01-10 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:54:28] Production.INFO: ==29136== Releasing lock... [2025-01-10 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:54:28] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:55:04 [end_date_ymd] => 2025-01-10 14:55:04 [RateCDR] => 1 ) [2025-01-10 14:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 11:55:04' and `end` < '2025-01-10 14:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 14:55:27] Production.INFO: count ==3051 [2025-01-10 14:55:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:55:04 - End Time 2025-01-10 14:55:04 [2025-01-10 14:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217668', 'tblTempUsageDetail_20' ) start [2025-01-10 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217668', 'tblTempUsageDetail_20' ) end [2025-01-10 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217668', 'tblTempVendorCDR_20' ) start [2025-01-10 14:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217668', 'tblTempVendorCDR_20' ) end [2025-01-10 14:55:29] Production.INFO: ProcessCDR(1,14217668,1,1,2) [2025-01-10 14:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217668', 'tblTempUsageDetail_20' ) start [2025-01-10 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217668', 'tblTempUsageDetail_20' ) end [2025-01-10 14:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:55:33] Production.INFO: ==29209== Releasing lock... [2025-01-10 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:55:33] Production.INFO: 51 MB #Memory Used# [2025-01-10 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:56:04 [end_date_ymd] => 2025-01-10 14:56:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:56:04' and `end` < '2025-01-10 14: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-01-10 14:56:26] Production.INFO: count ==3067 [2025-01-10 14:56:28] Production.ERROR: pbx CDR StartTime 2025-01-10 11:56:04 - End Time 2025-01-10 14:56:04 [2025-01-10 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217673', 'tblTempUsageDetail_20' ) start [2025-01-10 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217673', 'tblTempUsageDetail_20' ) end [2025-01-10 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217673', 'tblTempVendorCDR_20' ) start [2025-01-10 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217673', 'tblTempVendorCDR_20' ) end [2025-01-10 14:56:28] Production.INFO: ProcessCDR(1,14217673,1,1,2) [2025-01-10 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217673', 'tblTempUsageDetail_20' ) start [2025-01-10 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217673', 'tblTempUsageDetail_20' ) end [2025-01-10 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:56:33] Production.INFO: ==29280== Releasing lock... [2025-01-10 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:56:33] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:57:05 [end_date_ymd] => 2025-01-10 14:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 11:57:05' and `end` < '2025-01-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-01-10 14:57:30] Production.INFO: count ==3065 [2025-01-10 14:57:31] Production.ERROR: pbx CDR StartTime 2025-01-10 11:57:05 - End Time 2025-01-10 14:57:05 [2025-01-10 14:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217678', 'tblTempUsageDetail_20' ) start [2025-01-10 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217678', 'tblTempUsageDetail_20' ) end [2025-01-10 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217678', 'tblTempVendorCDR_20' ) start [2025-01-10 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217678', 'tblTempVendorCDR_20' ) end [2025-01-10 14:57:32] Production.INFO: ProcessCDR(1,14217678,1,1,2) [2025-01-10 14:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217678', 'tblTempUsageDetail_20' ) start [2025-01-10 14:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217678', 'tblTempUsageDetail_20' ) end [2025-01-10 14:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:57:36] Production.INFO: ==29353== Releasing lock... [2025-01-10 14:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:57:36] Production.INFO: 51.25 MB #Memory Used# [2025-01-10 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:58:04 [end_date_ymd] => 2025-01-10 14:58:04 [RateCDR] => 1 ) [2025-01-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-01-10 11:58:04' and `end` < '2025-01-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-01-10 14:58:25] Production.INFO: count ==3059 [2025-01-10 14:58:27] Production.ERROR: pbx CDR StartTime 2025-01-10 11:58:04 - End Time 2025-01-10 14:58:04 [2025-01-10 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217683', 'tblTempUsageDetail_20' ) start [2025-01-10 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217683', 'tblTempUsageDetail_20' ) end [2025-01-10 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217683', 'tblTempVendorCDR_20' ) start [2025-01-10 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217683', 'tblTempVendorCDR_20' ) end [2025-01-10 14:58:27] Production.INFO: ProcessCDR(1,14217683,1,1,2) [2025-01-10 14:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217683', 'tblTempUsageDetail_20' ) start [2025-01-10 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217683', 'tblTempUsageDetail_20' ) end [2025-01-10 14:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:58:31] Production.INFO: ==29426== Releasing lock... [2025-01-10 14:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:58:31] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 11:59:04 [end_date_ymd] => 2025-01-10 14:59:04 [RateCDR] => 1 ) [2025-01-10 14: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-01-10 11:59:04' and `end` < '2025-01-10 14: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-01-10 14:59:25] Production.INFO: count ==3071 [2025-01-10 14:59:27] Production.ERROR: pbx CDR StartTime 2025-01-10 11:59:04 - End Time 2025-01-10 14:59:04 [2025-01-10 14:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217688', 'tblTempUsageDetail_20' ) start [2025-01-10 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217688', 'tblTempUsageDetail_20' ) end [2025-01-10 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217688', 'tblTempVendorCDR_20' ) start [2025-01-10 14:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217688', 'tblTempVendorCDR_20' ) end [2025-01-10 14:59:27] Production.INFO: ProcessCDR(1,14217688,1,1,2) [2025-01-10 14:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 14:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217688', 'tblTempUsageDetail_20' ) start [2025-01-10 14:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217688', 'tblTempUsageDetail_20' ) end [2025-01-10 14:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 14:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 14:59:31] Production.INFO: ==29500== Releasing lock... [2025-01-10 14:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 14:59:31] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:00:05 [end_date_ymd] => 2025-01-10 15:00:05 [RateCDR] => 1 ) [2025-01-10 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:00:05' and `end` < '2025-01-10 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:00:31] Production.INFO: count ==3069 [2025-01-10 15:00:33] Production.ERROR: pbx CDR StartTime 2025-01-10 12:00:05 - End Time 2025-01-10 15:00:05 [2025-01-10 15:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217694', 'tblTempUsageDetail_20' ) start [2025-01-10 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217694', 'tblTempUsageDetail_20' ) end [2025-01-10 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217694', 'tblTempVendorCDR_20' ) start [2025-01-10 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217694', 'tblTempVendorCDR_20' ) end [2025-01-10 15:00:33] Production.INFO: ProcessCDR(1,14217694,1,1,2) [2025-01-10 15:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217694', 'tblTempUsageDetail_20' ) start [2025-01-10 15:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217694', 'tblTempUsageDetail_20' ) end [2025-01-10 15:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:00:38] Production.INFO: ==29576== Releasing lock... [2025-01-10 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:00:38] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:01:05 [end_date_ymd] => 2025-01-10 15:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:01:05' and `end` < '2025-01-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-01-10 15:01:35] Production.INFO: count ==3161 [2025-01-10 15:01:37] Production.ERROR: pbx CDR StartTime 2025-01-10 12:01:05 - End Time 2025-01-10 15:01:05 [2025-01-10 15:01:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217699', 'tblTempUsageDetail_20' ) start [2025-01-10 15:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217699', 'tblTempUsageDetail_20' ) end [2025-01-10 15:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217699', 'tblTempVendorCDR_20' ) start [2025-01-10 15:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217699', 'tblTempVendorCDR_20' ) end [2025-01-10 15:01:37] Production.INFO: ProcessCDR(1,14217699,1,1,2) [2025-01-10 15:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:01:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:01:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:01:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217699', 'tblTempUsageDetail_20' ) start [2025-01-10 15:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217699', 'tblTempUsageDetail_20' ) end [2025-01-10 15:01:42] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:01:42] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:01:42] Production.INFO: ==29665== Releasing lock... [2025-01-10 15:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:01:42] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:02:05 [end_date_ymd] => 2025-01-10 15:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:02:05' and `end` < '2025-01-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-01-10 15:02:37] Production.INFO: count ==3160 [2025-01-10 15:02:39] Production.ERROR: pbx CDR StartTime 2025-01-10 12:02:05 - End Time 2025-01-10 15:02:05 [2025-01-10 15:02:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217704', 'tblTempUsageDetail_20' ) start [2025-01-10 15:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217704', 'tblTempUsageDetail_20' ) end [2025-01-10 15:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217704', 'tblTempVendorCDR_20' ) start [2025-01-10 15:02:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217704', 'tblTempVendorCDR_20' ) end [2025-01-10 15:02:39] Production.INFO: ProcessCDR(1,14217704,1,1,2) [2025-01-10 15:02:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:02:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217704', 'tblTempUsageDetail_20' ) start [2025-01-10 15:02:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217704', 'tblTempUsageDetail_20' ) end [2025-01-10 15:02:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:02:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:02:44] Production.INFO: ==29818== Releasing lock... [2025-01-10 15:02:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:02:44] Production.INFO: 52 MB #Memory Used# [2025-01-10 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:03:04 [end_date_ymd] => 2025-01-10 15:03:04 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:03:04' and `end` < '2025-01-10 15: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-01-10 15:03:25] Production.INFO: count ==3165 [2025-01-10 15:03:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:03:04 - End Time 2025-01-10 15:03:04 [2025-01-10 15:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217709', 'tblTempUsageDetail_20' ) start [2025-01-10 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217709', 'tblTempUsageDetail_20' ) end [2025-01-10 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217709', 'tblTempVendorCDR_20' ) start [2025-01-10 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217709', 'tblTempVendorCDR_20' ) end [2025-01-10 15:03:27] Production.INFO: ProcessCDR(1,14217709,1,1,2) [2025-01-10 15:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217709', 'tblTempUsageDetail_20' ) start [2025-01-10 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217709', 'tblTempUsageDetail_20' ) end [2025-01-10 15:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:03:32] Production.INFO: ==29890== Releasing lock... [2025-01-10 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:03:32] Production.INFO: 51.75 MB #Memory Used# [2025-01-10 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:04:05 [end_date_ymd] => 2025-01-10 15:04:05 [RateCDR] => 1 ) [2025-01-10 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:04:05' and `end` < '2025-01-10 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:04:24] Production.INFO: count ==3156 [2025-01-10 15:04:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:04:05 - End Time 2025-01-10 15:04:05 [2025-01-10 15:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217714', 'tblTempUsageDetail_20' ) start [2025-01-10 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217714', 'tblTempUsageDetail_20' ) end [2025-01-10 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217714', 'tblTempVendorCDR_20' ) start [2025-01-10 15:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217714', 'tblTempVendorCDR_20' ) end [2025-01-10 15:04:26] Production.INFO: ProcessCDR(1,14217714,1,1,2) [2025-01-10 15:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217714', 'tblTempUsageDetail_20' ) start [2025-01-10 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217714', 'tblTempUsageDetail_20' ) end [2025-01-10 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:04:30] Production.INFO: ==29960== Releasing lock... [2025-01-10 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:04:30] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:05:05 [end_date_ymd] => 2025-01-10 15:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:05:05' and `end` < '2025-01-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-01-10 15:05:25] Production.INFO: count ==3141 [2025-01-10 15:05:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:05:05 - End Time 2025-01-10 15:05:05 [2025-01-10 15:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217719', 'tblTempUsageDetail_20' ) start [2025-01-10 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217719', 'tblTempUsageDetail_20' ) end [2025-01-10 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217719', 'tblTempVendorCDR_20' ) start [2025-01-10 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217719', 'tblTempVendorCDR_20' ) end [2025-01-10 15:05:27] Production.INFO: ProcessCDR(1,14217719,1,1,2) [2025-01-10 15:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217719', 'tblTempUsageDetail_20' ) start [2025-01-10 15:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217719', 'tblTempUsageDetail_20' ) end [2025-01-10 15:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:05:31] Production.INFO: ==30113== Releasing lock... [2025-01-10 15:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:05:31] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:06:05 [end_date_ymd] => 2025-01-10 15:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:06:05' and `end` < '2025-01-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-01-10 15:06:22] Production.INFO: count ==3125 [2025-01-10 15:06:24] Production.ERROR: pbx CDR StartTime 2025-01-10 12:06:05 - End Time 2025-01-10 15:06:05 [2025-01-10 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217724', 'tblTempUsageDetail_20' ) start [2025-01-10 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217724', 'tblTempUsageDetail_20' ) end [2025-01-10 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217724', 'tblTempVendorCDR_20' ) start [2025-01-10 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217724', 'tblTempVendorCDR_20' ) end [2025-01-10 15:06:24] Production.INFO: ProcessCDR(1,14217724,1,1,2) [2025-01-10 15:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217724', 'tblTempUsageDetail_20' ) start [2025-01-10 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217724', 'tblTempUsageDetail_20' ) end [2025-01-10 15:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:06:29] Production.INFO: ==30193== Releasing lock... [2025-01-10 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:06:29] Production.INFO: 51.75 MB #Memory Used# [2025-01-10 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:07:04 [end_date_ymd] => 2025-01-10 15:07:04 [RateCDR] => 1 ) [2025-01-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-01-10 12:07:04' and `end` < '2025-01-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-01-10 15:07:18] Production.INFO: count ==3115 [2025-01-10 15:07:20] Production.ERROR: pbx CDR StartTime 2025-01-10 12:07:04 - End Time 2025-01-10 15:07:04 [2025-01-10 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217729', 'tblTempUsageDetail_20' ) start [2025-01-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217729', 'tblTempUsageDetail_20' ) end [2025-01-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217729', 'tblTempVendorCDR_20' ) start [2025-01-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217729', 'tblTempVendorCDR_20' ) end [2025-01-10 15:07:20] Production.INFO: ProcessCDR(1,14217729,1,1,2) [2025-01-10 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217729', 'tblTempUsageDetail_20' ) start [2025-01-10 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217729', 'tblTempUsageDetail_20' ) end [2025-01-10 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:07:24] Production.INFO: ==30303== Releasing lock... [2025-01-10 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:07:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:08:05 [end_date_ymd] => 2025-01-10 15:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:08:05' and `end` < '2025-01-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-01-10 15:08:39] Production.INFO: count ==3147 [2025-01-10 15:08:40] Production.ERROR: pbx CDR StartTime 2025-01-10 12:08:05 - End Time 2025-01-10 15:08:05 [2025-01-10 15:08:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217734', 'tblTempUsageDetail_20' ) start [2025-01-10 15:08:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217734', 'tblTempUsageDetail_20' ) end [2025-01-10 15:08:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217734', 'tblTempVendorCDR_20' ) start [2025-01-10 15:08:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217734', 'tblTempVendorCDR_20' ) end [2025-01-10 15:08:41] Production.INFO: ProcessCDR(1,14217734,1,1,2) [2025-01-10 15:08:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:08:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:08:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:08:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:08:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217734', 'tblTempUsageDetail_20' ) start [2025-01-10 15:08:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217734', 'tblTempUsageDetail_20' ) end [2025-01-10 15:08:45] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:08:45] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:08:45] Production.INFO: ==30415== Releasing lock... [2025-01-10 15:08:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:08:45] Production.INFO: 51.75 MB #Memory Used# [2025-01-10 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:09:05 [end_date_ymd] => 2025-01-10 15:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:09:05' and `end` < '2025-01-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-01-10 15:09:34] Production.INFO: count ==3150 [2025-01-10 15:09:35] Production.ERROR: pbx CDR StartTime 2025-01-10 12:09:05 - End Time 2025-01-10 15:09:05 [2025-01-10 15:09:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217739', 'tblTempUsageDetail_20' ) start [2025-01-10 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217739', 'tblTempUsageDetail_20' ) end [2025-01-10 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217739', 'tblTempVendorCDR_20' ) start [2025-01-10 15:09:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217739', 'tblTempVendorCDR_20' ) end [2025-01-10 15:09:36] Production.INFO: ProcessCDR(1,14217739,1,1,2) [2025-01-10 15:09:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:09:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:09:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:09:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217739', 'tblTempUsageDetail_20' ) start [2025-01-10 15:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217739', 'tblTempUsageDetail_20' ) end [2025-01-10 15:09:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:09:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:09:40] Production.INFO: ==30527== Releasing lock... [2025-01-10 15:09:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:09:40] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:10:05 [end_date_ymd] => 2025-01-10 15:10:05 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:10:05' and `end` < '2025-01-10 15: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-01-10 15:10:32] Production.INFO: count ==3157 [2025-01-10 15:10:33] Production.ERROR: pbx CDR StartTime 2025-01-10 12:10:05 - End Time 2025-01-10 15:10:05 [2025-01-10 15:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217745', 'tblTempUsageDetail_20' ) start [2025-01-10 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217745', 'tblTempUsageDetail_20' ) end [2025-01-10 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217745', 'tblTempVendorCDR_20' ) start [2025-01-10 15:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217745', 'tblTempVendorCDR_20' ) end [2025-01-10 15:10:33] Production.INFO: ProcessCDR(1,14217745,1,1,2) [2025-01-10 15:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217745', 'tblTempUsageDetail_20' ) start [2025-01-10 15:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217745', 'tblTempUsageDetail_20' ) end [2025-01-10 15:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:10:38] Production.INFO: ==30604== Releasing lock... [2025-01-10 15:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:10:38] Production.INFO: 51.75 MB #Memory Used# [2025-01-10 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:11:05 [end_date_ymd] => 2025-01-10 15:11:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:11:05' and `end` < '2025-01-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-01-10 15:11:28] Production.INFO: count ==3252 [2025-01-10 15:11:30] Production.ERROR: pbx CDR StartTime 2025-01-10 12:11:05 - End Time 2025-01-10 15:11:05 [2025-01-10 15:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217750', 'tblTempUsageDetail_20' ) start [2025-01-10 15:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217750', 'tblTempUsageDetail_20' ) end [2025-01-10 15:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217750', 'tblTempVendorCDR_20' ) start [2025-01-10 15:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217750', 'tblTempVendorCDR_20' ) end [2025-01-10 15:11:30] Production.INFO: ProcessCDR(1,14217750,1,1,2) [2025-01-10 15:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217750', 'tblTempUsageDetail_20' ) start [2025-01-10 15:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217750', 'tblTempUsageDetail_20' ) end [2025-01-10 15:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:11:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:11:35] Production.INFO: ==30680== Releasing lock... [2025-01-10 15:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:11:35] Production.INFO: 52.25 MB #Memory Used# [2025-01-10 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:12:04 [end_date_ymd] => 2025-01-10 15:12:04 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:12:04' and `end` < '2025-01-10 15: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-01-10 15:12:32] Production.INFO: count ==3249 [2025-01-10 15:12:34] Production.ERROR: pbx CDR StartTime 2025-01-10 12:12:04 - End Time 2025-01-10 15:12:04 [2025-01-10 15:12:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217755', 'tblTempUsageDetail_20' ) start [2025-01-10 15:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217755', 'tblTempUsageDetail_20' ) end [2025-01-10 15:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217755', 'tblTempVendorCDR_20' ) start [2025-01-10 15:12:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217755', 'tblTempVendorCDR_20' ) end [2025-01-10 15:12:34] Production.INFO: ProcessCDR(1,14217755,1,1,2) [2025-01-10 15:12:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:12:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:12:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:12:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:12:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217755', 'tblTempUsageDetail_20' ) start [2025-01-10 15:12:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217755', 'tblTempUsageDetail_20' ) end [2025-01-10 15:12:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:12:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:12:40] Production.INFO: ==30833== Releasing lock... [2025-01-10 15:12:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:12:40] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:13:05 [end_date_ymd] => 2025-01-10 15:13:05 [RateCDR] => 1 ) [2025-01-10 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:13:05' and `end` < '2025-01-10 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:13:26] Production.INFO: count ==3260 [2025-01-10 15:13:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:13:05 - End Time 2025-01-10 15:13:05 [2025-01-10 15:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217760', 'tblTempUsageDetail_20' ) start [2025-01-10 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217760', 'tblTempUsageDetail_20' ) end [2025-01-10 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217760', 'tblTempVendorCDR_20' ) start [2025-01-10 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217760', 'tblTempVendorCDR_20' ) end [2025-01-10 15:13:28] Production.INFO: ProcessCDR(1,14217760,1,1,2) [2025-01-10 15:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217760', 'tblTempUsageDetail_20' ) start [2025-01-10 15:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217760', 'tblTempUsageDetail_20' ) end [2025-01-10 15:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:13:31] Production.INFO: ==30909== Releasing lock... [2025-01-10 15:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:13:31] Production.INFO: 53 MB #Memory Used# [2025-01-10 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:14:05 [end_date_ymd] => 2025-01-10 15:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:14:05' and `end` < '2025-01-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-01-10 15:14:29] Production.INFO: count ==3267 [2025-01-10 15:14:31] Production.ERROR: pbx CDR StartTime 2025-01-10 12:14:05 - End Time 2025-01-10 15:14:05 [2025-01-10 15:14:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217765', 'tblTempUsageDetail_20' ) start [2025-01-10 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217765', 'tblTempUsageDetail_20' ) end [2025-01-10 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217765', 'tblTempVendorCDR_20' ) start [2025-01-10 15:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217765', 'tblTempVendorCDR_20' ) end [2025-01-10 15:14:31] Production.INFO: ProcessCDR(1,14217765,1,1,2) [2025-01-10 15:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:14:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:14:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217765', 'tblTempUsageDetail_20' ) start [2025-01-10 15:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217765', 'tblTempUsageDetail_20' ) end [2025-01-10 15:14:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:14:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:14:36] Production.INFO: ==30984== Releasing lock... [2025-01-10 15:14:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:14:36] Production.INFO: 53 MB #Memory Used# [2025-01-10 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:15:04 [end_date_ymd] => 2025-01-10 15:15:04 [RateCDR] => 1 ) [2025-01-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-01-10 12:15:04' and `end` < '2025-01-10 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:15:29] Production.INFO: count ==3274 [2025-01-10 15:15:30] Production.ERROR: pbx CDR StartTime 2025-01-10 12:15:04 - End Time 2025-01-10 15:15:04 [2025-01-10 15:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217770', 'tblTempUsageDetail_20' ) start [2025-01-10 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217770', 'tblTempUsageDetail_20' ) end [2025-01-10 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217770', 'tblTempVendorCDR_20' ) start [2025-01-10 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217770', 'tblTempVendorCDR_20' ) end [2025-01-10 15:15:30] Production.INFO: ProcessCDR(1,14217770,1,1,2) [2025-01-10 15:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217770', 'tblTempUsageDetail_20' ) start [2025-01-10 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217770', 'tblTempUsageDetail_20' ) end [2025-01-10 15:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:15:35] Production.INFO: ==31135== Releasing lock... [2025-01-10 15:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:15:35] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:16:05 [end_date_ymd] => 2025-01-10 15:16:05 [RateCDR] => 1 ) [2025-01-10 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:16:05' and `end` < '2025-01-10 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:16:25] Production.INFO: count ==3271 [2025-01-10 15:16:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:16:05 - End Time 2025-01-10 15:16:05 [2025-01-10 15:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217775', 'tblTempUsageDetail_20' ) start [2025-01-10 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217775', 'tblTempUsageDetail_20' ) end [2025-01-10 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217775', 'tblTempVendorCDR_20' ) start [2025-01-10 15:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217775', 'tblTempVendorCDR_20' ) end [2025-01-10 15:16:27] Production.INFO: ProcessCDR(1,14217775,1,1,2) [2025-01-10 15:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217775', 'tblTempUsageDetail_20' ) start [2025-01-10 15:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217775', 'tblTempUsageDetail_20' ) end [2025-01-10 15:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:16:32] Production.INFO: ==31212== Releasing lock... [2025-01-10 15:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:16:32] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:17:05 [end_date_ymd] => 2025-01-10 15:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:17:05' and `end` < '2025-01-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-01-10 15:17:31] Production.INFO: count ==3297 [2025-01-10 15:17:33] Production.ERROR: pbx CDR StartTime 2025-01-10 12:17:05 - End Time 2025-01-10 15:17:05 [2025-01-10 15:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217780', 'tblTempUsageDetail_20' ) start [2025-01-10 15:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217780', 'tblTempUsageDetail_20' ) end [2025-01-10 15:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217780', 'tblTempVendorCDR_20' ) start [2025-01-10 15:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217780', 'tblTempVendorCDR_20' ) end [2025-01-10 15:17:33] Production.INFO: ProcessCDR(1,14217780,1,1,2) [2025-01-10 15:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217780', 'tblTempUsageDetail_20' ) start [2025-01-10 15:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217780', 'tblTempUsageDetail_20' ) end [2025-01-10 15:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:17:38] Production.INFO: ==31285== Releasing lock... [2025-01-10 15:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:17:38] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:18:05 [end_date_ymd] => 2025-01-10 15:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:18:05' and `end` < '2025-01-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-01-10 15:18:25] Production.INFO: count ==3283 [2025-01-10 15:18:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:18:05 - End Time 2025-01-10 15:18:05 [2025-01-10 15:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217785', 'tblTempUsageDetail_20' ) start [2025-01-10 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217785', 'tblTempUsageDetail_20' ) end [2025-01-10 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217785', 'tblTempVendorCDR_20' ) start [2025-01-10 15:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217785', 'tblTempVendorCDR_20' ) end [2025-01-10 15:18:26] Production.INFO: ProcessCDR(1,14217785,1,1,2) [2025-01-10 15:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217785', 'tblTempUsageDetail_20' ) start [2025-01-10 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217785', 'tblTempUsageDetail_20' ) end [2025-01-10 15:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:18:30] Production.INFO: ==31363== Releasing lock... [2025-01-10 15:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:18:30] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:19:06 [end_date_ymd] => 2025-01-10 15:19:06 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:19:06' and `end` < '2025-01-10 15: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-01-10 15:19:25] Production.INFO: count ==3272 [2025-01-10 15:19:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:19:06 - End Time 2025-01-10 15:19:06 [2025-01-10 15:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217790', 'tblTempUsageDetail_20' ) start [2025-01-10 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217790', 'tblTempUsageDetail_20' ) end [2025-01-10 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217790', 'tblTempVendorCDR_20' ) start [2025-01-10 15:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217790', 'tblTempVendorCDR_20' ) end [2025-01-10 15:19:27] Production.INFO: ProcessCDR(1,14217790,1,1,2) [2025-01-10 15:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217790', 'tblTempUsageDetail_20' ) start [2025-01-10 15:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217790', 'tblTempUsageDetail_20' ) end [2025-01-10 15:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:19:32] Production.INFO: ==31445== Releasing lock... [2025-01-10 15:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:19:32] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:20:06 [end_date_ymd] => 2025-01-10 15:20:06 [RateCDR] => 1 ) [2025-01-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-01-10 12:20:06' and `end` < '2025-01-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-01-10 15:20:23] Production.INFO: count ==3295 [2025-01-10 15:20:24] Production.ERROR: pbx CDR StartTime 2025-01-10 12:20:06 - End Time 2025-01-10 15:20:06 [2025-01-10 15:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217796', 'tblTempUsageDetail_20' ) start [2025-01-10 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217796', 'tblTempUsageDetail_20' ) end [2025-01-10 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217796', 'tblTempVendorCDR_20' ) start [2025-01-10 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217796', 'tblTempVendorCDR_20' ) end [2025-01-10 15:20:25] Production.INFO: ProcessCDR(1,14217796,1,1,2) [2025-01-10 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217796', 'tblTempUsageDetail_20' ) start [2025-01-10 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217796', 'tblTempUsageDetail_20' ) end [2025-01-10 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:20:29] Production.INFO: ==31522== Releasing lock... [2025-01-10 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:20:29] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:21:05 [end_date_ymd] => 2025-01-10 15:21:05 [RateCDR] => 1 ) [2025-01-10 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:21:05' and `end` < '2025-01-10 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:21:24] Production.INFO: count ==3346 [2025-01-10 15:21:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:21:05 - End Time 2025-01-10 15:21:05 [2025-01-10 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217801', 'tblTempUsageDetail_20' ) start [2025-01-10 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217801', 'tblTempUsageDetail_20' ) end [2025-01-10 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217801', 'tblTempVendorCDR_20' ) start [2025-01-10 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217801', 'tblTempVendorCDR_20' ) end [2025-01-10 15:21:25] Production.INFO: ProcessCDR(1,14217801,1,1,2) [2025-01-10 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217801', 'tblTempUsageDetail_20' ) start [2025-01-10 15:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217801', 'tblTempUsageDetail_20' ) end [2025-01-10 15:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:21:30] Production.INFO: ==31606== Releasing lock... [2025-01-10 15:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:21:30] Production.INFO: 53 MB #Memory Used# [2025-01-10 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:22:04 [end_date_ymd] => 2025-01-10 15:22:04 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:22:04' and `end` < '2025-01-10 15: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-01-10 15:22:23] Production.INFO: count ==3339 [2025-01-10 15:22:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:22:04 - End Time 2025-01-10 15:22:04 [2025-01-10 15:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217806', 'tblTempUsageDetail_20' ) start [2025-01-10 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217806', 'tblTempUsageDetail_20' ) end [2025-01-10 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217806', 'tblTempVendorCDR_20' ) start [2025-01-10 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217806', 'tblTempVendorCDR_20' ) end [2025-01-10 15:22:25] Production.INFO: ProcessCDR(1,14217806,1,1,2) [2025-01-10 15:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217806', 'tblTempUsageDetail_20' ) start [2025-01-10 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217806', 'tblTempUsageDetail_20' ) end [2025-01-10 15:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:22:29] Production.INFO: ==31718== Releasing lock... [2025-01-10 15:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:22:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:23:05 [end_date_ymd] => 2025-01-10 15:23:05 [RateCDR] => 1 ) [2025-01-10 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:23:05' and `end` < '2025-01-10 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:23:26] Production.INFO: count ==3345 [2025-01-10 15:23:28] Production.ERROR: pbx CDR StartTime 2025-01-10 12:23:05 - End Time 2025-01-10 15:23:05 [2025-01-10 15:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217811', 'tblTempUsageDetail_20' ) start [2025-01-10 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217811', 'tblTempUsageDetail_20' ) end [2025-01-10 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217811', 'tblTempVendorCDR_20' ) start [2025-01-10 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217811', 'tblTempVendorCDR_20' ) end [2025-01-10 15:23:28] Production.INFO: ProcessCDR(1,14217811,1,1,2) [2025-01-10 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217811', 'tblTempUsageDetail_20' ) start [2025-01-10 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217811', 'tblTempUsageDetail_20' ) end [2025-01-10 15:23:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:23:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:23:33] Production.INFO: ==31795== Releasing lock... [2025-01-10 15:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:23:33] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:24:06 [end_date_ymd] => 2025-01-10 15:24:06 [RateCDR] => 1 ) [2025-01-10 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:24:06' and `end` < '2025-01-10 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:24:23] Production.INFO: count ==3346 [2025-01-10 15:24:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:24:06 - End Time 2025-01-10 15:24:06 [2025-01-10 15:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217816', 'tblTempUsageDetail_20' ) start [2025-01-10 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217816', 'tblTempUsageDetail_20' ) end [2025-01-10 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217816', 'tblTempVendorCDR_20' ) start [2025-01-10 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217816', 'tblTempVendorCDR_20' ) end [2025-01-10 15:24:25] Production.INFO: ProcessCDR(1,14217816,1,1,2) [2025-01-10 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217816', 'tblTempUsageDetail_20' ) start [2025-01-10 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217816', 'tblTempUsageDetail_20' ) end [2025-01-10 15:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:24:30] Production.INFO: ==31871== Releasing lock... [2025-01-10 15:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:24:30] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:25:05 [end_date_ymd] => 2025-01-10 15:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:25:05' and `end` < '2025-01-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-01-10 15:25:24] Production.INFO: count ==3346 [2025-01-10 15:25:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:25:05 - End Time 2025-01-10 15:25:05 [2025-01-10 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217821', 'tblTempUsageDetail_20' ) start [2025-01-10 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217821', 'tblTempUsageDetail_20' ) end [2025-01-10 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217821', 'tblTempVendorCDR_20' ) start [2025-01-10 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217821', 'tblTempVendorCDR_20' ) end [2025-01-10 15:25:26] Production.INFO: ProcessCDR(1,14217821,1,1,2) [2025-01-10 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217821', 'tblTempUsageDetail_20' ) start [2025-01-10 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217821', 'tblTempUsageDetail_20' ) end [2025-01-10 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:25:31] Production.INFO: ==31950== Releasing lock... [2025-01-10 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:25:31] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:26:04 [end_date_ymd] => 2025-01-10 15:26:04 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:26:04' and `end` < '2025-01-10 15: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-01-10 15:26:18] Production.INFO: count ==3346 [2025-01-10 15:26:20] Production.ERROR: pbx CDR StartTime 2025-01-10 12:26:04 - End Time 2025-01-10 15:26:04 [2025-01-10 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217826', 'tblTempUsageDetail_20' ) start [2025-01-10 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217826', 'tblTempUsageDetail_20' ) end [2025-01-10 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217826', 'tblTempVendorCDR_20' ) start [2025-01-10 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217826', 'tblTempVendorCDR_20' ) end [2025-01-10 15:26:20] Production.INFO: ProcessCDR(1,14217826,1,1,2) [2025-01-10 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217826', 'tblTempUsageDetail_20' ) start [2025-01-10 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217826', 'tblTempUsageDetail_20' ) end [2025-01-10 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:26:25] Production.INFO: ==32024== Releasing lock... [2025-01-10 15:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:26:25] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:27:04 [end_date_ymd] => 2025-01-10 15:27:04 [RateCDR] => 1 ) [2025-01-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-01-10 12:27:04' and `end` < '2025-01-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-01-10 15:27:22] Production.INFO: count ==3349 [2025-01-10 15:27:24] Production.ERROR: pbx CDR StartTime 2025-01-10 12:27:04 - End Time 2025-01-10 15:27:04 [2025-01-10 15:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217831', 'tblTempUsageDetail_20' ) start [2025-01-10 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217831', 'tblTempUsageDetail_20' ) end [2025-01-10 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217831', 'tblTempVendorCDR_20' ) start [2025-01-10 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217831', 'tblTempVendorCDR_20' ) end [2025-01-10 15:27:24] Production.INFO: ProcessCDR(1,14217831,1,1,2) [2025-01-10 15:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217831', 'tblTempUsageDetail_20' ) start [2025-01-10 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217831', 'tblTempUsageDetail_20' ) end [2025-01-10 15:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:27:29] Production.INFO: ==32100== Releasing lock... [2025-01-10 15:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:27:29] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:28:05 [end_date_ymd] => 2025-01-10 15:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:28:05' and `end` < '2025-01-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-01-10 15:28:30] Production.INFO: count ==3340 [2025-01-10 15:28:32] Production.ERROR: pbx CDR StartTime 2025-01-10 12:28:05 - End Time 2025-01-10 15:28:05 [2025-01-10 15:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217836', 'tblTempUsageDetail_20' ) start [2025-01-10 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217836', 'tblTempUsageDetail_20' ) end [2025-01-10 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217836', 'tblTempVendorCDR_20' ) start [2025-01-10 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217836', 'tblTempVendorCDR_20' ) end [2025-01-10 15:28:32] Production.INFO: ProcessCDR(1,14217836,1,1,2) [2025-01-10 15:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:28:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:28:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:28:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217836', 'tblTempUsageDetail_20' ) start [2025-01-10 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217836', 'tblTempUsageDetail_20' ) end [2025-01-10 15:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:28:36] Production.INFO: ==32174== Releasing lock... [2025-01-10 15:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:28:36] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:29:05 [end_date_ymd] => 2025-01-10 15:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:29:05' and `end` < '2025-01-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-01-10 15:29:25] Production.INFO: count ==3338 [2025-01-10 15:29:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:29:05 - End Time 2025-01-10 15:29:05 [2025-01-10 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217841', 'tblTempUsageDetail_20' ) start [2025-01-10 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217841', 'tblTempUsageDetail_20' ) end [2025-01-10 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217841', 'tblTempVendorCDR_20' ) start [2025-01-10 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217841', 'tblTempVendorCDR_20' ) end [2025-01-10 15:29:26] Production.INFO: ProcessCDR(1,14217841,1,1,2) [2025-01-10 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217841', 'tblTempUsageDetail_20' ) start [2025-01-10 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217841', 'tblTempUsageDetail_20' ) end [2025-01-10 15:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:29:31] Production.INFO: ==32250== Releasing lock... [2025-01-10 15:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:29:31] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:30:06 [end_date_ymd] => 2025-01-10 15:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 12:30:06' and `end` < '2025-01-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-01-10 15:30:26] Production.INFO: count ==3338 [2025-01-10 15:30:28] Production.ERROR: pbx CDR StartTime 2025-01-10 12:30:06 - End Time 2025-01-10 15:30:06 [2025-01-10 15:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217847', 'tblTempUsageDetail_20' ) start [2025-01-10 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217847', 'tblTempUsageDetail_20' ) end [2025-01-10 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217847', 'tblTempVendorCDR_20' ) start [2025-01-10 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217847', 'tblTempVendorCDR_20' ) end [2025-01-10 15:30:29] Production.INFO: ProcessCDR(1,14217847,1,1,2) [2025-01-10 15:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217847', 'tblTempUsageDetail_20' ) start [2025-01-10 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217847', 'tblTempUsageDetail_20' ) end [2025-01-10 15:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:30:33] Production.INFO: ==32328== Releasing lock... [2025-01-10 15:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:30:33] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:31:04 [end_date_ymd] => 2025-01-10 15:31:04 [RateCDR] => 1 ) [2025-01-10 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:31:04' and `end` < '2025-01-10 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:31:21] Production.INFO: count ==3427 [2025-01-10 15:31:23] Production.ERROR: pbx CDR StartTime 2025-01-10 12:31:04 - End Time 2025-01-10 15:31:04 [2025-01-10 15:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217852', 'tblTempUsageDetail_20' ) start [2025-01-10 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217852', 'tblTempUsageDetail_20' ) end [2025-01-10 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217852', 'tblTempVendorCDR_20' ) start [2025-01-10 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217852', 'tblTempVendorCDR_20' ) end [2025-01-10 15:31:23] Production.INFO: ProcessCDR(1,14217852,1,1,2) [2025-01-10 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217852', 'tblTempUsageDetail_20' ) start [2025-01-10 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217852', 'tblTempUsageDetail_20' ) end [2025-01-10 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:31:28] Production.INFO: ==32402== Releasing lock... [2025-01-10 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:31:28] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:32:05 [end_date_ymd] => 2025-01-10 15:32:05 [RateCDR] => 1 ) [2025-01-10 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:32:05' and `end` < '2025-01-10 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:32:21] Production.INFO: count ==3421 [2025-01-10 15:32:23] Production.ERROR: pbx CDR StartTime 2025-01-10 12:32:05 - End Time 2025-01-10 15:32:05 [2025-01-10 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217857', 'tblTempUsageDetail_20' ) start [2025-01-10 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217857', 'tblTempUsageDetail_20' ) end [2025-01-10 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217857', 'tblTempVendorCDR_20' ) start [2025-01-10 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217857', 'tblTempVendorCDR_20' ) end [2025-01-10 15:32:23] Production.INFO: ProcessCDR(1,14217857,1,1,2) [2025-01-10 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217857', 'tblTempUsageDetail_20' ) start [2025-01-10 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217857', 'tblTempUsageDetail_20' ) end [2025-01-10 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:32:28] Production.INFO: ==32481== Releasing lock... [2025-01-10 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:32:28] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:33:05 [end_date_ymd] => 2025-01-10 15:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:33:05' and `end` < '2025-01-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-01-10 15:33:25] Production.INFO: count ==3419 [2025-01-10 15:33:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:33:05 - End Time 2025-01-10 15:33:05 [2025-01-10 15:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217862', 'tblTempUsageDetail_20' ) start [2025-01-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217862', 'tblTempUsageDetail_20' ) end [2025-01-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217862', 'tblTempVendorCDR_20' ) start [2025-01-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217862', 'tblTempVendorCDR_20' ) end [2025-01-10 15:33:26] Production.INFO: ProcessCDR(1,14217862,1,1,2) [2025-01-10 15:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217862', 'tblTempUsageDetail_20' ) start [2025-01-10 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217862', 'tblTempUsageDetail_20' ) end [2025-01-10 15:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:33:31] Production.INFO: ==32550== Releasing lock... [2025-01-10 15:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:33:31] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:34:05 [end_date_ymd] => 2025-01-10 15:34:05 [RateCDR] => 1 ) [2025-01-10 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:34:05' and `end` < '2025-01-10 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:34:22] Production.INFO: count ==3420 [2025-01-10 15:34:24] Production.ERROR: pbx CDR StartTime 2025-01-10 12:34:05 - End Time 2025-01-10 15:34:05 [2025-01-10 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217867', 'tblTempUsageDetail_20' ) start [2025-01-10 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217867', 'tblTempUsageDetail_20' ) end [2025-01-10 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217867', 'tblTempVendorCDR_20' ) start [2025-01-10 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217867', 'tblTempVendorCDR_20' ) end [2025-01-10 15:34:24] Production.INFO: ProcessCDR(1,14217867,1,1,2) [2025-01-10 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217867', 'tblTempUsageDetail_20' ) start [2025-01-10 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217867', 'tblTempUsageDetail_20' ) end [2025-01-10 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:34:27] Production.INFO: ==32622== Releasing lock... [2025-01-10 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:34:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:35:05 [end_date_ymd] => 2025-01-10 15:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:35:05' and `end` < '2025-01-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-01-10 15:35:33] Production.INFO: count ==3422 [2025-01-10 15:35:35] Production.ERROR: pbx CDR StartTime 2025-01-10 12:35:05 - End Time 2025-01-10 15:35:05 [2025-01-10 15:35:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217872', 'tblTempUsageDetail_20' ) start [2025-01-10 15:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217872', 'tblTempUsageDetail_20' ) end [2025-01-10 15:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217872', 'tblTempVendorCDR_20' ) start [2025-01-10 15:35:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217872', 'tblTempVendorCDR_20' ) end [2025-01-10 15:35:35] Production.INFO: ProcessCDR(1,14217872,1,1,2) [2025-01-10 15:35:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:35:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:35:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:35:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217872', 'tblTempUsageDetail_20' ) start [2025-01-10 15:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217872', 'tblTempUsageDetail_20' ) end [2025-01-10 15:35:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:35:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:35:39] Production.INFO: ==32692== Releasing lock... [2025-01-10 15:35:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:35:39] Production.INFO: 53.5 MB #Memory Used# [2025-01-10 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:36:04 [end_date_ymd] => 2025-01-10 15:36:04 [RateCDR] => 1 ) [2025-01-10 15:36: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-01-10 12:36:04' and `end` < '2025-01-10 15:36: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-01-10 15:36:25] Production.INFO: count ==3407 [2025-01-10 15:36:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:36:04 - End Time 2025-01-10 15:36:04 [2025-01-10 15:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217877', 'tblTempUsageDetail_20' ) start [2025-01-10 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217877', 'tblTempUsageDetail_20' ) end [2025-01-10 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217877', 'tblTempVendorCDR_20' ) start [2025-01-10 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217877', 'tblTempVendorCDR_20' ) end [2025-01-10 15:36:27] Production.INFO: ProcessCDR(1,14217877,1,1,2) [2025-01-10 15:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217877', 'tblTempUsageDetail_20' ) start [2025-01-10 15:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217877', 'tblTempUsageDetail_20' ) end [2025-01-10 15:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:36:31] Production.INFO: ==32764== Releasing lock... [2025-01-10 15:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:36:31] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:37:05 [end_date_ymd] => 2025-01-10 15:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:37:05' and `end` < '2025-01-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-01-10 15:37:19] Production.INFO: count ==3396 [2025-01-10 15:37:20] Production.ERROR: pbx CDR StartTime 2025-01-10 12:37:05 - End Time 2025-01-10 15:37:05 [2025-01-10 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217882', 'tblTempUsageDetail_20' ) start [2025-01-10 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217882', 'tblTempUsageDetail_20' ) end [2025-01-10 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217882', 'tblTempVendorCDR_20' ) start [2025-01-10 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217882', 'tblTempVendorCDR_20' ) end [2025-01-10 15:37:20] Production.INFO: ProcessCDR(1,14217882,1,1,2) [2025-01-10 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217882', 'tblTempUsageDetail_20' ) start [2025-01-10 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217882', 'tblTempUsageDetail_20' ) end [2025-01-10 15:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:37:25] Production.INFO: ==387== Releasing lock... [2025-01-10 15:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:37:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:38:05 [end_date_ymd] => 2025-01-10 15:38:05 [RateCDR] => 1 ) [2025-01-10 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:38:05' and `end` < '2025-01-10 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:38:19] Production.INFO: count ==3421 [2025-01-10 15:38:21] Production.ERROR: pbx CDR StartTime 2025-01-10 12:38:05 - End Time 2025-01-10 15:38:05 [2025-01-10 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217887', 'tblTempUsageDetail_20' ) start [2025-01-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217887', 'tblTempUsageDetail_20' ) end [2025-01-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217887', 'tblTempVendorCDR_20' ) start [2025-01-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217887', 'tblTempVendorCDR_20' ) end [2025-01-10 15:38:21] Production.INFO: ProcessCDR(1,14217887,1,1,2) [2025-01-10 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217887', 'tblTempUsageDetail_20' ) start [2025-01-10 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217887', 'tblTempUsageDetail_20' ) end [2025-01-10 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:38:26] Production.INFO: ==502== Releasing lock... [2025-01-10 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:38:26] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:39:05 [end_date_ymd] => 2025-01-10 15:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:39:05' and `end` < '2025-01-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-01-10 15:39:19] Production.INFO: count ==3443 [2025-01-10 15:39:21] Production.ERROR: pbx CDR StartTime 2025-01-10 12:39:05 - End Time 2025-01-10 15:39:05 [2025-01-10 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217892', 'tblTempUsageDetail_20' ) start [2025-01-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217892', 'tblTempUsageDetail_20' ) end [2025-01-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217892', 'tblTempVendorCDR_20' ) start [2025-01-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217892', 'tblTempVendorCDR_20' ) end [2025-01-10 15:39:21] Production.INFO: ProcessCDR(1,14217892,1,1,2) [2025-01-10 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217892', 'tblTempUsageDetail_20' ) start [2025-01-10 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217892', 'tblTempUsageDetail_20' ) end [2025-01-10 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:39:26] Production.INFO: ==575== Releasing lock... [2025-01-10 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:39:26] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:40:05 [end_date_ymd] => 2025-01-10 15:40:05 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:40:05' and `end` < '2025-01-10 15: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-01-10 15:40:20] Production.INFO: count ==3445 [2025-01-10 15:40:22] Production.ERROR: pbx CDR StartTime 2025-01-10 12:40:05 - End Time 2025-01-10 15:40:05 [2025-01-10 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217898', 'tblTempUsageDetail_20' ) start [2025-01-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217898', 'tblTempUsageDetail_20' ) end [2025-01-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217898', 'tblTempVendorCDR_20' ) start [2025-01-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217898', 'tblTempVendorCDR_20' ) end [2025-01-10 15:40:22] Production.INFO: ProcessCDR(1,14217898,1,1,2) [2025-01-10 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217898', 'tblTempUsageDetail_20' ) start [2025-01-10 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217898', 'tblTempUsageDetail_20' ) end [2025-01-10 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:40:27] Production.INFO: ==663== Releasing lock... [2025-01-10 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:40:27] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:41:05 [end_date_ymd] => 2025-01-10 15:41:05 [RateCDR] => 1 ) [2025-01-10 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:41:05' and `end` < '2025-01-10 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:41:22] Production.INFO: count ==3515 [2025-01-10 15:41:23] Production.ERROR: pbx CDR StartTime 2025-01-10 12:41:05 - End Time 2025-01-10 15:41:05 [2025-01-10 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217903', 'tblTempUsageDetail_20' ) start [2025-01-10 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217903', 'tblTempUsageDetail_20' ) end [2025-01-10 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217903', 'tblTempVendorCDR_20' ) start [2025-01-10 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217903', 'tblTempVendorCDR_20' ) end [2025-01-10 15:41:23] Production.INFO: ProcessCDR(1,14217903,1,1,2) [2025-01-10 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217903', 'tblTempUsageDetail_20' ) start [2025-01-10 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217903', 'tblTempUsageDetail_20' ) end [2025-01-10 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:41:28] Production.INFO: ==761== Releasing lock... [2025-01-10 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:41:28] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:42:05 [end_date_ymd] => 2025-01-10 15:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:42:05' and `end` < '2025-01-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-01-10 15:42:19] Production.INFO: count ==3509 [2025-01-10 15:42:21] Production.ERROR: pbx CDR StartTime 2025-01-10 12:42:05 - End Time 2025-01-10 15:42:05 [2025-01-10 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217908', 'tblTempUsageDetail_20' ) start [2025-01-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217908', 'tblTempUsageDetail_20' ) end [2025-01-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217908', 'tblTempVendorCDR_20' ) start [2025-01-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217908', 'tblTempVendorCDR_20' ) end [2025-01-10 15:42:21] Production.INFO: ProcessCDR(1,14217908,1,1,2) [2025-01-10 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217908', 'tblTempUsageDetail_20' ) start [2025-01-10 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217908', 'tblTempUsageDetail_20' ) end [2025-01-10 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:42:26] Production.INFO: ==836== Releasing lock... [2025-01-10 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:42:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:43:05 [end_date_ymd] => 2025-01-10 15:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:43:05' and `end` < '2025-01-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-01-10 15:43:30] Production.INFO: count ==3514 [2025-01-10 15:43:32] Production.ERROR: pbx CDR StartTime 2025-01-10 12:43:05 - End Time 2025-01-10 15:43:05 [2025-01-10 15:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217913', 'tblTempUsageDetail_20' ) start [2025-01-10 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217913', 'tblTempUsageDetail_20' ) end [2025-01-10 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217913', 'tblTempVendorCDR_20' ) start [2025-01-10 15:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217913', 'tblTempVendorCDR_20' ) end [2025-01-10 15:43:32] Production.INFO: ProcessCDR(1,14217913,1,1,2) [2025-01-10 15:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217913', 'tblTempUsageDetail_20' ) start [2025-01-10 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217913', 'tblTempUsageDetail_20' ) end [2025-01-10 15:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:43:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:43:37] Production.INFO: ==927== Releasing lock... [2025-01-10 15:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:43:37] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:44:05 [end_date_ymd] => 2025-01-10 15:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:44:05' and `end` < '2025-01-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-01-10 15:44:27] Production.INFO: count ==3534 [2025-01-10 15:44:28] Production.ERROR: pbx CDR StartTime 2025-01-10 12:44:05 - End Time 2025-01-10 15:44:05 [2025-01-10 15:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217918', 'tblTempUsageDetail_20' ) start [2025-01-10 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217918', 'tblTempUsageDetail_20' ) end [2025-01-10 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217918', 'tblTempVendorCDR_20' ) start [2025-01-10 15:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217918', 'tblTempVendorCDR_20' ) end [2025-01-10 15:44:29] Production.INFO: ProcessCDR(1,14217918,1,1,2) [2025-01-10 15:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217918', 'tblTempUsageDetail_20' ) start [2025-01-10 15:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217918', 'tblTempUsageDetail_20' ) end [2025-01-10 15:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:44:33] Production.INFO: ==1017== Releasing lock... [2025-01-10 15:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:44:33] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:45:05 [end_date_ymd] => 2025-01-10 15:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:45:05' and `end` < '2025-01-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-01-10 15:45:28] Production.INFO: count ==3546 [2025-01-10 15:45:29] Production.ERROR: pbx CDR StartTime 2025-01-10 12:45:05 - End Time 2025-01-10 15:45:05 [2025-01-10 15:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217923', 'tblTempUsageDetail_20' ) start [2025-01-10 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217923', 'tblTempUsageDetail_20' ) end [2025-01-10 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217923', 'tblTempVendorCDR_20' ) start [2025-01-10 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217923', 'tblTempVendorCDR_20' ) end [2025-01-10 15:45:30] Production.INFO: ProcessCDR(1,14217923,1,1,2) [2025-01-10 15:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217923', 'tblTempUsageDetail_20' ) start [2025-01-10 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217923', 'tblTempUsageDetail_20' ) end [2025-01-10 15:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:45:34] Production.INFO: ==1116== Releasing lock... [2025-01-10 15:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:45:34] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:46:05 [end_date_ymd] => 2025-01-10 15:46:05 [RateCDR] => 1 ) [2025-01-10 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:46:05' and `end` < '2025-01-10 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:46:23] Production.INFO: count ==3533 [2025-01-10 15:46:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:46:05 - End Time 2025-01-10 15:46:05 [2025-01-10 15:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217928', 'tblTempUsageDetail_20' ) start [2025-01-10 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217928', 'tblTempUsageDetail_20' ) end [2025-01-10 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217928', 'tblTempVendorCDR_20' ) start [2025-01-10 15:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217928', 'tblTempVendorCDR_20' ) end [2025-01-10 15:46:25] Production.INFO: ProcessCDR(1,14217928,1,1,2) [2025-01-10 15:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217928', 'tblTempUsageDetail_20' ) start [2025-01-10 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217928', 'tblTempUsageDetail_20' ) end [2025-01-10 15:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:46:30] Production.INFO: ==1217== Releasing lock... [2025-01-10 15:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:46:30] Production.INFO: 55 MB #Memory Used# [2025-01-10 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:47:05 [end_date_ymd] => 2025-01-10 15:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:47:05' and `end` < '2025-01-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-01-10 15:47:29] Production.INFO: count ==3524 [2025-01-10 15:47:31] Production.ERROR: pbx CDR StartTime 2025-01-10 12:47:05 - End Time 2025-01-10 15:47:05 [2025-01-10 15:47:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217933', 'tblTempUsageDetail_20' ) start [2025-01-10 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217933', 'tblTempUsageDetail_20' ) end [2025-01-10 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217933', 'tblTempVendorCDR_20' ) start [2025-01-10 15:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217933', 'tblTempVendorCDR_20' ) end [2025-01-10 15:47:31] Production.INFO: ProcessCDR(1,14217933,1,1,2) [2025-01-10 15:47:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:47:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:47:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:47:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217933', 'tblTempUsageDetail_20' ) start [2025-01-10 15:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217933', 'tblTempUsageDetail_20' ) end [2025-01-10 15:47:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:47:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:47:36] Production.INFO: ==1324== Releasing lock... [2025-01-10 15:47:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:47:36] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:48:05 [end_date_ymd] => 2025-01-10 15:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:48:05' and `end` < '2025-01-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-01-10 15:48:24] Production.INFO: count ==3505 [2025-01-10 15:48:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:48:05 - End Time 2025-01-10 15:48:05 [2025-01-10 15:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217938', 'tblTempUsageDetail_20' ) start [2025-01-10 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217938', 'tblTempUsageDetail_20' ) end [2025-01-10 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217938', 'tblTempVendorCDR_20' ) start [2025-01-10 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217938', 'tblTempVendorCDR_20' ) end [2025-01-10 15:48:26] Production.INFO: ProcessCDR(1,14217938,1,1,2) [2025-01-10 15:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217938', 'tblTempUsageDetail_20' ) start [2025-01-10 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217938', 'tblTempUsageDetail_20' ) end [2025-01-10 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:48:30] Production.INFO: ==1414== Releasing lock... [2025-01-10 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:48:30] Production.INFO: 55 MB #Memory Used# [2025-01-10 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:49:05 [end_date_ymd] => 2025-01-10 15:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:49:05' and `end` < '2025-01-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-01-10 15:49:24] Production.INFO: count ==3491 [2025-01-10 15:49:26] Production.ERROR: pbx CDR StartTime 2025-01-10 12:49:05 - End Time 2025-01-10 15:49:05 [2025-01-10 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217943', 'tblTempUsageDetail_20' ) start [2025-01-10 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217943', 'tblTempUsageDetail_20' ) end [2025-01-10 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217943', 'tblTempVendorCDR_20' ) start [2025-01-10 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217943', 'tblTempVendorCDR_20' ) end [2025-01-10 15:49:26] Production.INFO: ProcessCDR(1,14217943,1,1,2) [2025-01-10 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217943', 'tblTempUsageDetail_20' ) start [2025-01-10 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217943', 'tblTempUsageDetail_20' ) end [2025-01-10 15:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:49:30] Production.INFO: ==1535== Releasing lock... [2025-01-10 15:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:49:30] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:50:05 [end_date_ymd] => 2025-01-10 15:50:05 [RateCDR] => 1 ) [2025-01-10 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:50:05' and `end` < '2025-01-10 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:50:30] Production.INFO: count ==3459 [2025-01-10 15:50:32] Production.ERROR: pbx CDR StartTime 2025-01-10 12:50:05 - End Time 2025-01-10 15:50:05 [2025-01-10 15:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217949', 'tblTempUsageDetail_20' ) start [2025-01-10 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217949', 'tblTempUsageDetail_20' ) end [2025-01-10 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217949', 'tblTempVendorCDR_20' ) start [2025-01-10 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217949', 'tblTempVendorCDR_20' ) end [2025-01-10 15:50:32] Production.INFO: ProcessCDR(1,14217949,1,1,2) [2025-01-10 15:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217949', 'tblTempUsageDetail_20' ) start [2025-01-10 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217949', 'tblTempUsageDetail_20' ) end [2025-01-10 15:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:50:37] Production.INFO: ==1640== Releasing lock... [2025-01-10 15:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:50:37] Production.INFO: 54 MB #Memory Used# [2025-01-10 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:51:04 [end_date_ymd] => 2025-01-10 15:51:04 [RateCDR] => 1 ) [2025-01-10 15: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-01-10 12:51:04' and `end` < '2025-01-10 15: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-01-10 15:51:23] Production.INFO: count ==3564 [2025-01-10 15:51:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:51:04 - End Time 2025-01-10 15:51:04 [2025-01-10 15:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217954', 'tblTempUsageDetail_20' ) start [2025-01-10 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217954', 'tblTempUsageDetail_20' ) end [2025-01-10 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217954', 'tblTempVendorCDR_20' ) start [2025-01-10 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217954', 'tblTempVendorCDR_20' ) end [2025-01-10 15:51:25] Production.INFO: ProcessCDR(1,14217954,1,1,2) [2025-01-10 15:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217954', 'tblTempUsageDetail_20' ) start [2025-01-10 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217954', 'tblTempUsageDetail_20' ) end [2025-01-10 15:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:51:30] Production.INFO: ==1734== Releasing lock... [2025-01-10 15:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:51:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:52:05 [end_date_ymd] => 2025-01-10 15:52:05 [RateCDR] => 1 ) [2025-01-10 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:52:05' and `end` < '2025-01-10 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:52:19] Production.INFO: count ==3575 [2025-01-10 15:52:21] Production.ERROR: pbx CDR StartTime 2025-01-10 12:52:05 - End Time 2025-01-10 15:52:05 [2025-01-10 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217959', 'tblTempUsageDetail_20' ) start [2025-01-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217959', 'tblTempUsageDetail_20' ) end [2025-01-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217959', 'tblTempVendorCDR_20' ) start [2025-01-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217959', 'tblTempVendorCDR_20' ) end [2025-01-10 15:52:21] Production.INFO: ProcessCDR(1,14217959,1,1,2) [2025-01-10 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217959', 'tblTempUsageDetail_20' ) start [2025-01-10 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217959', 'tblTempUsageDetail_20' ) end [2025-01-10 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:52:26] Production.INFO: ==1830== Releasing lock... [2025-01-10 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:52:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:53:05 [end_date_ymd] => 2025-01-10 15:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:53:05' and `end` < '2025-01-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-01-10 15:53:20] Production.INFO: count ==3539 [2025-01-10 15:53:22] Production.ERROR: pbx CDR StartTime 2025-01-10 12:53:05 - End Time 2025-01-10 15:53:05 [2025-01-10 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217964', 'tblTempUsageDetail_20' ) start [2025-01-10 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217964', 'tblTempUsageDetail_20' ) end [2025-01-10 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217964', 'tblTempVendorCDR_20' ) start [2025-01-10 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217964', 'tblTempVendorCDR_20' ) end [2025-01-10 15:53:22] Production.INFO: ProcessCDR(1,14217964,1,1,2) [2025-01-10 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217964', 'tblTempUsageDetail_20' ) start [2025-01-10 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217964', 'tblTempUsageDetail_20' ) end [2025-01-10 15:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:53:25] Production.INFO: ==1958== Releasing lock... [2025-01-10 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:53:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:54:05 [end_date_ymd] => 2025-01-10 15:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:54:05' and `end` < '2025-01-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-01-10 15:54:21] Production.INFO: count ==3526 [2025-01-10 15:54:23] Production.ERROR: pbx CDR StartTime 2025-01-10 12:54:05 - End Time 2025-01-10 15:54:05 [2025-01-10 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217969', 'tblTempUsageDetail_20' ) start [2025-01-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217969', 'tblTempUsageDetail_20' ) end [2025-01-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217969', 'tblTempVendorCDR_20' ) start [2025-01-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217969', 'tblTempVendorCDR_20' ) end [2025-01-10 15:54:23] Production.INFO: ProcessCDR(1,14217969,1,1,2) [2025-01-10 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217969', 'tblTempUsageDetail_20' ) start [2025-01-10 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217969', 'tblTempUsageDetail_20' ) end [2025-01-10 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:54:27] Production.INFO: ==2055== Releasing lock... [2025-01-10 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:54:27] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:55:05 [end_date_ymd] => 2025-01-10 15:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:55:05' and `end` < '2025-01-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-01-10 15:55:29] Production.INFO: count ==3516 [2025-01-10 15:55:30] Production.ERROR: pbx CDR StartTime 2025-01-10 12:55:05 - End Time 2025-01-10 15:55:05 [2025-01-10 15:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217974', 'tblTempUsageDetail_20' ) start [2025-01-10 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217974', 'tblTempUsageDetail_20' ) end [2025-01-10 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217974', 'tblTempVendorCDR_20' ) start [2025-01-10 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217974', 'tblTempVendorCDR_20' ) end [2025-01-10 15:55:30] Production.INFO: ProcessCDR(1,14217974,1,1,2) [2025-01-10 15:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217974', 'tblTempUsageDetail_20' ) start [2025-01-10 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217974', 'tblTempUsageDetail_20' ) end [2025-01-10 15:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:55:35] Production.INFO: ==2146== Releasing lock... [2025-01-10 15:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:55:35] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:56:05 [end_date_ymd] => 2025-01-10 15:56:05 [RateCDR] => 1 ) [2025-01-10 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:56:05' and `end` < '2025-01-10 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:56:27] Production.INFO: count ==3526 [2025-01-10 15:56:28] Production.ERROR: pbx CDR StartTime 2025-01-10 12:56:05 - End Time 2025-01-10 15:56:05 [2025-01-10 15:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217979', 'tblTempUsageDetail_20' ) start [2025-01-10 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217979', 'tblTempUsageDetail_20' ) end [2025-01-10 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217979', 'tblTempVendorCDR_20' ) start [2025-01-10 15:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217979', 'tblTempVendorCDR_20' ) end [2025-01-10 15:56:28] Production.INFO: ProcessCDR(1,14217979,1,1,2) [2025-01-10 15:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217979', 'tblTempUsageDetail_20' ) start [2025-01-10 15:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217979', 'tblTempUsageDetail_20' ) end [2025-01-10 15:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:56:33] Production.INFO: ==2237== Releasing lock... [2025-01-10 15:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:56:33] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:57:05 [end_date_ymd] => 2025-01-10 15:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:57:05' and `end` < '2025-01-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-01-10 15:57:23] Production.INFO: count ==3532 [2025-01-10 15:57:24] Production.ERROR: pbx CDR StartTime 2025-01-10 12:57:05 - End Time 2025-01-10 15:57:05 [2025-01-10 15:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217984', 'tblTempUsageDetail_20' ) start [2025-01-10 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217984', 'tblTempUsageDetail_20' ) end [2025-01-10 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217984', 'tblTempVendorCDR_20' ) start [2025-01-10 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217984', 'tblTempVendorCDR_20' ) end [2025-01-10 15:57:25] Production.INFO: ProcessCDR(1,14217984,1,1,2) [2025-01-10 15:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217984', 'tblTempUsageDetail_20' ) start [2025-01-10 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217984', 'tblTempUsageDetail_20' ) end [2025-01-10 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:57:28] Production.INFO: ==2335== Releasing lock... [2025-01-10 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:57:28] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:58:04 [end_date_ymd] => 2025-01-10 15:58:04 [RateCDR] => 1 ) [2025-01-10 15:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 12:58:04' and `end` < '2025-01-10 15:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 15:58:25] Production.INFO: count ==3551 [2025-01-10 15:58:27] Production.ERROR: pbx CDR StartTime 2025-01-10 12:58:04 - End Time 2025-01-10 15:58:04 [2025-01-10 15:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217989', 'tblTempUsageDetail_20' ) start [2025-01-10 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217989', 'tblTempUsageDetail_20' ) end [2025-01-10 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217989', 'tblTempVendorCDR_20' ) start [2025-01-10 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217989', 'tblTempVendorCDR_20' ) end [2025-01-10 15:58:27] Production.INFO: ProcessCDR(1,14217989,1,1,2) [2025-01-10 15:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217989', 'tblTempUsageDetail_20' ) start [2025-01-10 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217989', 'tblTempUsageDetail_20' ) end [2025-01-10 15:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:58:32] Production.INFO: ==2433== Releasing lock... [2025-01-10 15:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:58:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 12:59:05 [end_date_ymd] => 2025-01-10 15:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 12:59:05' and `end` < '2025-01-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-01-10 15:59:24] Production.INFO: count ==3561 [2025-01-10 15:59:25] Production.ERROR: pbx CDR StartTime 2025-01-10 12:59:05 - End Time 2025-01-10 15:59:05 [2025-01-10 15:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217994', 'tblTempUsageDetail_20' ) start [2025-01-10 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14217994', 'tblTempUsageDetail_20' ) end [2025-01-10 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217994', 'tblTempVendorCDR_20' ) start [2025-01-10 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14217994', 'tblTempVendorCDR_20' ) end [2025-01-10 15:59:25] Production.INFO: ProcessCDR(1,14217994,1,1,2) [2025-01-10 15:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14217994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14217994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 15:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14217994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14217994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217994', 'tblTempUsageDetail_20' ) start [2025-01-10 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14217994', 'tblTempUsageDetail_20' ) end [2025-01-10 15:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 15:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 15:59:30] Production.INFO: ==2518== Releasing lock... [2025-01-10 15:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 15:59:30] Production.INFO: 55 MB #Memory Used# [2025-01-10 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:00:05 [end_date_ymd] => 2025-01-10 16:00:05 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:00:05' and `end` < '2025-01-10 16: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-01-10 16:00:38] Production.INFO: count ==3577 [2025-01-10 16:00:39] Production.ERROR: pbx CDR StartTime 2025-01-10 13:00:05 - End Time 2025-01-10 16:00:05 [2025-01-10 16:00:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218000', 'tblTempUsageDetail_20' ) start [2025-01-10 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218000', 'tblTempUsageDetail_20' ) end [2025-01-10 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218000', 'tblTempVendorCDR_20' ) start [2025-01-10 16:00:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218000', 'tblTempVendorCDR_20' ) end [2025-01-10 16:00:40] Production.INFO: ProcessCDR(1,14218000,1,1,2) [2025-01-10 16:00:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:00:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:00:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:00:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218000', 'tblTempUsageDetail_20' ) start [2025-01-10 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218000', 'tblTempUsageDetail_20' ) end [2025-01-10 16:00:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:00:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:00:44] Production.INFO: ==2598== Releasing lock... [2025-01-10 16:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:00:44] Production.INFO: 55 MB #Memory Used# [2025-01-10 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:01:05 [end_date_ymd] => 2025-01-10 16:01:05 [RateCDR] => 1 ) [2025-01-10 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:01:05' and `end` < '2025-01-10 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:01:35] Production.INFO: count ==3689 [2025-01-10 16:01:37] Production.ERROR: pbx CDR StartTime 2025-01-10 13:01:05 - End Time 2025-01-10 16:01:05 [2025-01-10 16:01:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218005', 'tblTempUsageDetail_20' ) start [2025-01-10 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218005', 'tblTempUsageDetail_20' ) end [2025-01-10 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218005', 'tblTempVendorCDR_20' ) start [2025-01-10 16:01:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218005', 'tblTempVendorCDR_20' ) end [2025-01-10 16:01:37] Production.INFO: ProcessCDR(1,14218005,1,1,2) [2025-01-10 16:01:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:01:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:01:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:01:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218005', 'tblTempUsageDetail_20' ) start [2025-01-10 16:01:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218005', 'tblTempUsageDetail_20' ) end [2025-01-10 16:01:42] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:01:42] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:01:42] Production.INFO: ==2697== Releasing lock... [2025-01-10 16:01:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:01:42] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:02:04 [end_date_ymd] => 2025-01-10 16:02:04 [RateCDR] => 1 ) [2025-01-10 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:02:04' and `end` < '2025-01-10 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:02:33] Production.INFO: count ==3694 [2025-01-10 16:02:34] Production.ERROR: pbx CDR StartTime 2025-01-10 13:02:04 - End Time 2025-01-10 16:02:04 [2025-01-10 16:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218010', 'tblTempUsageDetail_20' ) start [2025-01-10 16:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218010', 'tblTempUsageDetail_20' ) end [2025-01-10 16:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218010', 'tblTempVendorCDR_20' ) start [2025-01-10 16:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218010', 'tblTempVendorCDR_20' ) end [2025-01-10 16:02:35] Production.INFO: ProcessCDR(1,14218010,1,1,2) [2025-01-10 16:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218010', 'tblTempUsageDetail_20' ) start [2025-01-10 16:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218010', 'tblTempUsageDetail_20' ) end [2025-01-10 16:02:40] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:02:40] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:02:40] Production.INFO: ==2773== Releasing lock... [2025-01-10 16:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:02:40] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:03:05 [end_date_ymd] => 2025-01-10 16:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:03:05' and `end` < '2025-01-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-01-10 16:03:32] Production.INFO: count ==3675 [2025-01-10 16:03:34] Production.ERROR: pbx CDR StartTime 2025-01-10 13:03:05 - End Time 2025-01-10 16:03:05 [2025-01-10 16:03:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218015', 'tblTempUsageDetail_20' ) start [2025-01-10 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218015', 'tblTempUsageDetail_20' ) end [2025-01-10 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218015', 'tblTempVendorCDR_20' ) start [2025-01-10 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218015', 'tblTempVendorCDR_20' ) end [2025-01-10 16:03:34] Production.INFO: ProcessCDR(1,14218015,1,1,2) [2025-01-10 16:03:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218015', 'tblTempUsageDetail_20' ) start [2025-01-10 16:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218015', 'tblTempUsageDetail_20' ) end [2025-01-10 16:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:03:39] Production.INFO: ==2853== Releasing lock... [2025-01-10 16:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:03:39] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:04:04 [end_date_ymd] => 2025-01-10 16:04:04 [RateCDR] => 1 ) [2025-01-10 16:04: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-01-10 13:04:04' and `end` < '2025-01-10 16:04: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-01-10 16:04:34] Production.INFO: count ==3710 [2025-01-10 16:04:36] Production.ERROR: pbx CDR StartTime 2025-01-10 13:04:04 - End Time 2025-01-10 16:04:04 [2025-01-10 16:04:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218020', 'tblTempUsageDetail_20' ) start [2025-01-10 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218020', 'tblTempUsageDetail_20' ) end [2025-01-10 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218020', 'tblTempVendorCDR_20' ) start [2025-01-10 16:04:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218020', 'tblTempVendorCDR_20' ) end [2025-01-10 16:04:36] Production.INFO: ProcessCDR(1,14218020,1,1,2) [2025-01-10 16:04:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:04:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218020', 'tblTempUsageDetail_20' ) start [2025-01-10 16:04:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218020', 'tblTempUsageDetail_20' ) end [2025-01-10 16:04:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:04:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:04:41] Production.INFO: ==2932== Releasing lock... [2025-01-10 16:04:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:04:41] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:05:04 [end_date_ymd] => 2025-01-10 16:05:04 [RateCDR] => 1 ) [2025-01-10 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:05:04' and `end` < '2025-01-10 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:05:33] Production.INFO: count ==3711 [2025-01-10 16:05:35] Production.ERROR: pbx CDR StartTime 2025-01-10 13:05:04 - End Time 2025-01-10 16:05:04 [2025-01-10 16:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218025', 'tblTempUsageDetail_20' ) start [2025-01-10 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218025', 'tblTempUsageDetail_20' ) end [2025-01-10 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218025', 'tblTempVendorCDR_20' ) start [2025-01-10 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218025', 'tblTempVendorCDR_20' ) end [2025-01-10 16:05:35] Production.INFO: ProcessCDR(1,14218025,1,1,2) [2025-01-10 16:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218025', 'tblTempUsageDetail_20' ) start [2025-01-10 16:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218025', 'tblTempUsageDetail_20' ) end [2025-01-10 16:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:05:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:05:39] Production.INFO: ==3011== Releasing lock... [2025-01-10 16:05:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:05:39] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:06:05 [end_date_ymd] => 2025-01-10 16:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:06:05' and `end` < '2025-01-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-01-10 16:06:24] Production.INFO: count ==3678 [2025-01-10 16:06:26] Production.ERROR: pbx CDR StartTime 2025-01-10 13:06:05 - End Time 2025-01-10 16:06:05 [2025-01-10 16:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218030', 'tblTempUsageDetail_20' ) start [2025-01-10 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218030', 'tblTempUsageDetail_20' ) end [2025-01-10 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218030', 'tblTempVendorCDR_20' ) start [2025-01-10 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218030', 'tblTempVendorCDR_20' ) end [2025-01-10 16:06:26] Production.INFO: ProcessCDR(1,14218030,1,1,2) [2025-01-10 16:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218030', 'tblTempUsageDetail_20' ) start [2025-01-10 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218030', 'tblTempUsageDetail_20' ) end [2025-01-10 16:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:06:31] Production.INFO: ==3086== Releasing lock... [2025-01-10 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:06:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:07:04 [end_date_ymd] => 2025-01-10 16:07:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:07:04' and `end` < '2025-01-10 16: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-01-10 16:07:20] Production.INFO: count ==3688 [2025-01-10 16:07:22] Production.ERROR: pbx CDR StartTime 2025-01-10 13:07:04 - End Time 2025-01-10 16:07:04 [2025-01-10 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218035', 'tblTempUsageDetail_20' ) start [2025-01-10 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218035', 'tblTempUsageDetail_20' ) end [2025-01-10 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218035', 'tblTempVendorCDR_20' ) start [2025-01-10 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218035', 'tblTempVendorCDR_20' ) end [2025-01-10 16:07:22] Production.INFO: ProcessCDR(1,14218035,1,1,2) [2025-01-10 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218035', 'tblTempUsageDetail_20' ) start [2025-01-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218035', 'tblTempUsageDetail_20' ) end [2025-01-10 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:07:26] Production.INFO: ==3160== Releasing lock... [2025-01-10 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:07:26] Production.INFO: 56 MB #Memory Used# [2025-01-10 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:08:05 [end_date_ymd] => 2025-01-10 16:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:08:05' and `end` < '2025-01-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-01-10 16:08:26] Production.INFO: count ==3692 [2025-01-10 16:08:27] Production.ERROR: pbx CDR StartTime 2025-01-10 13:08:05 - End Time 2025-01-10 16:08:05 [2025-01-10 16:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218040', 'tblTempUsageDetail_20' ) start [2025-01-10 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218040', 'tblTempUsageDetail_20' ) end [2025-01-10 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218040', 'tblTempVendorCDR_20' ) start [2025-01-10 16:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218040', 'tblTempVendorCDR_20' ) end [2025-01-10 16:08:27] Production.INFO: ProcessCDR(1,14218040,1,1,2) [2025-01-10 16:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218040', 'tblTempUsageDetail_20' ) start [2025-01-10 16:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218040', 'tblTempUsageDetail_20' ) end [2025-01-10 16:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:08:32] Production.INFO: ==3235== Releasing lock... [2025-01-10 16:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:08:32] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:09:04 [end_date_ymd] => 2025-01-10 16:09:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:09:04' and `end` < '2025-01-10 16: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-01-10 16:09:29] Production.INFO: count ==3712 [2025-01-10 16:09:31] Production.ERROR: pbx CDR StartTime 2025-01-10 13:09:04 - End Time 2025-01-10 16:09:04 [2025-01-10 16:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218045', 'tblTempUsageDetail_20' ) start [2025-01-10 16:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218045', 'tblTempUsageDetail_20' ) end [2025-01-10 16:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218045', 'tblTempVendorCDR_20' ) start [2025-01-10 16:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218045', 'tblTempVendorCDR_20' ) end [2025-01-10 16:09:31] Production.INFO: ProcessCDR(1,14218045,1,1,2) [2025-01-10 16:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218045', 'tblTempUsageDetail_20' ) start [2025-01-10 16:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218045', 'tblTempUsageDetail_20' ) end [2025-01-10 16:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:09:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:09:36] Production.INFO: ==3356== Releasing lock... [2025-01-10 16:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:09:36] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:10:06 [end_date_ymd] => 2025-01-10 16:10:06 [RateCDR] => 1 ) [2025-01-10 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:10:06' and `end` < '2025-01-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-01-10 16:10:32] Production.INFO: count ==3750 [2025-01-10 16:10:34] Production.ERROR: pbx CDR StartTime 2025-01-10 13:10:06 - End Time 2025-01-10 16:10:06 [2025-01-10 16:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218051', 'tblTempUsageDetail_20' ) start [2025-01-10 16:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218051', 'tblTempUsageDetail_20' ) end [2025-01-10 16:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218051', 'tblTempVendorCDR_20' ) start [2025-01-10 16:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218051', 'tblTempVendorCDR_20' ) end [2025-01-10 16:10:34] Production.INFO: ProcessCDR(1,14218051,1,1,2) [2025-01-10 16:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218051', 'tblTempUsageDetail_20' ) start [2025-01-10 16:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218051', 'tblTempUsageDetail_20' ) end [2025-01-10 16:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:10:39] Production.INFO: ==3439== Releasing lock... [2025-01-10 16:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:10:39] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:11:05 [end_date_ymd] => 2025-01-10 16:11:05 [RateCDR] => 1 ) [2025-01-10 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:11:05' and `end` < '2025-01-10 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:11:26] Production.INFO: count ==3865 [2025-01-10 16:11:28] Production.ERROR: pbx CDR StartTime 2025-01-10 13:11:05 - End Time 2025-01-10 16:11:05 [2025-01-10 16:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218056', 'tblTempUsageDetail_20' ) start [2025-01-10 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218056', 'tblTempUsageDetail_20' ) end [2025-01-10 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218056', 'tblTempVendorCDR_20' ) start [2025-01-10 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218056', 'tblTempVendorCDR_20' ) end [2025-01-10 16:11:28] Production.INFO: ProcessCDR(1,14218056,1,1,2) [2025-01-10 16:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218056', 'tblTempUsageDetail_20' ) start [2025-01-10 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218056', 'tblTempUsageDetail_20' ) end [2025-01-10 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:11:33] Production.INFO: ==3530== Releasing lock... [2025-01-10 16:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:11:33] Production.INFO: 57 MB #Memory Used# [2025-01-10 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:12:05 [end_date_ymd] => 2025-01-10 16:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:12:05' and `end` < '2025-01-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-01-10 16:12:23] Production.INFO: count ==3878 [2025-01-10 16:12:24] Production.ERROR: pbx CDR StartTime 2025-01-10 13:12:05 - End Time 2025-01-10 16:12:05 [2025-01-10 16:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218061', 'tblTempUsageDetail_20' ) start [2025-01-10 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218061', 'tblTempUsageDetail_20' ) end [2025-01-10 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218061', 'tblTempVendorCDR_20' ) start [2025-01-10 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218061', 'tblTempVendorCDR_20' ) end [2025-01-10 16:12:24] Production.INFO: ProcessCDR(1,14218061,1,1,2) [2025-01-10 16:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218061', 'tblTempUsageDetail_20' ) start [2025-01-10 16:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218061', 'tblTempUsageDetail_20' ) end [2025-01-10 16:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:12:29] Production.INFO: ==3676== Releasing lock... [2025-01-10 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:12:29] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:13:05 [end_date_ymd] => 2025-01-10 16:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:13:05' and `end` < '2025-01-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-01-10 16:13:29] Production.INFO: count ==3894 [2025-01-10 16:13:31] Production.ERROR: pbx CDR StartTime 2025-01-10 13:13:05 - End Time 2025-01-10 16:13:05 [2025-01-10 16:13:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218066', 'tblTempUsageDetail_20' ) start [2025-01-10 16:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218066', 'tblTempUsageDetail_20' ) end [2025-01-10 16:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218066', 'tblTempVendorCDR_20' ) start [2025-01-10 16:13:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218066', 'tblTempVendorCDR_20' ) end [2025-01-10 16:13:31] Production.INFO: ProcessCDR(1,14218066,1,1,2) [2025-01-10 16:13:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:13:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:13:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:13:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218066', 'tblTempUsageDetail_20' ) start [2025-01-10 16:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218066', 'tblTempUsageDetail_20' ) end [2025-01-10 16:13:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:13:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:13:36] Production.INFO: ==3756== Releasing lock... [2025-01-10 16:13:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:13:36] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:14:05 [end_date_ymd] => 2025-01-10 16:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:14:05' and `end` < '2025-01-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-01-10 16:14:24] Production.INFO: count ==3889 [2025-01-10 16:14:25] Production.ERROR: pbx CDR StartTime 2025-01-10 13:14:05 - End Time 2025-01-10 16:14:05 [2025-01-10 16:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218071', 'tblTempUsageDetail_20' ) start [2025-01-10 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218071', 'tblTempUsageDetail_20' ) end [2025-01-10 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218071', 'tblTempVendorCDR_20' ) start [2025-01-10 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218071', 'tblTempVendorCDR_20' ) end [2025-01-10 16:14:26] Production.INFO: ProcessCDR(1,14218071,1,1,2) [2025-01-10 16:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218071', 'tblTempUsageDetail_20' ) start [2025-01-10 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218071', 'tblTempUsageDetail_20' ) end [2025-01-10 16:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:14:30] Production.INFO: ==3836== Releasing lock... [2025-01-10 16:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:14:30] Production.INFO: 57 MB #Memory Used# [2025-01-10 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:15:05 [end_date_ymd] => 2025-01-10 16:15:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:15:05' and `end` < '2025-01-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-01-10 16:15:37] Production.INFO: count ==3884 [2025-01-10 16:15:39] Production.ERROR: pbx CDR StartTime 2025-01-10 13:15:05 - End Time 2025-01-10 16:15:05 [2025-01-10 16:15:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:15:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218076', 'tblTempUsageDetail_20' ) start [2025-01-10 16:15:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218076', 'tblTempUsageDetail_20' ) end [2025-01-10 16:15:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218076', 'tblTempVendorCDR_20' ) start [2025-01-10 16:15:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218076', 'tblTempVendorCDR_20' ) end [2025-01-10 16:15:39] Production.INFO: ProcessCDR(1,14218076,1,1,2) [2025-01-10 16:15:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:15:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:15:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:15:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:15:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218076', 'tblTempUsageDetail_20' ) start [2025-01-10 16:15:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218076', 'tblTempUsageDetail_20' ) end [2025-01-10 16:15:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:15:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:15:44] Production.INFO: ==3916== Releasing lock... [2025-01-10 16:15:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:15:44] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:16:04 [end_date_ymd] => 2025-01-10 16:16:04 [RateCDR] => 1 ) [2025-01-10 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:16:04' and `end` < '2025-01-10 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:16:34] Production.INFO: count ==3868 [2025-01-10 16:16:36] Production.ERROR: pbx CDR StartTime 2025-01-10 13:16:04 - End Time 2025-01-10 16:16:04 [2025-01-10 16:16:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218081', 'tblTempUsageDetail_20' ) start [2025-01-10 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218081', 'tblTempUsageDetail_20' ) end [2025-01-10 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218081', 'tblTempVendorCDR_20' ) start [2025-01-10 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218081', 'tblTempVendorCDR_20' ) end [2025-01-10 16:16:36] Production.INFO: ProcessCDR(1,14218081,1,1,2) [2025-01-10 16:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:16:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:16:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:16:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218081', 'tblTempUsageDetail_20' ) start [2025-01-10 16:16:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218081', 'tblTempUsageDetail_20' ) end [2025-01-10 16:16:41] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:16:41] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:16:41] Production.INFO: ==4027== Releasing lock... [2025-01-10 16:16:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:16:41] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:17:05 [end_date_ymd] => 2025-01-10 16:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:17:05' and `end` < '2025-01-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-01-10 16:17:31] Production.INFO: count ==3870 [2025-01-10 16:17:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:17:05 - End Time 2025-01-10 16:17:05 [2025-01-10 16:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218086', 'tblTempUsageDetail_20' ) start [2025-01-10 16:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218086', 'tblTempUsageDetail_20' ) end [2025-01-10 16:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218086', 'tblTempVendorCDR_20' ) start [2025-01-10 16:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218086', 'tblTempVendorCDR_20' ) end [2025-01-10 16:17:33] Production.INFO: ProcessCDR(1,14218086,1,1,2) [2025-01-10 16:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:17:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218086', 'tblTempUsageDetail_20' ) start [2025-01-10 16:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218086', 'tblTempUsageDetail_20' ) end [2025-01-10 16:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:17:37] Production.INFO: ==4107== Releasing lock... [2025-01-10 16:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:17:37] Production.INFO: 57 MB #Memory Used# [2025-01-10 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:18:05 [end_date_ymd] => 2025-01-10 16:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:18:05' and `end` < '2025-01-10 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:18:30] Production.INFO: count ==3859 [2025-01-10 16:18:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:18:05 - End Time 2025-01-10 16:18:05 [2025-01-10 16:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218091', 'tblTempUsageDetail_20' ) start [2025-01-10 16:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218091', 'tblTempUsageDetail_20' ) end [2025-01-10 16:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218091', 'tblTempVendorCDR_20' ) start [2025-01-10 16:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218091', 'tblTempVendorCDR_20' ) end [2025-01-10 16:18:32] Production.INFO: ProcessCDR(1,14218091,1,1,2) [2025-01-10 16:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:18:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:18:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218091', 'tblTempUsageDetail_20' ) start [2025-01-10 16:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218091', 'tblTempUsageDetail_20' ) end [2025-01-10 16:18:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:18:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:18:37] Production.INFO: ==4201== Releasing lock... [2025-01-10 16:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:18:37] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:19:05 [end_date_ymd] => 2025-01-10 16:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:19:05' and `end` < '2025-01-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-01-10 16:19:26] Production.INFO: count ==3853 [2025-01-10 16:19:28] Production.ERROR: pbx CDR StartTime 2025-01-10 13:19:05 - End Time 2025-01-10 16:19:05 [2025-01-10 16:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218096', 'tblTempUsageDetail_20' ) start [2025-01-10 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218096', 'tblTempUsageDetail_20' ) end [2025-01-10 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218096', 'tblTempVendorCDR_20' ) start [2025-01-10 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218096', 'tblTempVendorCDR_20' ) end [2025-01-10 16:19:28] Production.INFO: ProcessCDR(1,14218096,1,1,2) [2025-01-10 16:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218096', 'tblTempUsageDetail_20' ) start [2025-01-10 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218096', 'tblTempUsageDetail_20' ) end [2025-01-10 16:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:19:33] Production.INFO: ==4284== Releasing lock... [2025-01-10 16:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:19:33] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:20:06 [end_date_ymd] => 2025-01-10 16:20:06 [RateCDR] => 1 ) [2025-01-10 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:20:06' and `end` < '2025-01-10 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:20:31] Production.INFO: count ==3848 [2025-01-10 16:20:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:20:06 - End Time 2025-01-10 16:20:06 [2025-01-10 16:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218102', 'tblTempUsageDetail_20' ) start [2025-01-10 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218102', 'tblTempUsageDetail_20' ) end [2025-01-10 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218102', 'tblTempVendorCDR_20' ) start [2025-01-10 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218102', 'tblTempVendorCDR_20' ) end [2025-01-10 16:20:33] Production.INFO: ProcessCDR(1,14218102,1,1,2) [2025-01-10 16:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218102', 'tblTempUsageDetail_20' ) start [2025-01-10 16:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218102', 'tblTempUsageDetail_20' ) end [2025-01-10 16:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:20:37] Production.INFO: ==4365== Releasing lock... [2025-01-10 16:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:20:37] Production.INFO: 56.75 MB #Memory Used# [2025-01-10 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:21:05 [end_date_ymd] => 2025-01-10 16:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:21:05' and `end` < '2025-01-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-01-10 16:21:27] Production.INFO: count ==3983 [2025-01-10 16:21:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:21:05 - End Time 2025-01-10 16:21:05 [2025-01-10 16:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218107', 'tblTempUsageDetail_20' ) start [2025-01-10 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218107', 'tblTempUsageDetail_20' ) end [2025-01-10 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218107', 'tblTempVendorCDR_20' ) start [2025-01-10 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218107', 'tblTempVendorCDR_20' ) end [2025-01-10 16:21:29] Production.INFO: ProcessCDR(1,14218107,1,1,2) [2025-01-10 16:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218107', 'tblTempUsageDetail_20' ) start [2025-01-10 16:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218107', 'tblTempUsageDetail_20' ) end [2025-01-10 16:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:21:34] Production.INFO: ==4474== Releasing lock... [2025-01-10 16:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:21:34] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:22:05 [end_date_ymd] => 2025-01-10 16:22:05 [RateCDR] => 1 ) [2025-01-10 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:22:05' and `end` < '2025-01-10 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:22:27] Production.INFO: count ==4033 [2025-01-10 16:22:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:22:05 - End Time 2025-01-10 16:22:05 [2025-01-10 16:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218112', 'tblTempUsageDetail_20' ) start [2025-01-10 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218112', 'tblTempUsageDetail_20' ) end [2025-01-10 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218112', 'tblTempVendorCDR_20' ) start [2025-01-10 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218112', 'tblTempVendorCDR_20' ) end [2025-01-10 16:22:29] Production.INFO: ProcessCDR(1,14218112,1,1,2) [2025-01-10 16:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218112', 'tblTempUsageDetail_20' ) start [2025-01-10 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218112', 'tblTempUsageDetail_20' ) end [2025-01-10 16:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:22:34] Production.INFO: ==4614== Releasing lock... [2025-01-10 16:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:22:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:23:05 [end_date_ymd] => 2025-01-10 16:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:23:05' and `end` < '2025-01-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-01-10 16:23:24] Production.INFO: count ==4045 [2025-01-10 16:23:25] Production.ERROR: pbx CDR StartTime 2025-01-10 13:23:05 - End Time 2025-01-10 16:23:05 [2025-01-10 16:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218117', 'tblTempUsageDetail_20' ) start [2025-01-10 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218117', 'tblTempUsageDetail_20' ) end [2025-01-10 16:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218117', 'tblTempVendorCDR_20' ) start [2025-01-10 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218117', 'tblTempVendorCDR_20' ) end [2025-01-10 16:23:26] Production.INFO: ProcessCDR(1,14218117,1,1,2) [2025-01-10 16:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218117', 'tblTempUsageDetail_20' ) start [2025-01-10 16:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218117', 'tblTempUsageDetail_20' ) end [2025-01-10 16:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:23:30] Production.INFO: ==4686== Releasing lock... [2025-01-10 16:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:23:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:24:04 [end_date_ymd] => 2025-01-10 16:24:04 [RateCDR] => 1 ) [2025-01-10 16:24: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-01-10 13:24:04' and `end` < '2025-01-10 16:24: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-01-10 16:24:25] Production.INFO: count ==4032 [2025-01-10 16:24:27] Production.ERROR: pbx CDR StartTime 2025-01-10 13:24:04 - End Time 2025-01-10 16:24:04 [2025-01-10 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218122', 'tblTempUsageDetail_20' ) start [2025-01-10 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218122', 'tblTempUsageDetail_20' ) end [2025-01-10 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218122', 'tblTempVendorCDR_20' ) start [2025-01-10 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218122', 'tblTempVendorCDR_20' ) end [2025-01-10 16:24:27] Production.INFO: ProcessCDR(1,14218122,1,1,2) [2025-01-10 16:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218122', 'tblTempUsageDetail_20' ) start [2025-01-10 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218122', 'tblTempUsageDetail_20' ) end [2025-01-10 16:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:24:32] Production.INFO: ==4761== Releasing lock... [2025-01-10 16:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:24:32] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:25:05 [end_date_ymd] => 2025-01-10 16:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:25:05' and `end` < '2025-01-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-01-10 16:25:27] Production.INFO: count ==4040 [2025-01-10 16:25:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:25:05 - End Time 2025-01-10 16:25:05 [2025-01-10 16:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218127', 'tblTempUsageDetail_20' ) start [2025-01-10 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218127', 'tblTempUsageDetail_20' ) end [2025-01-10 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218127', 'tblTempVendorCDR_20' ) start [2025-01-10 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218127', 'tblTempVendorCDR_20' ) end [2025-01-10 16:25:29] Production.INFO: ProcessCDR(1,14218127,1,1,2) [2025-01-10 16:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218127', 'tblTempUsageDetail_20' ) start [2025-01-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218127', 'tblTempUsageDetail_20' ) end [2025-01-10 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:25:33] Production.INFO: ==4875== Releasing lock... [2025-01-10 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:25:33] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:26:05 [end_date_ymd] => 2025-01-10 16:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:26:05' and `end` < '2025-01-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-01-10 16:26:27] Production.INFO: count ==4031 [2025-01-10 16:26:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:26:05 - End Time 2025-01-10 16:26:05 [2025-01-10 16:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218132', 'tblTempUsageDetail_20' ) start [2025-01-10 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218132', 'tblTempUsageDetail_20' ) end [2025-01-10 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218132', 'tblTempVendorCDR_20' ) start [2025-01-10 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218132', 'tblTempVendorCDR_20' ) end [2025-01-10 16:26:29] Production.INFO: ProcessCDR(1,14218132,1,1,2) [2025-01-10 16:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218132', 'tblTempUsageDetail_20' ) start [2025-01-10 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218132', 'tblTempUsageDetail_20' ) end [2025-01-10 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:26:33] Production.INFO: ==4946== Releasing lock... [2025-01-10 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:26:33] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:27:05 [end_date_ymd] => 2025-01-10 16:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:27:05' and `end` < '2025-01-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-01-10 16:27:27] Production.INFO: count ==4031 [2025-01-10 16:27:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:27:05 - End Time 2025-01-10 16:27:05 [2025-01-10 16:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218137', 'tblTempUsageDetail_20' ) start [2025-01-10 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218137', 'tblTempUsageDetail_20' ) end [2025-01-10 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218137', 'tblTempVendorCDR_20' ) start [2025-01-10 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218137', 'tblTempVendorCDR_20' ) end [2025-01-10 16:27:29] Production.INFO: ProcessCDR(1,14218137,1,1,2) [2025-01-10 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218137', 'tblTempUsageDetail_20' ) start [2025-01-10 16:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218137', 'tblTempUsageDetail_20' ) end [2025-01-10 16:27:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:27:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:27:34] Production.INFO: ==5020== Releasing lock... [2025-01-10 16:27:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:27:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:28:05 [end_date_ymd] => 2025-01-10 16:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:28:05' and `end` < '2025-01-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-01-10 16:28:28] Production.INFO: count ==4050 [2025-01-10 16:28:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:28:05 - End Time 2025-01-10 16:28:05 [2025-01-10 16:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218142', 'tblTempUsageDetail_20' ) start [2025-01-10 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218142', 'tblTempUsageDetail_20' ) end [2025-01-10 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218142', 'tblTempVendorCDR_20' ) start [2025-01-10 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218142', 'tblTempVendorCDR_20' ) end [2025-01-10 16:28:30] Production.INFO: ProcessCDR(1,14218142,1,1,2) [2025-01-10 16:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218142', 'tblTempUsageDetail_20' ) start [2025-01-10 16:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218142', 'tblTempUsageDetail_20' ) end [2025-01-10 16:28:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:28:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:28:35] Production.INFO: ==5093== Releasing lock... [2025-01-10 16:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:28:35] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:29:05 [end_date_ymd] => 2025-01-10 16:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:29:05' and `end` < '2025-01-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-01-10 16:29:24] Production.INFO: count ==4028 [2025-01-10 16:29:26] Production.ERROR: pbx CDR StartTime 2025-01-10 13:29:05 - End Time 2025-01-10 16:29:05 [2025-01-10 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218147', 'tblTempUsageDetail_20' ) start [2025-01-10 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218147', 'tblTempUsageDetail_20' ) end [2025-01-10 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218147', 'tblTempVendorCDR_20' ) start [2025-01-10 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218147', 'tblTempVendorCDR_20' ) end [2025-01-10 16:29:26] Production.INFO: ProcessCDR(1,14218147,1,1,2) [2025-01-10 16:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218147', 'tblTempUsageDetail_20' ) start [2025-01-10 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218147', 'tblTempUsageDetail_20' ) end [2025-01-10 16:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:29:30] Production.INFO: ==5165== Releasing lock... [2025-01-10 16:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:29:30] Production.INFO: 58 MB #Memory Used# [2025-01-10 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:30:06 [end_date_ymd] => 2025-01-10 16:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 13:30:06' and `end` < '2025-01-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-01-10 16:30:30] Production.INFO: count ==4032 [2025-01-10 16:30:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:30:06 - End Time 2025-01-10 16:30:06 [2025-01-10 16:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218153', 'tblTempUsageDetail_20' ) start [2025-01-10 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218153', 'tblTempUsageDetail_20' ) end [2025-01-10 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218153', 'tblTempVendorCDR_20' ) start [2025-01-10 16:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218153', 'tblTempVendorCDR_20' ) end [2025-01-10 16:30:32] Production.INFO: ProcessCDR(1,14218153,1,1,2) [2025-01-10 16:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:30:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:30:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218153', 'tblTempUsageDetail_20' ) start [2025-01-10 16:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218153', 'tblTempUsageDetail_20' ) end [2025-01-10 16:30:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:30:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:30:37] Production.INFO: ==5242== Releasing lock... [2025-01-10 16:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:30:37] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:31:05 [end_date_ymd] => 2025-01-10 16:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:31:05' and `end` < '2025-01-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-01-10 16:31:28] Production.INFO: count ==4105 [2025-01-10 16:31:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:31:05 - End Time 2025-01-10 16:31:05 [2025-01-10 16:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218158', 'tblTempUsageDetail_20' ) start [2025-01-10 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218158', 'tblTempUsageDetail_20' ) end [2025-01-10 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218158', 'tblTempVendorCDR_20' ) start [2025-01-10 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218158', 'tblTempVendorCDR_20' ) end [2025-01-10 16:31:30] Production.INFO: ProcessCDR(1,14218158,1,1,2) [2025-01-10 16:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218158', 'tblTempUsageDetail_20' ) start [2025-01-10 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218158', 'tblTempUsageDetail_20' ) end [2025-01-10 16:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:31:34] Production.INFO: ==5315== Releasing lock... [2025-01-10 16:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:31:34] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:32:05 [end_date_ymd] => 2025-01-10 16:32:05 [RateCDR] => 1 ) [2025-01-10 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:32:05' and `end` < '2025-01-10 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:32:27] Production.INFO: count ==4120 [2025-01-10 16:32:28] Production.ERROR: pbx CDR StartTime 2025-01-10 13:32:05 - End Time 2025-01-10 16:32:05 [2025-01-10 16:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218163', 'tblTempUsageDetail_20' ) start [2025-01-10 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218163', 'tblTempUsageDetail_20' ) end [2025-01-10 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218163', 'tblTempVendorCDR_20' ) start [2025-01-10 16:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218163', 'tblTempVendorCDR_20' ) end [2025-01-10 16:32:29] Production.INFO: ProcessCDR(1,14218163,1,1,2) [2025-01-10 16:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218163', 'tblTempUsageDetail_20' ) start [2025-01-10 16:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218163', 'tblTempUsageDetail_20' ) end [2025-01-10 16:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:32:33] Production.INFO: ==5385== Releasing lock... [2025-01-10 16:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:32:33] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:33:05 [end_date_ymd] => 2025-01-10 16:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:33:05' and `end` < '2025-01-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-01-10 16:33:25] Production.INFO: count ==4110 [2025-01-10 16:33:26] Production.ERROR: pbx CDR StartTime 2025-01-10 13:33:05 - End Time 2025-01-10 16:33:05 [2025-01-10 16:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218168', 'tblTempUsageDetail_20' ) start [2025-01-10 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218168', 'tblTempUsageDetail_20' ) end [2025-01-10 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218168', 'tblTempVendorCDR_20' ) start [2025-01-10 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218168', 'tblTempVendorCDR_20' ) end [2025-01-10 16:33:26] Production.INFO: ProcessCDR(1,14218168,1,1,2) [2025-01-10 16:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218168', 'tblTempUsageDetail_20' ) start [2025-01-10 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218168', 'tblTempUsageDetail_20' ) end [2025-01-10 16:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:33:31] Production.INFO: ==5459== Releasing lock... [2025-01-10 16:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:33:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:34:04 [end_date_ymd] => 2025-01-10 16:34:04 [RateCDR] => 1 ) [2025-01-10 16:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:34:04' and `end` < '2025-01-10 16:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:34:26] Production.INFO: count ==4111 [2025-01-10 16:34:28] Production.ERROR: pbx CDR StartTime 2025-01-10 13:34:04 - End Time 2025-01-10 16:34:04 [2025-01-10 16:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218173', 'tblTempUsageDetail_20' ) start [2025-01-10 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218173', 'tblTempUsageDetail_20' ) end [2025-01-10 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218173', 'tblTempVendorCDR_20' ) start [2025-01-10 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218173', 'tblTempVendorCDR_20' ) end [2025-01-10 16:34:28] Production.INFO: ProcessCDR(1,14218173,1,1,2) [2025-01-10 16:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218173', 'tblTempUsageDetail_20' ) start [2025-01-10 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218173', 'tblTempUsageDetail_20' ) end [2025-01-10 16:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:34:33] Production.INFO: ==5530== Releasing lock... [2025-01-10 16:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:34:33] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:35:05 [end_date_ymd] => 2025-01-10 16:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:35:05' and `end` < '2025-01-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-01-10 16:35:29] Production.INFO: count ==4066 [2025-01-10 16:35:31] Production.ERROR: pbx CDR StartTime 2025-01-10 13:35:05 - End Time 2025-01-10 16:35:05 [2025-01-10 16:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218178', 'tblTempUsageDetail_20' ) start [2025-01-10 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218178', 'tblTempUsageDetail_20' ) end [2025-01-10 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218178', 'tblTempVendorCDR_20' ) start [2025-01-10 16:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218178', 'tblTempVendorCDR_20' ) end [2025-01-10 16:35:31] Production.INFO: ProcessCDR(1,14218178,1,1,2) [2025-01-10 16:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218178', 'tblTempUsageDetail_20' ) start [2025-01-10 16:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218178', 'tblTempUsageDetail_20' ) end [2025-01-10 16:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:35:36] Production.INFO: ==5603== Releasing lock... [2025-01-10 16:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:35:36] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:36:06 [end_date_ymd] => 2025-01-10 16:36:06 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:36:06' and `end` < '2025-01-10 16: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-01-10 16:36:36] Production.INFO: count ==4080 [2025-01-10 16:36:38] Production.ERROR: pbx CDR StartTime 2025-01-10 13:36:06 - End Time 2025-01-10 16:36:06 [2025-01-10 16:36:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218183', 'tblTempUsageDetail_20' ) start [2025-01-10 16:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218183', 'tblTempUsageDetail_20' ) end [2025-01-10 16:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218183', 'tblTempVendorCDR_20' ) start [2025-01-10 16:36:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218183', 'tblTempVendorCDR_20' ) end [2025-01-10 16:36:38] Production.INFO: ProcessCDR(1,14218183,1,1,2) [2025-01-10 16:36:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:36:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:36:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:36:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:36:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218183', 'tblTempUsageDetail_20' ) start [2025-01-10 16:36:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218183', 'tblTempUsageDetail_20' ) end [2025-01-10 16:36:43] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:36:43] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:36:43] Production.INFO: ==5676== Releasing lock... [2025-01-10 16:36:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:36:43] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:37:05 [end_date_ymd] => 2025-01-10 16:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:37:05' and `end` < '2025-01-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-01-10 16:37:28] Production.INFO: count ==4095 [2025-01-10 16:37:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:37:05 - End Time 2025-01-10 16:37:05 [2025-01-10 16:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218188', 'tblTempUsageDetail_20' ) start [2025-01-10 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218188', 'tblTempUsageDetail_20' ) end [2025-01-10 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218188', 'tblTempVendorCDR_20' ) start [2025-01-10 16:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218188', 'tblTempVendorCDR_20' ) end [2025-01-10 16:37:30] Production.INFO: ProcessCDR(1,14218188,1,1,2) [2025-01-10 16:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218188', 'tblTempUsageDetail_20' ) start [2025-01-10 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218188', 'tblTempUsageDetail_20' ) end [2025-01-10 16:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:37:34] Production.INFO: ==5754== Releasing lock... [2025-01-10 16:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:37:34] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:38:05 [end_date_ymd] => 2025-01-10 16:38:05 [RateCDR] => 1 ) [2025-01-10 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:38:05' and `end` < '2025-01-10 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:38:29] Production.INFO: count ==4075 [2025-01-10 16:38:31] Production.ERROR: pbx CDR StartTime 2025-01-10 13:38:05 - End Time 2025-01-10 16:38:05 [2025-01-10 16:38:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218193', 'tblTempUsageDetail_20' ) start [2025-01-10 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218193', 'tblTempUsageDetail_20' ) end [2025-01-10 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218193', 'tblTempVendorCDR_20' ) start [2025-01-10 16:38:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218193', 'tblTempVendorCDR_20' ) end [2025-01-10 16:38:31] Production.INFO: ProcessCDR(1,14218193,1,1,2) [2025-01-10 16:38:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:38:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:38:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218193', 'tblTempUsageDetail_20' ) start [2025-01-10 16:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218193', 'tblTempUsageDetail_20' ) end [2025-01-10 16:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:38:36] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:38:36] Production.INFO: ==5828== Releasing lock... [2025-01-10 16:38:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:38:36] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:39:04 [end_date_ymd] => 2025-01-10 16:39:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:39:04' and `end` < '2025-01-10 16: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-01-10 16:39:32] Production.INFO: count ==4102 [2025-01-10 16:39:33] Production.ERROR: pbx CDR StartTime 2025-01-10 13:39:04 - End Time 2025-01-10 16:39:04 [2025-01-10 16:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218198', 'tblTempUsageDetail_20' ) start [2025-01-10 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218198', 'tblTempUsageDetail_20' ) end [2025-01-10 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218198', 'tblTempVendorCDR_20' ) start [2025-01-10 16:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218198', 'tblTempVendorCDR_20' ) end [2025-01-10 16:39:34] Production.INFO: ProcessCDR(1,14218198,1,1,2) [2025-01-10 16:39:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218198', 'tblTempUsageDetail_20' ) start [2025-01-10 16:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218198', 'tblTempUsageDetail_20' ) end [2025-01-10 16:39:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:39:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:39:39] Production.INFO: ==5903== Releasing lock... [2025-01-10 16:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:39:39] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:40:05 [end_date_ymd] => 2025-01-10 16:40:05 [RateCDR] => 1 ) [2025-01-10 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:40:05' and `end` < '2025-01-10 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:40:28] Production.INFO: count ==4089 [2025-01-10 16:40:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:40:05 - End Time 2025-01-10 16:40:05 [2025-01-10 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218203', 'tblTempUsageDetail_20' ) start [2025-01-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218203', 'tblTempUsageDetail_20' ) end [2025-01-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218203', 'tblTempVendorCDR_20' ) start [2025-01-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218203', 'tblTempVendorCDR_20' ) end [2025-01-10 16:40:30] Production.INFO: ProcessCDR(1,14218203,1,1,2) [2025-01-10 16:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218203', 'tblTempUsageDetail_20' ) start [2025-01-10 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218203', 'tblTempUsageDetail_20' ) end [2025-01-10 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:40:34] Production.INFO: ==6016== Releasing lock... [2025-01-10 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:40:34] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:41:04 [end_date_ymd] => 2025-01-10 16:41:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:41:04' and `end` < '2025-01-10 16: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-01-10 16:41:27] Production.INFO: count ==4190 [2025-01-10 16:41:28] Production.ERROR: pbx CDR StartTime 2025-01-10 13:41:04 - End Time 2025-01-10 16:41:04 [2025-01-10 16:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218209', 'tblTempUsageDetail_20' ) start [2025-01-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218209', 'tblTempUsageDetail_20' ) end [2025-01-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218209', 'tblTempVendorCDR_20' ) start [2025-01-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218209', 'tblTempVendorCDR_20' ) end [2025-01-10 16:41:28] Production.INFO: ProcessCDR(1,14218209,1,1,2) [2025-01-10 16:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218209', 'tblTempUsageDetail_20' ) start [2025-01-10 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218209', 'tblTempUsageDetail_20' ) end [2025-01-10 16:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:41:33] Production.INFO: ==6088== Releasing lock... [2025-01-10 16:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:41:33] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:42:05 [end_date_ymd] => 2025-01-10 16:42:05 [RateCDR] => 1 ) [2025-01-10 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:42:05' and `end` < '2025-01-10 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:42:24] Production.INFO: count ==4174 [2025-01-10 16:42:25] Production.ERROR: pbx CDR StartTime 2025-01-10 13:42:05 - End Time 2025-01-10 16:42:05 [2025-01-10 16:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218214', 'tblTempUsageDetail_20' ) start [2025-01-10 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218214', 'tblTempUsageDetail_20' ) end [2025-01-10 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218214', 'tblTempVendorCDR_20' ) start [2025-01-10 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218214', 'tblTempVendorCDR_20' ) end [2025-01-10 16:42:25] Production.INFO: ProcessCDR(1,14218214,1,1,2) [2025-01-10 16:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218214', 'tblTempUsageDetail_20' ) start [2025-01-10 16:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218214', 'tblTempUsageDetail_20' ) end [2025-01-10 16:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:42:30] Production.INFO: ==6165== Releasing lock... [2025-01-10 16:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:42:30] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:43:05 [end_date_ymd] => 2025-01-10 16:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:43:05' and `end` < '2025-01-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-01-10 16:43:30] Production.INFO: count ==4182 [2025-01-10 16:43:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:43:05 - End Time 2025-01-10 16:43:05 [2025-01-10 16:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218219', 'tblTempUsageDetail_20' ) start [2025-01-10 16:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218219', 'tblTempUsageDetail_20' ) end [2025-01-10 16:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218219', 'tblTempVendorCDR_20' ) start [2025-01-10 16:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218219', 'tblTempVendorCDR_20' ) end [2025-01-10 16:43:32] Production.INFO: ProcessCDR(1,14218219,1,1,2) [2025-01-10 16:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:43:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:43:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218219', 'tblTempUsageDetail_20' ) start [2025-01-10 16:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218219', 'tblTempUsageDetail_20' ) end [2025-01-10 16:43:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:43:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:43:37] Production.INFO: ==6244== Releasing lock... [2025-01-10 16:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:43:37] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:44:05 [end_date_ymd] => 2025-01-10 16:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:44:05' and `end` < '2025-01-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-01-10 16:44:29] Production.INFO: count ==4171 [2025-01-10 16:44:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:44:05 - End Time 2025-01-10 16:44:05 [2025-01-10 16:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218224', 'tblTempUsageDetail_20' ) start [2025-01-10 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218224', 'tblTempUsageDetail_20' ) end [2025-01-10 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218224', 'tblTempVendorCDR_20' ) start [2025-01-10 16:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218224', 'tblTempVendorCDR_20' ) end [2025-01-10 16:44:31] Production.INFO: ProcessCDR(1,14218224,1,1,2) [2025-01-10 16:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218224', 'tblTempUsageDetail_20' ) start [2025-01-10 16:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218224', 'tblTempUsageDetail_20' ) end [2025-01-10 16:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:44:35] Production.INFO: ==6336== Releasing lock... [2025-01-10 16:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:44:35] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:45:05 [end_date_ymd] => 2025-01-10 16:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:45:05' and `end` < '2025-01-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-01-10 16:45:25] Production.INFO: count ==4146 [2025-01-10 16:45:27] Production.ERROR: pbx CDR StartTime 2025-01-10 13:45:05 - End Time 2025-01-10 16:45:05 [2025-01-10 16:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218229', 'tblTempUsageDetail_20' ) start [2025-01-10 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218229', 'tblTempUsageDetail_20' ) end [2025-01-10 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218229', 'tblTempVendorCDR_20' ) start [2025-01-10 16:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218229', 'tblTempVendorCDR_20' ) end [2025-01-10 16:45:27] Production.INFO: ProcessCDR(1,14218229,1,1,2) [2025-01-10 16:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218229', 'tblTempUsageDetail_20' ) start [2025-01-10 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218229', 'tblTempUsageDetail_20' ) end [2025-01-10 16:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:45:30] Production.INFO: ==6428== Releasing lock... [2025-01-10 16:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:45:30] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:46:05 [end_date_ymd] => 2025-01-10 16:46:05 [RateCDR] => 1 ) [2025-01-10 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:46:05' and `end` < '2025-01-10 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:46:19] Production.INFO: count ==4139 [2025-01-10 16:46:21] Production.ERROR: pbx CDR StartTime 2025-01-10 13:46:05 - End Time 2025-01-10 16:46:05 [2025-01-10 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218234', 'tblTempUsageDetail_20' ) start [2025-01-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218234', 'tblTempUsageDetail_20' ) end [2025-01-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218234', 'tblTempVendorCDR_20' ) start [2025-01-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218234', 'tblTempVendorCDR_20' ) end [2025-01-10 16:46:21] Production.INFO: ProcessCDR(1,14218234,1,1,2) [2025-01-10 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218234', 'tblTempUsageDetail_20' ) start [2025-01-10 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218234', 'tblTempUsageDetail_20' ) end [2025-01-10 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:46:25] Production.INFO: ==6509== Releasing lock... [2025-01-10 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:46:25] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:47:04 [end_date_ymd] => 2025-01-10 16:47:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:47:04' and `end` < '2025-01-10 16: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-01-10 16:47:19] Production.INFO: count ==4146 [2025-01-10 16:47:21] Production.ERROR: pbx CDR StartTime 2025-01-10 13:47:04 - End Time 2025-01-10 16:47:04 [2025-01-10 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218239', 'tblTempUsageDetail_20' ) start [2025-01-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218239', 'tblTempUsageDetail_20' ) end [2025-01-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218239', 'tblTempVendorCDR_20' ) start [2025-01-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218239', 'tblTempVendorCDR_20' ) end [2025-01-10 16:47:21] Production.INFO: ProcessCDR(1,14218239,1,1,2) [2025-01-10 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218239', 'tblTempUsageDetail_20' ) start [2025-01-10 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218239', 'tblTempUsageDetail_20' ) end [2025-01-10 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:47:26] Production.INFO: ==6595== Releasing lock... [2025-01-10 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:47:26] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:48:05 [end_date_ymd] => 2025-01-10 16:48:05 [RateCDR] => 1 ) [2025-01-10 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:48:05' and `end` < '2025-01-10 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:48:24] Production.INFO: count ==4143 [2025-01-10 16:48:26] Production.ERROR: pbx CDR StartTime 2025-01-10 13:48:05 - End Time 2025-01-10 16:48:05 [2025-01-10 16:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218244', 'tblTempUsageDetail_20' ) start [2025-01-10 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218244', 'tblTempUsageDetail_20' ) end [2025-01-10 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218244', 'tblTempVendorCDR_20' ) start [2025-01-10 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218244', 'tblTempVendorCDR_20' ) end [2025-01-10 16:48:26] Production.INFO: ProcessCDR(1,14218244,1,1,2) [2025-01-10 16:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218244', 'tblTempUsageDetail_20' ) start [2025-01-10 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218244', 'tblTempUsageDetail_20' ) end [2025-01-10 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:48:30] Production.INFO: ==6683== Releasing lock... [2025-01-10 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:48:30] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:49:05 [end_date_ymd] => 2025-01-10 16:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:49:05' and `end` < '2025-01-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-01-10 16:49:24] Production.INFO: count ==4144 [2025-01-10 16:49:26] Production.ERROR: pbx CDR StartTime 2025-01-10 13:49:05 - End Time 2025-01-10 16:49:05 [2025-01-10 16:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218249', 'tblTempUsageDetail_20' ) start [2025-01-10 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218249', 'tblTempUsageDetail_20' ) end [2025-01-10 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218249', 'tblTempVendorCDR_20' ) start [2025-01-10 16:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218249', 'tblTempVendorCDR_20' ) end [2025-01-10 16:49:26] Production.INFO: ProcessCDR(1,14218249,1,1,2) [2025-01-10 16:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218249', 'tblTempUsageDetail_20' ) start [2025-01-10 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218249', 'tblTempUsageDetail_20' ) end [2025-01-10 16:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:49:30] Production.INFO: ==6768== Releasing lock... [2025-01-10 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:49:30] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:50:05 [end_date_ymd] => 2025-01-10 16:50:05 [RateCDR] => 1 ) [2025-01-10 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:50:05' and `end` < '2025-01-10 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:50:28] Production.INFO: count ==4139 [2025-01-10 16:50:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:50:05 - End Time 2025-01-10 16:50:05 [2025-01-10 16:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218254', 'tblTempUsageDetail_20' ) start [2025-01-10 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218254', 'tblTempUsageDetail_20' ) end [2025-01-10 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218254', 'tblTempVendorCDR_20' ) start [2025-01-10 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218254', 'tblTempVendorCDR_20' ) end [2025-01-10 16:50:30] Production.INFO: ProcessCDR(1,14218254,1,1,2) [2025-01-10 16:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218254', 'tblTempUsageDetail_20' ) start [2025-01-10 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218254', 'tblTempUsageDetail_20' ) end [2025-01-10 16:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:50:34] Production.INFO: ==6858== Releasing lock... [2025-01-10 16:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:50:34] Production.INFO: 59 MB #Memory Used# [2025-01-10 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:51:05 [end_date_ymd] => 2025-01-10 16:51:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:51:05' and `end` < '2025-01-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-01-10 16:51:22] Production.INFO: count ==4272 [2025-01-10 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-10 13:51:05 - End Time 2025-01-10 16:51:05 [2025-01-10 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218260', 'tblTempUsageDetail_20' ) start [2025-01-10 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218260', 'tblTempUsageDetail_20' ) end [2025-01-10 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218260', 'tblTempVendorCDR_20' ) start [2025-01-10 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218260', 'tblTempVendorCDR_20' ) end [2025-01-10 16:51:24] Production.INFO: ProcessCDR(1,14218260,1,1,2) [2025-01-10 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218260', 'tblTempUsageDetail_20' ) start [2025-01-10 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218260', 'tblTempUsageDetail_20' ) end [2025-01-10 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:51:28] Production.INFO: ==6957== Releasing lock... [2025-01-10 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:51:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:52:04 [end_date_ymd] => 2025-01-10 16:52:04 [RateCDR] => 1 ) [2025-01-10 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:52:04' and `end` < '2025-01-10 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:52:28] Production.INFO: count ==4263 [2025-01-10 16:52:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:52:04 - End Time 2025-01-10 16:52:04 [2025-01-10 16:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218265', 'tblTempUsageDetail_20' ) start [2025-01-10 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218265', 'tblTempUsageDetail_20' ) end [2025-01-10 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218265', 'tblTempVendorCDR_20' ) start [2025-01-10 16:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218265', 'tblTempVendorCDR_20' ) end [2025-01-10 16:52:30] Production.INFO: ProcessCDR(1,14218265,1,1,2) [2025-01-10 16:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218265', 'tblTempUsageDetail_20' ) start [2025-01-10 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218265', 'tblTempUsageDetail_20' ) end [2025-01-10 16:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:52:35] Production.INFO: ==7053== Releasing lock... [2025-01-10 16:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:52:35] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:53:05 [end_date_ymd] => 2025-01-10 16:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:53:05' and `end` < '2025-01-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-01-10 16:53:30] Production.INFO: count ==4284 [2025-01-10 16:53:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:53:05 - End Time 2025-01-10 16:53:05 [2025-01-10 16:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218270', 'tblTempUsageDetail_20' ) start [2025-01-10 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218270', 'tblTempUsageDetail_20' ) end [2025-01-10 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218270', 'tblTempVendorCDR_20' ) start [2025-01-10 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218270', 'tblTempVendorCDR_20' ) end [2025-01-10 16:53:32] Production.INFO: ProcessCDR(1,14218270,1,1,2) [2025-01-10 16:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218270', 'tblTempUsageDetail_20' ) start [2025-01-10 16:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218270', 'tblTempUsageDetail_20' ) end [2025-01-10 16:53:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:53:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:53:37] Production.INFO: ==7169== Releasing lock... [2025-01-10 16:53:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:53:37] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:54:04 [end_date_ymd] => 2025-01-10 16:54:04 [RateCDR] => 1 ) [2025-01-10 16:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 13:54:04' and `end` < '2025-01-10 16:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 16:54:30] Production.INFO: count ==4277 [2025-01-10 16:54:32] Production.ERROR: pbx CDR StartTime 2025-01-10 13:54:04 - End Time 2025-01-10 16:54:04 [2025-01-10 16:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218275', 'tblTempUsageDetail_20' ) start [2025-01-10 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218275', 'tblTempUsageDetail_20' ) end [2025-01-10 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218275', 'tblTempVendorCDR_20' ) start [2025-01-10 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218275', 'tblTempVendorCDR_20' ) end [2025-01-10 16:54:32] Production.INFO: ProcessCDR(1,14218275,1,1,2) [2025-01-10 16:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218275', 'tblTempUsageDetail_20' ) start [2025-01-10 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218275', 'tblTempUsageDetail_20' ) end [2025-01-10 16:54:37] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:54:37] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:54:37] Production.INFO: ==7280== Releasing lock... [2025-01-10 16:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:54:37] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:55:05 [end_date_ymd] => 2025-01-10 16:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:55:05' and `end` < '2025-01-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-01-10 16:55:31] Production.INFO: count ==4263 [2025-01-10 16:55:33] Production.ERROR: pbx CDR StartTime 2025-01-10 13:55:05 - End Time 2025-01-10 16:55:05 [2025-01-10 16:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218280', 'tblTempUsageDetail_20' ) start [2025-01-10 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218280', 'tblTempUsageDetail_20' ) end [2025-01-10 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218280', 'tblTempVendorCDR_20' ) start [2025-01-10 16:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218280', 'tblTempVendorCDR_20' ) end [2025-01-10 16:55:33] Production.INFO: ProcessCDR(1,14218280,1,1,2) [2025-01-10 16:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218280', 'tblTempUsageDetail_20' ) start [2025-01-10 16:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218280', 'tblTempUsageDetail_20' ) end [2025-01-10 16:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:55:38] Production.INFO: ==7380== Releasing lock... [2025-01-10 16:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:55:38] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:56:04 [end_date_ymd] => 2025-01-10 16:56:04 [RateCDR] => 1 ) [2025-01-10 16: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-01-10 13:56:04' and `end` < '2025-01-10 16: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-01-10 16:56:37] Production.INFO: count ==4273 [2025-01-10 16:56:39] Production.ERROR: pbx CDR StartTime 2025-01-10 13:56:04 - End Time 2025-01-10 16:56:04 [2025-01-10 16:56:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218285', 'tblTempUsageDetail_20' ) start [2025-01-10 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218285', 'tblTempUsageDetail_20' ) end [2025-01-10 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218285', 'tblTempVendorCDR_20' ) start [2025-01-10 16:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218285', 'tblTempVendorCDR_20' ) end [2025-01-10 16:56:39] Production.INFO: ProcessCDR(1,14218285,1,1,2) [2025-01-10 16:56:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:56:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:56:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:56:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:56:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218285', 'tblTempUsageDetail_20' ) start [2025-01-10 16:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218285', 'tblTempUsageDetail_20' ) end [2025-01-10 16:56:44] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:56:44] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:56:44] Production.INFO: ==7506== Releasing lock... [2025-01-10 16:56:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:56:44] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:57:05 [end_date_ymd] => 2025-01-10 16:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:57:05' and `end` < '2025-01-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-01-10 16:57:28] Production.INFO: count ==4272 [2025-01-10 16:57:29] Production.ERROR: pbx CDR StartTime 2025-01-10 13:57:05 - End Time 2025-01-10 16:57:05 [2025-01-10 16:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218290', 'tblTempUsageDetail_20' ) start [2025-01-10 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218290', 'tblTempUsageDetail_20' ) end [2025-01-10 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218290', 'tblTempVendorCDR_20' ) start [2025-01-10 16:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218290', 'tblTempVendorCDR_20' ) end [2025-01-10 16:57:29] Production.INFO: ProcessCDR(1,14218290,1,1,2) [2025-01-10 16:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218290', 'tblTempUsageDetail_20' ) start [2025-01-10 16:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218290', 'tblTempUsageDetail_20' ) end [2025-01-10 16:57:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:57:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:57:34] Production.INFO: ==7601== Releasing lock... [2025-01-10 16:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:57:34] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:58:05 [end_date_ymd] => 2025-01-10 16:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 13:58:05' and `end` < '2025-01-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-01-10 16:58:25] Production.INFO: count ==4260 [2025-01-10 16:58:27] Production.ERROR: pbx CDR StartTime 2025-01-10 13:58:05 - End Time 2025-01-10 16:58:05 [2025-01-10 16:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218295', 'tblTempUsageDetail_20' ) start [2025-01-10 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218295', 'tblTempUsageDetail_20' ) end [2025-01-10 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218295', 'tblTempVendorCDR_20' ) start [2025-01-10 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218295', 'tblTempVendorCDR_20' ) end [2025-01-10 16:58:27] Production.INFO: ProcessCDR(1,14218295,1,1,2) [2025-01-10 16:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218295', 'tblTempUsageDetail_20' ) start [2025-01-10 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218295', 'tblTempUsageDetail_20' ) end [2025-01-10 16:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:58:32] Production.INFO: ==7693== Releasing lock... [2025-01-10 16:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:58:32] Production.INFO: 60 MB #Memory Used# [2025-01-10 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 13:59:04 [end_date_ymd] => 2025-01-10 16:59:04 [RateCDR] => 1 ) [2025-01-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-01-10 13:59:04' and `end` < '2025-01-10 16: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-01-10 16:59:28] Production.INFO: count ==4287 [2025-01-10 16:59:30] Production.ERROR: pbx CDR StartTime 2025-01-10 13:59:04 - End Time 2025-01-10 16:59:04 [2025-01-10 16:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218300', 'tblTempUsageDetail_20' ) start [2025-01-10 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218300', 'tblTempUsageDetail_20' ) end [2025-01-10 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218300', 'tblTempVendorCDR_20' ) start [2025-01-10 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218300', 'tblTempVendorCDR_20' ) end [2025-01-10 16:59:30] Production.INFO: ProcessCDR(1,14218300,1,1,2) [2025-01-10 16:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 16:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 16:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218300', 'tblTempUsageDetail_20' ) start [2025-01-10 16:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218300', 'tblTempUsageDetail_20' ) end [2025-01-10 16:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 16:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 16:59:34] Production.INFO: ==7784== Releasing lock... [2025-01-10 16:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 16:59:34] Production.INFO: 60 MB #Memory Used# [2025-01-10 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:00:06 [end_date_ymd] => 2025-01-10 17:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 14:00:06' and `end` < '2025-01-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-01-10 17:00:26] Production.INFO: count ==4297 [2025-01-10 17:00:27] Production.ERROR: pbx CDR StartTime 2025-01-10 14:00:06 - End Time 2025-01-10 17:00:06 [2025-01-10 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218305', 'tblTempUsageDetail_20' ) start [2025-01-10 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218305', 'tblTempUsageDetail_20' ) end [2025-01-10 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218305', 'tblTempVendorCDR_20' ) start [2025-01-10 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218305', 'tblTempVendorCDR_20' ) end [2025-01-10 17:00:27] Production.INFO: ProcessCDR(1,14218305,1,1,2) [2025-01-10 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218305', 'tblTempUsageDetail_20' ) start [2025-01-10 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218305', 'tblTempUsageDetail_20' ) end [2025-01-10 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:00:32] Production.INFO: ==7879== Releasing lock... [2025-01-10 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:00:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:01:04 [end_date_ymd] => 2025-01-10 17:01:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:01:04' and `end` < '2025-01-10 17: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-01-10 17:01:33] Production.INFO: count ==4384 [2025-01-10 17:01:34] Production.ERROR: pbx CDR StartTime 2025-01-10 14:01:04 - End Time 2025-01-10 17:01:04 [2025-01-10 17:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218311', 'tblTempUsageDetail_20' ) start [2025-01-10 17:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218311', 'tblTempUsageDetail_20' ) end [2025-01-10 17:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218311', 'tblTempVendorCDR_20' ) start [2025-01-10 17:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218311', 'tblTempVendorCDR_20' ) end [2025-01-10 17:01:35] Production.INFO: ProcessCDR(1,14218311,1,1,2) [2025-01-10 17:01:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218311', 'tblTempUsageDetail_20' ) start [2025-01-10 17:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218311', 'tblTempUsageDetail_20' ) end [2025-01-10 17:01:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:01:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:01:39] Production.INFO: ==7985== Releasing lock... [2025-01-10 17:01:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:01:39] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:02:05 [end_date_ymd] => 2025-01-10 17:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:02:05' and `end` < '2025-01-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-01-10 17:02:28] Production.INFO: count ==4373 [2025-01-10 17:02:29] Production.ERROR: pbx CDR StartTime 2025-01-10 14:02:05 - End Time 2025-01-10 17:02:05 [2025-01-10 17:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218316', 'tblTempUsageDetail_20' ) start [2025-01-10 17:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218316', 'tblTempUsageDetail_20' ) end [2025-01-10 17:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218316', 'tblTempVendorCDR_20' ) start [2025-01-10 17:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218316', 'tblTempVendorCDR_20' ) end [2025-01-10 17:02:29] Production.INFO: ProcessCDR(1,14218316,1,1,2) [2025-01-10 17:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218316', 'tblTempUsageDetail_20' ) start [2025-01-10 17:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218316', 'tblTempUsageDetail_20' ) end [2025-01-10 17:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:02:34] Production.INFO: ==8075== Releasing lock... [2025-01-10 17:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:02:34] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:03:04 [end_date_ymd] => 2025-01-10 17:03:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:03:04' and `end` < '2025-01-10 17: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-01-10 17:03:18] Production.INFO: count ==4366 [2025-01-10 17:03:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:03:04 - End Time 2025-01-10 17:03:04 [2025-01-10 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218321', 'tblTempUsageDetail_20' ) start [2025-01-10 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218321', 'tblTempUsageDetail_20' ) end [2025-01-10 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218321', 'tblTempVendorCDR_20' ) start [2025-01-10 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218321', 'tblTempVendorCDR_20' ) end [2025-01-10 17:03:20] Production.INFO: ProcessCDR(1,14218321,1,1,2) [2025-01-10 17:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218321', 'tblTempUsageDetail_20' ) start [2025-01-10 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218321', 'tblTempUsageDetail_20' ) end [2025-01-10 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:03:25] Production.INFO: ==8168== Releasing lock... [2025-01-10 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:03:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:04:05 [end_date_ymd] => 2025-01-10 17:04:05 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:04:05' and `end` < '2025-01-10 17: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-01-10 17:04:20] Production.INFO: count ==4363 [2025-01-10 17:04:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:04:05 - End Time 2025-01-10 17:04:05 [2025-01-10 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218326', 'tblTempUsageDetail_20' ) start [2025-01-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218326', 'tblTempUsageDetail_20' ) end [2025-01-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218326', 'tblTempVendorCDR_20' ) start [2025-01-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218326', 'tblTempVendorCDR_20' ) end [2025-01-10 17:04:22] Production.INFO: ProcessCDR(1,14218326,1,1,2) [2025-01-10 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218326', 'tblTempUsageDetail_20' ) start [2025-01-10 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218326', 'tblTempUsageDetail_20' ) end [2025-01-10 17:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:04:25] Production.INFO: ==8259== Releasing lock... [2025-01-10 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:04:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:05:04 [end_date_ymd] => 2025-01-10 17:05:04 [RateCDR] => 1 ) [2025-01-10 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:05:04' and `end` < '2025-01-10 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:05:18] Production.INFO: count ==4353 [2025-01-10 17:05:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:05:04 - End Time 2025-01-10 17:05:04 [2025-01-10 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218331', 'tblTempUsageDetail_20' ) start [2025-01-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218331', 'tblTempUsageDetail_20' ) end [2025-01-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218331', 'tblTempVendorCDR_20' ) start [2025-01-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218331', 'tblTempVendorCDR_20' ) end [2025-01-10 17:05:20] Production.INFO: ProcessCDR(1,14218331,1,1,2) [2025-01-10 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218331', 'tblTempUsageDetail_20' ) start [2025-01-10 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218331', 'tblTempUsageDetail_20' ) end [2025-01-10 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:05:25] Production.INFO: ==8338== Releasing lock... [2025-01-10 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:05:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:06:05 [end_date_ymd] => 2025-01-10 17:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:06:05' and `end` < '2025-01-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-01-10 17:06:25] Production.INFO: count ==4349 [2025-01-10 17:06:27] Production.ERROR: pbx CDR StartTime 2025-01-10 14:06:05 - End Time 2025-01-10 17:06:05 [2025-01-10 17:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218336', 'tblTempUsageDetail_20' ) start [2025-01-10 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218336', 'tblTempUsageDetail_20' ) end [2025-01-10 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218336', 'tblTempVendorCDR_20' ) start [2025-01-10 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218336', 'tblTempVendorCDR_20' ) end [2025-01-10 17:06:27] Production.INFO: ProcessCDR(1,14218336,1,1,2) [2025-01-10 17:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218336', 'tblTempUsageDetail_20' ) start [2025-01-10 17:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218336', 'tblTempUsageDetail_20' ) end [2025-01-10 17:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:06:32] Production.INFO: ==8411== Releasing lock... [2025-01-10 17:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:06:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:07:04 [end_date_ymd] => 2025-01-10 17:07:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:07:04' and `end` < '2025-01-10 17: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-01-10 17:07:26] Production.INFO: count ==4352 [2025-01-10 17:07:27] Production.ERROR: pbx CDR StartTime 2025-01-10 14:07:04 - End Time 2025-01-10 17:07:04 [2025-01-10 17:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218341', 'tblTempUsageDetail_20' ) start [2025-01-10 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218341', 'tblTempUsageDetail_20' ) end [2025-01-10 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218341', 'tblTempVendorCDR_20' ) start [2025-01-10 17:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218341', 'tblTempVendorCDR_20' ) end [2025-01-10 17:07:27] Production.INFO: ProcessCDR(1,14218341,1,1,2) [2025-01-10 17:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218341', 'tblTempUsageDetail_20' ) start [2025-01-10 17:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218341', 'tblTempUsageDetail_20' ) end [2025-01-10 17:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:07:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:07:33] Production.INFO: ==8484== Releasing lock... [2025-01-10 17:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:07:33] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:08:04 [end_date_ymd] => 2025-01-10 17:08:04 [RateCDR] => 1 ) [2025-01-10 17:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:08:04' and `end` < '2025-01-10 17:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:08:28] Production.INFO: count ==4340 [2025-01-10 17:08:30] Production.ERROR: pbx CDR StartTime 2025-01-10 14:08:04 - End Time 2025-01-10 17:08:04 [2025-01-10 17:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218346', 'tblTempUsageDetail_20' ) start [2025-01-10 17:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218346', 'tblTempUsageDetail_20' ) end [2025-01-10 17:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218346', 'tblTempVendorCDR_20' ) start [2025-01-10 17:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218346', 'tblTempVendorCDR_20' ) end [2025-01-10 17:08:30] Production.INFO: ProcessCDR(1,14218346,1,1,2) [2025-01-10 17:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218346', 'tblTempUsageDetail_20' ) start [2025-01-10 17:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218346', 'tblTempUsageDetail_20' ) end [2025-01-10 17:08:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:08:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:08:35] Production.INFO: ==8559== Releasing lock... [2025-01-10 17:08:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:08:35] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:09:05 [end_date_ymd] => 2025-01-10 17:09:05 [RateCDR] => 1 ) [2025-01-10 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:09:05' and `end` < '2025-01-10 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:09:22] Production.INFO: count ==4333 [2025-01-10 17:09:24] Production.ERROR: pbx CDR StartTime 2025-01-10 14:09:05 - End Time 2025-01-10 17:09:05 [2025-01-10 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218351', 'tblTempUsageDetail_20' ) start [2025-01-10 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218351', 'tblTempUsageDetail_20' ) end [2025-01-10 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218351', 'tblTempVendorCDR_20' ) start [2025-01-10 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218351', 'tblTempVendorCDR_20' ) end [2025-01-10 17:09:24] Production.INFO: ProcessCDR(1,14218351,1,1,2) [2025-01-10 17:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218351', 'tblTempUsageDetail_20' ) start [2025-01-10 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218351', 'tblTempUsageDetail_20' ) end [2025-01-10 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:09:29] Production.INFO: ==8633== Releasing lock... [2025-01-10 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:09:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:10:05 [end_date_ymd] => 2025-01-10 17:10:05 [RateCDR] => 1 ) [2025-01-10 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:10:05' and `end` < '2025-01-10 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:10:19] Production.INFO: count ==4325 [2025-01-10 17:10:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:10:05 - End Time 2025-01-10 17:10:05 [2025-01-10 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218357', 'tblTempUsageDetail_20' ) start [2025-01-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218357', 'tblTempUsageDetail_20' ) end [2025-01-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218357', 'tblTempVendorCDR_20' ) start [2025-01-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218357', 'tblTempVendorCDR_20' ) end [2025-01-10 17:10:21] Production.INFO: ProcessCDR(1,14218357,1,1,2) [2025-01-10 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218357', 'tblTempUsageDetail_20' ) start [2025-01-10 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218357', 'tblTempUsageDetail_20' ) end [2025-01-10 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:10:26] Production.INFO: ==8708== Releasing lock... [2025-01-10 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:10:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:11:05 [end_date_ymd] => 2025-01-10 17:11:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:11:05' and `end` < '2025-01-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-01-10 17:11:25] Production.INFO: count ==4407 [2025-01-10 17:11:26] Production.ERROR: pbx CDR StartTime 2025-01-10 14:11:05 - End Time 2025-01-10 17:11:05 [2025-01-10 17:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218362', 'tblTempUsageDetail_20' ) start [2025-01-10 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218362', 'tblTempUsageDetail_20' ) end [2025-01-10 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218362', 'tblTempVendorCDR_20' ) start [2025-01-10 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218362', 'tblTempVendorCDR_20' ) end [2025-01-10 17:11:26] Production.INFO: ProcessCDR(1,14218362,1,1,2) [2025-01-10 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218362', 'tblTempUsageDetail_20' ) start [2025-01-10 17:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218362', 'tblTempUsageDetail_20' ) end [2025-01-10 17:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:11:32] Production.INFO: ==8822== Releasing lock... [2025-01-10 17:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:11:32] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:12:05 [end_date_ymd] => 2025-01-10 17:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:12:05' and `end` < '2025-01-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-01-10 17:12:19] Production.INFO: count ==4399 [2025-01-10 17:12:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:12:05 - End Time 2025-01-10 17:12:05 [2025-01-10 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218367', 'tblTempUsageDetail_20' ) start [2025-01-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218367', 'tblTempUsageDetail_20' ) end [2025-01-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218367', 'tblTempVendorCDR_20' ) start [2025-01-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218367', 'tblTempVendorCDR_20' ) end [2025-01-10 17:12:21] Production.INFO: ProcessCDR(1,14218367,1,1,2) [2025-01-10 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218367', 'tblTempUsageDetail_20' ) start [2025-01-10 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218367', 'tblTempUsageDetail_20' ) end [2025-01-10 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:12:25] Production.INFO: ==8894== Releasing lock... [2025-01-10 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:12:25] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:13:05 [end_date_ymd] => 2025-01-10 17:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:13:05' and `end` < '2025-01-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-01-10 17:13:19] Production.INFO: count ==4391 [2025-01-10 17:13:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:13:05 - End Time 2025-01-10 17:13:05 [2025-01-10 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218372', 'tblTempUsageDetail_20' ) start [2025-01-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218372', 'tblTempUsageDetail_20' ) end [2025-01-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218372', 'tblTempVendorCDR_20' ) start [2025-01-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218372', 'tblTempVendorCDR_20' ) end [2025-01-10 17:13:21] Production.INFO: ProcessCDR(1,14218372,1,1,2) [2025-01-10 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218372', 'tblTempUsageDetail_20' ) start [2025-01-10 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218372', 'tblTempUsageDetail_20' ) end [2025-01-10 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:13:26] Production.INFO: ==8966== Releasing lock... [2025-01-10 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:13:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:14:05 [end_date_ymd] => 2025-01-10 17:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:14:05' and `end` < '2025-01-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-01-10 17:14:21] Production.INFO: count ==4381 [2025-01-10 17:14:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:14:05 - End Time 2025-01-10 17:14:05 [2025-01-10 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218377', 'tblTempUsageDetail_20' ) start [2025-01-10 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218377', 'tblTempUsageDetail_20' ) end [2025-01-10 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218377', 'tblTempVendorCDR_20' ) start [2025-01-10 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218377', 'tblTempVendorCDR_20' ) end [2025-01-10 17:14:23] Production.INFO: ProcessCDR(1,14218377,1,1,2) [2025-01-10 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218377', 'tblTempUsageDetail_20' ) start [2025-01-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218377', 'tblTempUsageDetail_20' ) end [2025-01-10 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:14:27] Production.INFO: ==9037== Releasing lock... [2025-01-10 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:14:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:15:05 [end_date_ymd] => 2025-01-10 17:15:05 [RateCDR] => 1 ) [2025-01-10 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:15:05' and `end` < '2025-01-10 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:15:28] Production.INFO: count ==4402 [2025-01-10 17:15:30] Production.ERROR: pbx CDR StartTime 2025-01-10 14:15:05 - End Time 2025-01-10 17:15:05 [2025-01-10 17:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218382', 'tblTempUsageDetail_20' ) start [2025-01-10 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218382', 'tblTempUsageDetail_20' ) end [2025-01-10 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218382', 'tblTempVendorCDR_20' ) start [2025-01-10 17:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218382', 'tblTempVendorCDR_20' ) end [2025-01-10 17:15:30] Production.INFO: ProcessCDR(1,14218382,1,1,2) [2025-01-10 17:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218382', 'tblTempUsageDetail_20' ) start [2025-01-10 17:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218382', 'tblTempUsageDetail_20' ) end [2025-01-10 17:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:15:35] Production.INFO: ==9109== Releasing lock... [2025-01-10 17:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:15:35] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:16:05 [end_date_ymd] => 2025-01-10 17:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:16:05' and `end` < '2025-01-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-01-10 17:16:26] Production.INFO: count ==4400 [2025-01-10 17:16:28] Production.ERROR: pbx CDR StartTime 2025-01-10 14:16:05 - End Time 2025-01-10 17:16:05 [2025-01-10 17:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218387', 'tblTempUsageDetail_20' ) start [2025-01-10 17:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218387', 'tblTempUsageDetail_20' ) end [2025-01-10 17:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218387', 'tblTempVendorCDR_20' ) start [2025-01-10 17:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218387', 'tblTempVendorCDR_20' ) end [2025-01-10 17:16:28] Production.INFO: ProcessCDR(1,14218387,1,1,2) [2025-01-10 17:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218387', 'tblTempUsageDetail_20' ) start [2025-01-10 17:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218387', 'tblTempUsageDetail_20' ) end [2025-01-10 17:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:16:31] Production.INFO: ==9186== Releasing lock... [2025-01-10 17:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:16:31] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:17:05 [end_date_ymd] => 2025-01-10 17:17:05 [RateCDR] => 1 ) [2025-01-10 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:17:05' and `end` < '2025-01-10 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:17:23] Production.INFO: count ==4417 [2025-01-10 17:17:25] Production.ERROR: pbx CDR StartTime 2025-01-10 14:17:05 - End Time 2025-01-10 17:17:05 [2025-01-10 17:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218392', 'tblTempUsageDetail_20' ) start [2025-01-10 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218392', 'tblTempUsageDetail_20' ) end [2025-01-10 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218392', 'tblTempVendorCDR_20' ) start [2025-01-10 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218392', 'tblTempVendorCDR_20' ) end [2025-01-10 17:17:25] Production.INFO: ProcessCDR(1,14218392,1,1,2) [2025-01-10 17:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218392', 'tblTempUsageDetail_20' ) start [2025-01-10 17:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218392', 'tblTempUsageDetail_20' ) end [2025-01-10 17:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:17:30] Production.INFO: ==9260== Releasing lock... [2025-01-10 17:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:17:30] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:18:05 [end_date_ymd] => 2025-01-10 17:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:18:05' and `end` < '2025-01-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-01-10 17:18:19] Production.INFO: count ==4420 [2025-01-10 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:18:05 - End Time 2025-01-10 17:18:05 [2025-01-10 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218397', 'tblTempUsageDetail_20' ) start [2025-01-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218397', 'tblTempUsageDetail_20' ) end [2025-01-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218397', 'tblTempVendorCDR_20' ) start [2025-01-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218397', 'tblTempVendorCDR_20' ) end [2025-01-10 17:18:21] Production.INFO: ProcessCDR(1,14218397,1,1,2) [2025-01-10 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218397', 'tblTempUsageDetail_20' ) start [2025-01-10 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218397', 'tblTempUsageDetail_20' ) end [2025-01-10 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:18:26] Production.INFO: ==9331== Releasing lock... [2025-01-10 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:18:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:19:05 [end_date_ymd] => 2025-01-10 17:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:19:05' and `end` < '2025-01-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-01-10 17:19:21] Production.INFO: count ==4396 [2025-01-10 17:19:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:19:05 - End Time 2025-01-10 17:19:05 [2025-01-10 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218402', 'tblTempUsageDetail_20' ) start [2025-01-10 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218402', 'tblTempUsageDetail_20' ) end [2025-01-10 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218402', 'tblTempVendorCDR_20' ) start [2025-01-10 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218402', 'tblTempVendorCDR_20' ) end [2025-01-10 17:19:22] Production.INFO: ProcessCDR(1,14218402,1,1,2) [2025-01-10 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218402', 'tblTempUsageDetail_20' ) start [2025-01-10 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218402', 'tblTempUsageDetail_20' ) end [2025-01-10 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:19:26] Production.INFO: ==9404== Releasing lock... [2025-01-10 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:19:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:20:06 [end_date_ymd] => 2025-01-10 17:20:06 [RateCDR] => 1 ) [2025-01-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-01-10 14:20:06' and `end` < '2025-01-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-01-10 17:20:23] Production.INFO: count ==4378 [2025-01-10 17:20:25] Production.ERROR: pbx CDR StartTime 2025-01-10 14:20:06 - End Time 2025-01-10 17:20:06 [2025-01-10 17:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218408', 'tblTempUsageDetail_20' ) start [2025-01-10 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218408', 'tblTempUsageDetail_20' ) end [2025-01-10 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218408', 'tblTempVendorCDR_20' ) start [2025-01-10 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218408', 'tblTempVendorCDR_20' ) end [2025-01-10 17:20:25] Production.INFO: ProcessCDR(1,14218408,1,1,2) [2025-01-10 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218408', 'tblTempUsageDetail_20' ) start [2025-01-10 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218408', 'tblTempUsageDetail_20' ) end [2025-01-10 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:20:29] Production.INFO: ==9479== Releasing lock... [2025-01-10 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:20:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:21:05 [end_date_ymd] => 2025-01-10 17:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:21:05' and `end` < '2025-01-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-01-10 17:21:21] Production.INFO: count ==4428 [2025-01-10 17:21:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:21:05 - End Time 2025-01-10 17:21:05 [2025-01-10 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218413', 'tblTempUsageDetail_20' ) start [2025-01-10 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218413', 'tblTempUsageDetail_20' ) end [2025-01-10 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218413', 'tblTempVendorCDR_20' ) start [2025-01-10 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218413', 'tblTempVendorCDR_20' ) end [2025-01-10 17:21:23] Production.INFO: ProcessCDR(1,14218413,1,1,2) [2025-01-10 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218413', 'tblTempUsageDetail_20' ) start [2025-01-10 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218413', 'tblTempUsageDetail_20' ) end [2025-01-10 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:21:27] Production.INFO: ==9551== Releasing lock... [2025-01-10 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:21:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:22:05 [end_date_ymd] => 2025-01-10 17:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:22:05' and `end` < '2025-01-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-01-10 17:22:19] Production.INFO: count ==4430 [2025-01-10 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:22:05 - End Time 2025-01-10 17:22:05 [2025-01-10 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218418', 'tblTempUsageDetail_20' ) start [2025-01-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218418', 'tblTempUsageDetail_20' ) end [2025-01-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218418', 'tblTempVendorCDR_20' ) start [2025-01-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218418', 'tblTempVendorCDR_20' ) end [2025-01-10 17:22:21] Production.INFO: ProcessCDR(1,14218418,1,1,2) [2025-01-10 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218418', 'tblTempUsageDetail_20' ) start [2025-01-10 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218418', 'tblTempUsageDetail_20' ) end [2025-01-10 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:22:25] Production.INFO: ==9621== Releasing lock... [2025-01-10 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:22:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:23:04 [end_date_ymd] => 2025-01-10 17:23:04 [RateCDR] => 1 ) [2025-01-10 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:23:04' and `end` < '2025-01-10 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:23:19] Production.INFO: count ==4421 [2025-01-10 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:23:04 - End Time 2025-01-10 17:23:04 [2025-01-10 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218423', 'tblTempUsageDetail_20' ) start [2025-01-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218423', 'tblTempUsageDetail_20' ) end [2025-01-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218423', 'tblTempVendorCDR_20' ) start [2025-01-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218423', 'tblTempVendorCDR_20' ) end [2025-01-10 17:23:21] Production.INFO: ProcessCDR(1,14218423,1,1,2) [2025-01-10 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218423', 'tblTempUsageDetail_20' ) start [2025-01-10 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218423', 'tblTempUsageDetail_20' ) end [2025-01-10 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:23:26] Production.INFO: ==9692== Releasing lock... [2025-01-10 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:23:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:24:05 [end_date_ymd] => 2025-01-10 17:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:24:05' and `end` < '2025-01-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-01-10 17:24:21] Production.INFO: count ==4413 [2025-01-10 17:24:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:24:05 - End Time 2025-01-10 17:24:05 [2025-01-10 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218428', 'tblTempUsageDetail_20' ) start [2025-01-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218428', 'tblTempUsageDetail_20' ) end [2025-01-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218428', 'tblTempVendorCDR_20' ) start [2025-01-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218428', 'tblTempVendorCDR_20' ) end [2025-01-10 17:24:22] Production.INFO: ProcessCDR(1,14218428,1,1,2) [2025-01-10 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218428', 'tblTempUsageDetail_20' ) start [2025-01-10 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218428', 'tblTempUsageDetail_20' ) end [2025-01-10 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:24:26] Production.INFO: ==9764== Releasing lock... [2025-01-10 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:24:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:25:04 [end_date_ymd] => 2025-01-10 17:25:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:25:04' and `end` < '2025-01-10 17: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-01-10 17:25:19] Production.INFO: count ==4415 [2025-01-10 17:25:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:25:04 - End Time 2025-01-10 17:25:04 [2025-01-10 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218433', 'tblTempUsageDetail_20' ) start [2025-01-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218433', 'tblTempUsageDetail_20' ) end [2025-01-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218433', 'tblTempVendorCDR_20' ) start [2025-01-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218433', 'tblTempVendorCDR_20' ) end [2025-01-10 17:25:20] Production.INFO: ProcessCDR(1,14218433,1,1,2) [2025-01-10 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218433', 'tblTempUsageDetail_20' ) start [2025-01-10 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218433', 'tblTempUsageDetail_20' ) end [2025-01-10 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:25:25] Production.INFO: ==9833== Releasing lock... [2025-01-10 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:25:25] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:26:15 [end_date_ymd] => 2025-01-10 17:26:15 [RateCDR] => 1 ) [2025-01-10 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:26:15' and `end` < '2025-01-10 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:26:32] Production.INFO: count ==4380 [2025-01-10 17:27:41] Production.ERROR: pbx CDR StartTime 2025-01-10 14:26:15 - End Time 2025-01-10 17:26:15 [2025-01-10 17:27:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218438', 'tblTempUsageDetail_20' ) start [2025-01-10 17:27:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218438', 'tblTempUsageDetail_20' ) end [2025-01-10 17:27:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218438', 'tblTempVendorCDR_20' ) start [2025-01-10 17:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218438', 'tblTempVendorCDR_20' ) end [2025-01-10 17:27:45] Production.INFO: ProcessCDR(1,14218438,1,1,2) [2025-01-10 17:27:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:27:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:27:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:28:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:28:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218438', 'tblTempUsageDetail_20' ) start [2025-01-10 17:28:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218438', 'tblTempUsageDetail_20' ) end [2025-01-10 17:28:17] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:28:17] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:28:19] Production.INFO: ==9905== Releasing lock... [2025-01-10 17:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:28:19] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:29:14] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:29:14 [end_date_ymd] => 2025-01-10 17:29:14 [RateCDR] => 1 ) [2025-01-10 17:29:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:29:14' and `end` < '2025-01-10 17:29:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:29:32] Production.INFO: count ==4358 [2025-01-10 17:30:09] Production.ERROR: pbx CDR StartTime 2025-01-10 14:29:14 - End Time 2025-01-10 17:29:14 [2025-01-10 17:30:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:30:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218450', 'tblTempUsageDetail_20' ) start [2025-01-10 17:30:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218450', 'tblTempUsageDetail_20' ) end [2025-01-10 17:30:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218450', 'tblTempVendorCDR_20' ) start [2025-01-10 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218450', 'tblTempVendorCDR_20' ) end [2025-01-10 17:30:15] Production.INFO: ProcessCDR(1,14218450,1,1,2) [2025-01-10 17:30:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218450', 'tblTempUsageDetail_20' ) start [2025-01-10 17:30:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218450', 'tblTempUsageDetail_20' ) end [2025-01-10 17:30:48] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:30:49] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:30:50] Production.INFO: ==10150== Releasing lock... [2025-01-10 17:30:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:30:50] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:31:18] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:31:18 [end_date_ymd] => 2025-01-10 17:31:18 [RateCDR] => 1 ) [2025-01-10 17:31:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:31:18' and `end` < '2025-01-10 17:31:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:31:32] Production.INFO: count ==4399 [2025-01-10 17:31:34] Production.ERROR: pbx CDR StartTime 2025-01-10 14:31:18 - End Time 2025-01-10 17:31:18 [2025-01-10 17:31:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218459', 'tblTempUsageDetail_20' ) start [2025-01-10 17:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218459', 'tblTempUsageDetail_20' ) end [2025-01-10 17:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218459', 'tblTempVendorCDR_20' ) start [2025-01-10 17:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218459', 'tblTempVendorCDR_20' ) end [2025-01-10 17:31:34] Production.INFO: ProcessCDR(1,14218459,1,1,2) [2025-01-10 17:31:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:31:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218459', 'tblTempUsageDetail_20' ) start [2025-01-10 17:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218459', 'tblTempUsageDetail_20' ) end [2025-01-10 17:31:39] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:31:39] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:31:39] Production.INFO: ==10288== Releasing lock... [2025-01-10 17:31:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:31:39] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:32:05 [end_date_ymd] => 2025-01-10 17:32:05 [RateCDR] => 1 ) [2025-01-10 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:32:05' and `end` < '2025-01-10 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:32:20] Production.INFO: count ==4398 [2025-01-10 17:32:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:32:05 - End Time 2025-01-10 17:32:05 [2025-01-10 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218464', 'tblTempUsageDetail_20' ) start [2025-01-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218464', 'tblTempUsageDetail_20' ) end [2025-01-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218464', 'tblTempVendorCDR_20' ) start [2025-01-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218464', 'tblTempVendorCDR_20' ) end [2025-01-10 17:32:22] Production.INFO: ProcessCDR(1,14218464,1,1,2) [2025-01-10 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218464', 'tblTempUsageDetail_20' ) start [2025-01-10 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218464', 'tblTempUsageDetail_20' ) end [2025-01-10 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:32:27] Production.INFO: ==10364== Releasing lock... [2025-01-10 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:32:27] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:33:05 [end_date_ymd] => 2025-01-10 17:33:05 [RateCDR] => 1 ) [2025-01-10 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:33:05' and `end` < '2025-01-10 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:33:20] Production.INFO: count ==4391 [2025-01-10 17:33:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:33:05 - End Time 2025-01-10 17:33:05 [2025-01-10 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218469', 'tblTempUsageDetail_20' ) start [2025-01-10 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218469', 'tblTempUsageDetail_20' ) end [2025-01-10 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218469', 'tblTempVendorCDR_20' ) start [2025-01-10 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218469', 'tblTempVendorCDR_20' ) end [2025-01-10 17:33:22] Production.INFO: ProcessCDR(1,14218469,1,1,2) [2025-01-10 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218469', 'tblTempUsageDetail_20' ) start [2025-01-10 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218469', 'tblTempUsageDetail_20' ) end [2025-01-10 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:33:27] Production.INFO: ==10436== Releasing lock... [2025-01-10 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:33:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:34:04 [end_date_ymd] => 2025-01-10 17:34:04 [RateCDR] => 1 ) [2025-01-10 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:34:04' and `end` < '2025-01-10 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:34:20] Production.INFO: count ==4386 [2025-01-10 17:34:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:34:04 - End Time 2025-01-10 17:34:04 [2025-01-10 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218474', 'tblTempUsageDetail_20' ) start [2025-01-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218474', 'tblTempUsageDetail_20' ) end [2025-01-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218474', 'tblTempVendorCDR_20' ) start [2025-01-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218474', 'tblTempVendorCDR_20' ) end [2025-01-10 17:34:22] Production.INFO: ProcessCDR(1,14218474,1,1,2) [2025-01-10 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218474', 'tblTempUsageDetail_20' ) start [2025-01-10 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218474', 'tblTempUsageDetail_20' ) end [2025-01-10 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:34:25] Production.INFO: ==10505== Releasing lock... [2025-01-10 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:34:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:35:05 [end_date_ymd] => 2025-01-10 17:35:05 [RateCDR] => 1 ) [2025-01-10 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:35:05' and `end` < '2025-01-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-01-10 17:35:25] Production.INFO: count ==4391 [2025-01-10 17:35:27] Production.ERROR: pbx CDR StartTime 2025-01-10 14:35:05 - End Time 2025-01-10 17:35:05 [2025-01-10 17:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218479', 'tblTempUsageDetail_20' ) start [2025-01-10 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218479', 'tblTempUsageDetail_20' ) end [2025-01-10 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218479', 'tblTempVendorCDR_20' ) start [2025-01-10 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218479', 'tblTempVendorCDR_20' ) end [2025-01-10 17:35:27] Production.INFO: ProcessCDR(1,14218479,1,1,2) [2025-01-10 17:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218479', 'tblTempUsageDetail_20' ) start [2025-01-10 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218479', 'tblTempUsageDetail_20' ) end [2025-01-10 17:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:35:32] Production.INFO: ==10577== Releasing lock... [2025-01-10 17:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:35:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:36:04 [end_date_ymd] => 2025-01-10 17:36:04 [RateCDR] => 1 ) [2025-01-10 17:36: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-01-10 14:36:04' and `end` < '2025-01-10 17:36: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-01-10 17:36:19] Production.INFO: count ==4385 [2025-01-10 17:36:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:36:04 - End Time 2025-01-10 17:36:04 [2025-01-10 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218484', 'tblTempUsageDetail_20' ) start [2025-01-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218484', 'tblTempUsageDetail_20' ) end [2025-01-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218484', 'tblTempVendorCDR_20' ) start [2025-01-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218484', 'tblTempVendorCDR_20' ) end [2025-01-10 17:36:21] Production.INFO: ProcessCDR(1,14218484,1,1,2) [2025-01-10 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218484', 'tblTempUsageDetail_20' ) start [2025-01-10 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218484', 'tblTempUsageDetail_20' ) end [2025-01-10 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:36:26] Production.INFO: ==10653== Releasing lock... [2025-01-10 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:36:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:37:05 [end_date_ymd] => 2025-01-10 17:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:37:05' and `end` < '2025-01-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-01-10 17:37:20] Production.INFO: count ==4389 [2025-01-10 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:37:05 - End Time 2025-01-10 17:37:05 [2025-01-10 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218489', 'tblTempUsageDetail_20' ) start [2025-01-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218489', 'tblTempUsageDetail_20' ) end [2025-01-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218489', 'tblTempVendorCDR_20' ) start [2025-01-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218489', 'tblTempVendorCDR_20' ) end [2025-01-10 17:37:22] Production.INFO: ProcessCDR(1,14218489,1,1,2) [2025-01-10 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218489', 'tblTempUsageDetail_20' ) start [2025-01-10 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218489', 'tblTempUsageDetail_20' ) end [2025-01-10 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:37:27] Production.INFO: ==10724== Releasing lock... [2025-01-10 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:37:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:38:05 [end_date_ymd] => 2025-01-10 17:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:38:05' and `end` < '2025-01-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-01-10 17:38:19] Production.INFO: count ==4383 [2025-01-10 17:38:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:38:05 - End Time 2025-01-10 17:38:05 [2025-01-10 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218494', 'tblTempUsageDetail_20' ) start [2025-01-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218494', 'tblTempUsageDetail_20' ) end [2025-01-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218494', 'tblTempVendorCDR_20' ) start [2025-01-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218494', 'tblTempVendorCDR_20' ) end [2025-01-10 17:38:21] Production.INFO: ProcessCDR(1,14218494,1,1,2) [2025-01-10 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218494', 'tblTempUsageDetail_20' ) start [2025-01-10 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218494', 'tblTempUsageDetail_20' ) end [2025-01-10 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:38:26] Production.INFO: ==10798== Releasing lock... [2025-01-10 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:38:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:39:04 [end_date_ymd] => 2025-01-10 17:39:04 [RateCDR] => 1 ) [2025-01-10 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:39:04' and `end` < '2025-01-10 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:39:24] Production.INFO: count ==4370 [2025-01-10 17:39:25] Production.ERROR: pbx CDR StartTime 2025-01-10 14:39:04 - End Time 2025-01-10 17:39:04 [2025-01-10 17:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218499', 'tblTempUsageDetail_20' ) start [2025-01-10 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218499', 'tblTempUsageDetail_20' ) end [2025-01-10 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218499', 'tblTempVendorCDR_20' ) start [2025-01-10 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218499', 'tblTempVendorCDR_20' ) end [2025-01-10 17:39:26] Production.INFO: ProcessCDR(1,14218499,1,1,2) [2025-01-10 17:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218499', 'tblTempUsageDetail_20' ) start [2025-01-10 17:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218499', 'tblTempUsageDetail_20' ) end [2025-01-10 17:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:39:30] Production.INFO: ==10870== Releasing lock... [2025-01-10 17:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:39:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:40:06 [end_date_ymd] => 2025-01-10 17:40:06 [RateCDR] => 1 ) [2025-01-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-01-10 14:40:06' and `end` < '2025-01-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-01-10 17:40:22] Production.INFO: count ==4371 [2025-01-10 17:40:23] Production.ERROR: pbx CDR StartTime 2025-01-10 14:40:06 - End Time 2025-01-10 17:40:06 [2025-01-10 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218505', 'tblTempUsageDetail_20' ) start [2025-01-10 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218505', 'tblTempUsageDetail_20' ) end [2025-01-10 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218505', 'tblTempVendorCDR_20' ) start [2025-01-10 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218505', 'tblTempVendorCDR_20' ) end [2025-01-10 17:40:23] Production.INFO: ProcessCDR(1,14218505,1,1,2) [2025-01-10 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218505', 'tblTempUsageDetail_20' ) start [2025-01-10 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218505', 'tblTempUsageDetail_20' ) end [2025-01-10 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:40:28] Production.INFO: ==10949== Releasing lock... [2025-01-10 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:40:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:41:04 [end_date_ymd] => 2025-01-10 17:41:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:41:04' and `end` < '2025-01-10 17: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-01-10 17:41:23] Production.INFO: count ==4451 [2025-01-10 17:41:25] Production.ERROR: pbx CDR StartTime 2025-01-10 14:41:04 - End Time 2025-01-10 17:41:04 [2025-01-10 17:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218510', 'tblTempUsageDetail_20' ) start [2025-01-10 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218510', 'tblTempUsageDetail_20' ) end [2025-01-10 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218510', 'tblTempVendorCDR_20' ) start [2025-01-10 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218510', 'tblTempVendorCDR_20' ) end [2025-01-10 17:41:25] Production.INFO: ProcessCDR(1,14218510,1,1,2) [2025-01-10 17:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218510', 'tblTempUsageDetail_20' ) start [2025-01-10 17:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218510', 'tblTempUsageDetail_20' ) end [2025-01-10 17:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:41:30] Production.INFO: ==11021== Releasing lock... [2025-01-10 17:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:41:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:42:05 [end_date_ymd] => 2025-01-10 17:42:05 [RateCDR] => 1 ) [2025-01-10 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:42:05' and `end` < '2025-01-10 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:42:23] Production.INFO: count ==4444 [2025-01-10 17:42:24] Production.ERROR: pbx CDR StartTime 2025-01-10 14:42:05 - End Time 2025-01-10 17:42:05 [2025-01-10 17:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218515', 'tblTempUsageDetail_20' ) start [2025-01-10 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218515', 'tblTempUsageDetail_20' ) end [2025-01-10 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218515', 'tblTempVendorCDR_20' ) start [2025-01-10 17:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218515', 'tblTempVendorCDR_20' ) end [2025-01-10 17:42:24] Production.INFO: ProcessCDR(1,14218515,1,1,2) [2025-01-10 17:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218515', 'tblTempUsageDetail_20' ) start [2025-01-10 17:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218515', 'tblTempUsageDetail_20' ) end [2025-01-10 17:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:42:29] Production.INFO: ==11098== Releasing lock... [2025-01-10 17:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:42:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:43:04 [end_date_ymd] => 2025-01-10 17:43:04 [RateCDR] => 1 ) [2025-01-10 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:43:04' and `end` < '2025-01-10 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:43:18] Production.INFO: count ==4447 [2025-01-10 17:43:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:43:04 - End Time 2025-01-10 17:43:04 [2025-01-10 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218520', 'tblTempUsageDetail_20' ) start [2025-01-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218520', 'tblTempUsageDetail_20' ) end [2025-01-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218520', 'tblTempVendorCDR_20' ) start [2025-01-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218520', 'tblTempVendorCDR_20' ) end [2025-01-10 17:43:20] Production.INFO: ProcessCDR(1,14218520,1,1,2) [2025-01-10 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218520', 'tblTempUsageDetail_20' ) start [2025-01-10 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218520', 'tblTempUsageDetail_20' ) end [2025-01-10 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:43:25] Production.INFO: ==11210== Releasing lock... [2025-01-10 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:43:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-10 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:44:05 [end_date_ymd] => 2025-01-10 17:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:44:05' and `end` < '2025-01-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-01-10 17:44:20] Production.INFO: count ==4423 [2025-01-10 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:44:05 - End Time 2025-01-10 17:44:05 [2025-01-10 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218525', 'tblTempUsageDetail_20' ) start [2025-01-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218525', 'tblTempUsageDetail_20' ) end [2025-01-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218525', 'tblTempVendorCDR_20' ) start [2025-01-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218525', 'tblTempVendorCDR_20' ) end [2025-01-10 17:44:22] Production.INFO: ProcessCDR(1,14218525,1,1,2) [2025-01-10 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218525', 'tblTempUsageDetail_20' ) start [2025-01-10 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218525', 'tblTempUsageDetail_20' ) end [2025-01-10 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:44:27] Production.INFO: ==11279== Releasing lock... [2025-01-10 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:44:27] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:45:05 [end_date_ymd] => 2025-01-10 17:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:45:05' and `end` < '2025-01-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-01-10 17:45:19] Production.INFO: count ==4408 [2025-01-10 17:45:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:45:05 - End Time 2025-01-10 17:45:05 [2025-01-10 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218530', 'tblTempUsageDetail_20' ) start [2025-01-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218530', 'tblTempUsageDetail_20' ) end [2025-01-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218530', 'tblTempVendorCDR_20' ) start [2025-01-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218530', 'tblTempVendorCDR_20' ) end [2025-01-10 17:45:20] Production.INFO: ProcessCDR(1,14218530,1,1,2) [2025-01-10 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218530', 'tblTempUsageDetail_20' ) start [2025-01-10 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218530', 'tblTempUsageDetail_20' ) end [2025-01-10 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:45:24] Production.INFO: ==11349== Releasing lock... [2025-01-10 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:45:24] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:46:05 [end_date_ymd] => 2025-01-10 17:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:46:05' and `end` < '2025-01-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-01-10 17:46:20] Production.INFO: count ==4400 [2025-01-10 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:46:05 - End Time 2025-01-10 17:46:05 [2025-01-10 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218535', 'tblTempUsageDetail_20' ) start [2025-01-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218535', 'tblTempUsageDetail_20' ) end [2025-01-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218535', 'tblTempVendorCDR_20' ) start [2025-01-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218535', 'tblTempVendorCDR_20' ) end [2025-01-10 17:46:21] Production.INFO: ProcessCDR(1,14218535,1,1,2) [2025-01-10 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218535', 'tblTempUsageDetail_20' ) start [2025-01-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218535', 'tblTempUsageDetail_20' ) end [2025-01-10 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:46:26] Production.INFO: ==11420== Releasing lock... [2025-01-10 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:46:26] Production.INFO: 61 MB #Memory Used# [2025-01-10 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:47:05 [end_date_ymd] => 2025-01-10 17:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:47:05' and `end` < '2025-01-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-01-10 17:47:19] Production.INFO: count ==4367 [2025-01-10 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:47:05 - End Time 2025-01-10 17:47:05 [2025-01-10 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218540', 'tblTempUsageDetail_20' ) start [2025-01-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218540', 'tblTempUsageDetail_20' ) end [2025-01-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218540', 'tblTempVendorCDR_20' ) start [2025-01-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218540', 'tblTempVendorCDR_20' ) end [2025-01-10 17:47:20] Production.INFO: ProcessCDR(1,14218540,1,1,2) [2025-01-10 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218540', 'tblTempUsageDetail_20' ) start [2025-01-10 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218540', 'tblTempUsageDetail_20' ) end [2025-01-10 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:47:24] Production.INFO: ==11490== Releasing lock... [2025-01-10 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:47:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:48:05 [end_date_ymd] => 2025-01-10 17:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:48:05' and `end` < '2025-01-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-01-10 17:48:19] Production.INFO: count ==4314 [2025-01-10 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:48:05 - End Time 2025-01-10 17:48:05 [2025-01-10 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218545', 'tblTempUsageDetail_20' ) start [2025-01-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218545', 'tblTempUsageDetail_20' ) end [2025-01-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218545', 'tblTempVendorCDR_20' ) start [2025-01-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218545', 'tblTempVendorCDR_20' ) end [2025-01-10 17:48:21] Production.INFO: ProcessCDR(1,14218545,1,1,2) [2025-01-10 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218545', 'tblTempUsageDetail_20' ) start [2025-01-10 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218545', 'tblTempUsageDetail_20' ) end [2025-01-10 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:48:24] Production.INFO: ==11564== Releasing lock... [2025-01-10 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:48:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:49:05 [end_date_ymd] => 2025-01-10 17:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:49:05' and `end` < '2025-01-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-01-10 17:49:19] Production.INFO: count ==4279 [2025-01-10 17:49:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:49:05 - End Time 2025-01-10 17:49:05 [2025-01-10 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218550', 'tblTempUsageDetail_20' ) start [2025-01-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218550', 'tblTempUsageDetail_20' ) end [2025-01-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218550', 'tblTempVendorCDR_20' ) start [2025-01-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218550', 'tblTempVendorCDR_20' ) end [2025-01-10 17:49:20] Production.INFO: ProcessCDR(1,14218550,1,1,2) [2025-01-10 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218550', 'tblTempUsageDetail_20' ) start [2025-01-10 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218550', 'tblTempUsageDetail_20' ) end [2025-01-10 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:49:23] Production.INFO: ==11639== Releasing lock... [2025-01-10 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:49:23] Production.INFO: 60 MB #Memory Used# [2025-01-10 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:50:05 [end_date_ymd] => 2025-01-10 17:50:05 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:50:05' and `end` < '2025-01-10 17: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-01-10 17:50:18] Production.INFO: count ==4280 [2025-01-10 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:50:05 - End Time 2025-01-10 17:50:05 [2025-01-10 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218555', 'tblTempUsageDetail_20' ) start [2025-01-10 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218555', 'tblTempUsageDetail_20' ) end [2025-01-10 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218555', 'tblTempVendorCDR_20' ) start [2025-01-10 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218555', 'tblTempVendorCDR_20' ) end [2025-01-10 17:50:20] Production.INFO: ProcessCDR(1,14218555,1,1,2) [2025-01-10 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218555', 'tblTempUsageDetail_20' ) start [2025-01-10 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218555', 'tblTempUsageDetail_20' ) end [2025-01-10 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:50:25] Production.INFO: ==11711== Releasing lock... [2025-01-10 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:50:25] Production.INFO: 60 MB #Memory Used# [2025-01-10 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:51:05 [end_date_ymd] => 2025-01-10 17:51:05 [RateCDR] => 1 ) [2025-01-10 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:51:05' and `end` < '2025-01-10 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:51:18] Production.INFO: count ==4369 [2025-01-10 17:51:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:51:05 - End Time 2025-01-10 17:51:05 [2025-01-10 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218561', 'tblTempUsageDetail_20' ) start [2025-01-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218561', 'tblTempUsageDetail_20' ) end [2025-01-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218561', 'tblTempVendorCDR_20' ) start [2025-01-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218561', 'tblTempVendorCDR_20' ) end [2025-01-10 17:51:20] Production.INFO: ProcessCDR(1,14218561,1,1,2) [2025-01-10 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218561', 'tblTempUsageDetail_20' ) start [2025-01-10 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218561', 'tblTempUsageDetail_20' ) end [2025-01-10 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:51:23] Production.INFO: ==11786== Releasing lock... [2025-01-10 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:51:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-10 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:52:05 [end_date_ymd] => 2025-01-10 17:52:05 [RateCDR] => 1 ) [2025-01-10 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:52:05' and `end` < '2025-01-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-01-10 17:52:19] Production.INFO: count ==4335 [2025-01-10 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:52:05 - End Time 2025-01-10 17:52:05 [2025-01-10 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218566', 'tblTempUsageDetail_20' ) start [2025-01-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218566', 'tblTempUsageDetail_20' ) end [2025-01-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218566', 'tblTempVendorCDR_20' ) start [2025-01-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218566', 'tblTempVendorCDR_20' ) end [2025-01-10 17:52:21] Production.INFO: ProcessCDR(1,14218566,1,1,2) [2025-01-10 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218566', 'tblTempUsageDetail_20' ) start [2025-01-10 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218566', 'tblTempUsageDetail_20' ) end [2025-01-10 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:52:24] Production.INFO: ==11860== Releasing lock... [2025-01-10 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:52:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:53:04 [end_date_ymd] => 2025-01-10 17:53:04 [RateCDR] => 1 ) [2025-01-10 17:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:53:04' and `end` < '2025-01-10 17:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:53:18] Production.INFO: count ==4327 [2025-01-10 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:53:04 - End Time 2025-01-10 17:53:04 [2025-01-10 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218571', 'tblTempUsageDetail_20' ) start [2025-01-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218571', 'tblTempUsageDetail_20' ) end [2025-01-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218571', 'tblTempVendorCDR_20' ) start [2025-01-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218571', 'tblTempVendorCDR_20' ) end [2025-01-10 17:53:20] Production.INFO: ProcessCDR(1,14218571,1,1,2) [2025-01-10 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218571', 'tblTempUsageDetail_20' ) start [2025-01-10 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218571', 'tblTempUsageDetail_20' ) end [2025-01-10 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:53:23] Production.INFO: ==11930== Releasing lock... [2025-01-10 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:53:23] Production.INFO: 60.5 MB #Memory Used# [2025-01-10 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:54:05 [end_date_ymd] => 2025-01-10 17:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:54:05' and `end` < '2025-01-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-01-10 17:54:21] Production.INFO: count ==4321 [2025-01-10 17:54:23] Production.ERROR: pbx CDR StartTime 2025-01-10 14:54:05 - End Time 2025-01-10 17:54:05 [2025-01-10 17:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218576', 'tblTempUsageDetail_20' ) start [2025-01-10 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218576', 'tblTempUsageDetail_20' ) end [2025-01-10 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218576', 'tblTempVendorCDR_20' ) start [2025-01-10 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218576', 'tblTempVendorCDR_20' ) end [2025-01-10 17:54:23] Production.INFO: ProcessCDR(1,14218576,1,1,2) [2025-01-10 17:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218576', 'tblTempUsageDetail_20' ) start [2025-01-10 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218576', 'tblTempUsageDetail_20' ) end [2025-01-10 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:54:26] Production.INFO: ==12000== Releasing lock... [2025-01-10 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:54:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:55:05 [end_date_ymd] => 2025-01-10 17:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:55:05' and `end` < '2025-01-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-01-10 17:55:18] Production.INFO: count ==4307 [2025-01-10 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:55:05 - End Time 2025-01-10 17:55:05 [2025-01-10 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218581', 'tblTempUsageDetail_20' ) start [2025-01-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218581', 'tblTempUsageDetail_20' ) end [2025-01-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218581', 'tblTempVendorCDR_20' ) start [2025-01-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218581', 'tblTempVendorCDR_20' ) end [2025-01-10 17:55:20] Production.INFO: ProcessCDR(1,14218581,1,1,2) [2025-01-10 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218581', 'tblTempUsageDetail_20' ) start [2025-01-10 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218581', 'tblTempUsageDetail_20' ) end [2025-01-10 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:55:25] Production.INFO: ==12074== Releasing lock... [2025-01-10 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:55:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:56:04 [end_date_ymd] => 2025-01-10 17:56:04 [RateCDR] => 1 ) [2025-01-10 17: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-01-10 14:56:04' and `end` < '2025-01-10 17: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-01-10 17:56:23] Production.INFO: count ==4297 [2025-01-10 17:56:24] Production.ERROR: pbx CDR StartTime 2025-01-10 14:56:04 - End Time 2025-01-10 17:56:04 [2025-01-10 17:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218586', 'tblTempUsageDetail_20' ) start [2025-01-10 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218586', 'tblTempUsageDetail_20' ) end [2025-01-10 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218586', 'tblTempVendorCDR_20' ) start [2025-01-10 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218586', 'tblTempVendorCDR_20' ) end [2025-01-10 17:56:24] Production.INFO: ProcessCDR(1,14218586,1,1,2) [2025-01-10 17:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218586', 'tblTempUsageDetail_20' ) start [2025-01-10 17:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218586', 'tblTempUsageDetail_20' ) end [2025-01-10 17:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:56:30] Production.INFO: ==12152== Releasing lock... [2025-01-10 17:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:56:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-10 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:57:04 [end_date_ymd] => 2025-01-10 17:57:04 [RateCDR] => 1 ) [2025-01-10 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:57:04' and `end` < '2025-01-10 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:57:20] Production.INFO: count ==4289 [2025-01-10 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-10 14:57:04 - End Time 2025-01-10 17:57:04 [2025-01-10 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218591', 'tblTempUsageDetail_20' ) start [2025-01-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218591', 'tblTempUsageDetail_20' ) end [2025-01-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218591', 'tblTempVendorCDR_20' ) start [2025-01-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218591', 'tblTempVendorCDR_20' ) end [2025-01-10 17:57:21] Production.INFO: ProcessCDR(1,14218591,1,1,2) [2025-01-10 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218591', 'tblTempUsageDetail_20' ) start [2025-01-10 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218591', 'tblTempUsageDetail_20' ) end [2025-01-10 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:57:26] Production.INFO: ==12222== Releasing lock... [2025-01-10 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:57:26] Production.INFO: 60 MB #Memory Used# [2025-01-10 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:58:05 [end_date_ymd] => 2025-01-10 17:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 14:58:05' and `end` < '2025-01-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-01-10 17:58:19] Production.INFO: count ==4267 [2025-01-10 17:58:20] Production.ERROR: pbx CDR StartTime 2025-01-10 14:58:05 - End Time 2025-01-10 17:58:05 [2025-01-10 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218596', 'tblTempUsageDetail_20' ) start [2025-01-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218596', 'tblTempUsageDetail_20' ) end [2025-01-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218596', 'tblTempVendorCDR_20' ) start [2025-01-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218596', 'tblTempVendorCDR_20' ) end [2025-01-10 17:58:20] Production.INFO: ProcessCDR(1,14218596,1,1,2) [2025-01-10 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218596', 'tblTempUsageDetail_20' ) start [2025-01-10 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218596', 'tblTempUsageDetail_20' ) end [2025-01-10 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:58:23] Production.INFO: ==12332== Releasing lock... [2025-01-10 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:58:23] Production.INFO: 60 MB #Memory Used# [2025-01-10 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 14:59:05 [end_date_ymd] => 2025-01-10 17:59:05 [RateCDR] => 1 ) [2025-01-10 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 14:59:05' and `end` < '2025-01-10 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 17:59:21] Production.INFO: count ==4259 [2025-01-10 17:59:22] Production.ERROR: pbx CDR StartTime 2025-01-10 14:59:05 - End Time 2025-01-10 17:59:05 [2025-01-10 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218601', 'tblTempUsageDetail_20' ) start [2025-01-10 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218601', 'tblTempUsageDetail_20' ) end [2025-01-10 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218601', 'tblTempVendorCDR_20' ) start [2025-01-10 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218601', 'tblTempVendorCDR_20' ) end [2025-01-10 17:59:22] Production.INFO: ProcessCDR(1,14218601,1,1,2) [2025-01-10 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218601', 'tblTempUsageDetail_20' ) start [2025-01-10 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218601', 'tblTempUsageDetail_20' ) end [2025-01-10 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 17:59:26] Production.INFO: ==12403== Releasing lock... [2025-01-10 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 17:59:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:00:06 [end_date_ymd] => 2025-01-10 18:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 15:00:06' and `end` < '2025-01-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-01-10 18:00:25] Production.INFO: count ==4261 [2025-01-10 18:00:27] Production.ERROR: pbx CDR StartTime 2025-01-10 15:00:06 - End Time 2025-01-10 18:00:06 [2025-01-10 18:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218607', 'tblTempUsageDetail_20' ) start [2025-01-10 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218607', 'tblTempUsageDetail_20' ) end [2025-01-10 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218607', 'tblTempVendorCDR_20' ) start [2025-01-10 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218607', 'tblTempVendorCDR_20' ) end [2025-01-10 18:00:27] Production.INFO: ProcessCDR(1,14218607,1,1,2) [2025-01-10 18:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218607', 'tblTempUsageDetail_20' ) start [2025-01-10 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218607', 'tblTempUsageDetail_20' ) end [2025-01-10 18:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:00:31] Production.INFO: ==12474== Releasing lock... [2025-01-10 18:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:00:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:01:05 [end_date_ymd] => 2025-01-10 18:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:01:05' and `end` < '2025-01-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-01-10 18:01:19] Production.INFO: count ==4210 [2025-01-10 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:01:05 - End Time 2025-01-10 18:01:05 [2025-01-10 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218612', 'tblTempUsageDetail_20' ) start [2025-01-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218612', 'tblTempUsageDetail_20' ) end [2025-01-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218612', 'tblTempVendorCDR_20' ) start [2025-01-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218612', 'tblTempVendorCDR_20' ) end [2025-01-10 18:01:20] Production.INFO: ProcessCDR(1,14218612,1,1,2) [2025-01-10 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218612', 'tblTempUsageDetail_20' ) start [2025-01-10 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218612', 'tblTempUsageDetail_20' ) end [2025-01-10 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:01:23] Production.INFO: ==12564== Releasing lock... [2025-01-10 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:01:23] Production.INFO: 59.75 MB #Memory Used# [2025-01-10 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:02:05 [end_date_ymd] => 2025-01-10 18:02:05 [RateCDR] => 1 ) [2025-01-10 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:02:05' and `end` < '2025-01-10 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:02:20] Production.INFO: count ==4203 [2025-01-10 18:02:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:02:05 - End Time 2025-01-10 18:02:05 [2025-01-10 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218617', 'tblTempUsageDetail_20' ) start [2025-01-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218617', 'tblTempUsageDetail_20' ) end [2025-01-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218617', 'tblTempVendorCDR_20' ) start [2025-01-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218617', 'tblTempVendorCDR_20' ) end [2025-01-10 18:02:21] Production.INFO: ProcessCDR(1,14218617,1,1,2) [2025-01-10 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218617', 'tblTempUsageDetail_20' ) start [2025-01-10 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218617', 'tblTempUsageDetail_20' ) end [2025-01-10 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:02:26] Production.INFO: ==12634== Releasing lock... [2025-01-10 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:02:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:03:05 [end_date_ymd] => 2025-01-10 18:03:05 [RateCDR] => 1 ) [2025-01-10 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:03:05' and `end` < '2025-01-10 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:03:20] Production.INFO: count ==4209 [2025-01-10 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:03:05 - End Time 2025-01-10 18:03:05 [2025-01-10 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218622', 'tblTempUsageDetail_20' ) start [2025-01-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218622', 'tblTempUsageDetail_20' ) end [2025-01-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218622', 'tblTempVendorCDR_20' ) start [2025-01-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218622', 'tblTempVendorCDR_20' ) end [2025-01-10 18:03:21] Production.INFO: ProcessCDR(1,14218622,1,1,2) [2025-01-10 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218622', 'tblTempUsageDetail_20' ) start [2025-01-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218622', 'tblTempUsageDetail_20' ) end [2025-01-10 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:03:26] Production.INFO: ==12703== Releasing lock... [2025-01-10 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:03:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:04:04 [end_date_ymd] => 2025-01-10 18:04:04 [RateCDR] => 1 ) [2025-01-10 18:04: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-01-10 15:04:04' and `end` < '2025-01-10 18:04: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-01-10 18:04:19] Production.INFO: count ==4208 [2025-01-10 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:04:04 - End Time 2025-01-10 18:04:04 [2025-01-10 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218627', 'tblTempUsageDetail_20' ) start [2025-01-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218627', 'tblTempUsageDetail_20' ) end [2025-01-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218627', 'tblTempVendorCDR_20' ) start [2025-01-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218627', 'tblTempVendorCDR_20' ) end [2025-01-10 18:04:21] Production.INFO: ProcessCDR(1,14218627,1,1,2) [2025-01-10 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218627', 'tblTempUsageDetail_20' ) start [2025-01-10 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218627', 'tblTempUsageDetail_20' ) end [2025-01-10 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:04:26] Production.INFO: ==12776== Releasing lock... [2025-01-10 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:04:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:05:06 [end_date_ymd] => 2025-01-10 18:05:06 [RateCDR] => 1 ) [2025-01-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-01-10 15:05:06' and `end` < '2025-01-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-01-10 18:05:20] Production.INFO: count ==4213 [2025-01-10 18:05:22] Production.ERROR: pbx CDR StartTime 2025-01-10 15:05:06 - End Time 2025-01-10 18:05:06 [2025-01-10 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218632', 'tblTempUsageDetail_20' ) start [2025-01-10 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218632', 'tblTempUsageDetail_20' ) end [2025-01-10 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218632', 'tblTempVendorCDR_20' ) start [2025-01-10 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218632', 'tblTempVendorCDR_20' ) end [2025-01-10 18:05:22] Production.INFO: ProcessCDR(1,14218632,1,1,2) [2025-01-10 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218632', 'tblTempUsageDetail_20' ) start [2025-01-10 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218632', 'tblTempUsageDetail_20' ) end [2025-01-10 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:05:25] Production.INFO: ==12847== Releasing lock... [2025-01-10 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:05:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:06:05 [end_date_ymd] => 2025-01-10 18:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:06:05' and `end` < '2025-01-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-01-10 18:06:18] Production.INFO: count ==4201 [2025-01-10 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:06:05 - End Time 2025-01-10 18:06:05 [2025-01-10 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218637', 'tblTempUsageDetail_20' ) start [2025-01-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218637', 'tblTempUsageDetail_20' ) end [2025-01-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218637', 'tblTempVendorCDR_20' ) start [2025-01-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218637', 'tblTempVendorCDR_20' ) end [2025-01-10 18:06:20] Production.INFO: ProcessCDR(1,14218637,1,1,2) [2025-01-10 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218637', 'tblTempUsageDetail_20' ) start [2025-01-10 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218637', 'tblTempUsageDetail_20' ) end [2025-01-10 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:06:23] Production.INFO: ==12917== Releasing lock... [2025-01-10 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:06:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-10 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:07:05 [end_date_ymd] => 2025-01-10 18:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:07:05' and `end` < '2025-01-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-01-10 18:07:19] Production.INFO: count ==4195 [2025-01-10 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:07:05 - End Time 2025-01-10 18:07:05 [2025-01-10 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218642', 'tblTempUsageDetail_20' ) start [2025-01-10 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218642', 'tblTempUsageDetail_20' ) end [2025-01-10 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218642', 'tblTempVendorCDR_20' ) start [2025-01-10 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218642', 'tblTempVendorCDR_20' ) end [2025-01-10 18:07:21] Production.INFO: ProcessCDR(1,14218642,1,1,2) [2025-01-10 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218642', 'tblTempUsageDetail_20' ) start [2025-01-10 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218642', 'tblTempUsageDetail_20' ) end [2025-01-10 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:07:26] Production.INFO: ==12988== Releasing lock... [2025-01-10 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:07:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-10 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:08:04 [end_date_ymd] => 2025-01-10 18:08:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:08:04' and `end` < '2025-01-10 18: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-01-10 18:08:21] Production.INFO: count ==4162 [2025-01-10 18:08:22] Production.ERROR: pbx CDR StartTime 2025-01-10 15:08:04 - End Time 2025-01-10 18:08:04 [2025-01-10 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218647', 'tblTempUsageDetail_20' ) start [2025-01-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218647', 'tblTempUsageDetail_20' ) end [2025-01-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218647', 'tblTempVendorCDR_20' ) start [2025-01-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218647', 'tblTempVendorCDR_20' ) end [2025-01-10 18:08:22] Production.INFO: ProcessCDR(1,14218647,1,1,2) [2025-01-10 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218647', 'tblTempUsageDetail_20' ) start [2025-01-10 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218647', 'tblTempUsageDetail_20' ) end [2025-01-10 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:08:27] Production.INFO: ==13063== Releasing lock... [2025-01-10 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:08:27] Production.INFO: 59 MB #Memory Used# [2025-01-10 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:09:04 [end_date_ymd] => 2025-01-10 18:09:04 [RateCDR] => 1 ) [2025-01-10 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:09:04' and `end` < '2025-01-10 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:09:19] Production.INFO: count ==4125 [2025-01-10 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:09:04 - End Time 2025-01-10 18:09:04 [2025-01-10 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218651', 'tblTempUsageDetail_20' ) start [2025-01-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218651', 'tblTempUsageDetail_20' ) end [2025-01-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218651', 'tblTempVendorCDR_20' ) start [2025-01-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218651', 'tblTempVendorCDR_20' ) end [2025-01-10 18:09:20] Production.INFO: ProcessCDR(1,14218651,1,1,2) [2025-01-10 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218651', 'tblTempUsageDetail_20' ) start [2025-01-10 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218651', 'tblTempUsageDetail_20' ) end [2025-01-10 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:09:25] Production.INFO: ==13138== Releasing lock... [2025-01-10 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:09:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:10:05 [end_date_ymd] => 2025-01-10 18:10:05 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:10:05' and `end` < '2025-01-10 18: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-01-10 18:10:19] Production.INFO: count ==4115 [2025-01-10 18:10:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:10:05 - End Time 2025-01-10 18:10:05 [2025-01-10 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218658', 'tblTempUsageDetail_20' ) start [2025-01-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218658', 'tblTempUsageDetail_20' ) end [2025-01-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218658', 'tblTempVendorCDR_20' ) start [2025-01-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218658', 'tblTempVendorCDR_20' ) end [2025-01-10 18:10:21] Production.INFO: ProcessCDR(1,14218658,1,1,2) [2025-01-10 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218658', 'tblTempUsageDetail_20' ) start [2025-01-10 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218658', 'tblTempUsageDetail_20' ) end [2025-01-10 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:10:24] Production.INFO: ==13212== Releasing lock... [2025-01-10 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:10:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-10 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:11:04 [end_date_ymd] => 2025-01-10 18:11:04 [RateCDR] => 1 ) [2025-01-10 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:11:04' and `end` < '2025-01-10 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:11:18] Production.INFO: count ==4069 [2025-01-10 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:11:04 - End Time 2025-01-10 18:11:04 [2025-01-10 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218663', 'tblTempUsageDetail_20' ) start [2025-01-10 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218663', 'tblTempUsageDetail_20' ) end [2025-01-10 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218663', 'tblTempVendorCDR_20' ) start [2025-01-10 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218663', 'tblTempVendorCDR_20' ) end [2025-01-10 18:11:20] Production.INFO: ProcessCDR(1,14218663,1,1,2) [2025-01-10 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218663', 'tblTempUsageDetail_20' ) start [2025-01-10 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218663', 'tblTempUsageDetail_20' ) end [2025-01-10 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:11:24] Production.INFO: ==13285== Releasing lock... [2025-01-10 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:11:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-10 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:12:05 [end_date_ymd] => 2025-01-10 18:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:12:05' and `end` < '2025-01-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-01-10 18:12:20] Production.INFO: count ==4057 [2025-01-10 18:12:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:12:05 - End Time 2025-01-10 18:12:05 [2025-01-10 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218668', 'tblTempUsageDetail_20' ) start [2025-01-10 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218668', 'tblTempUsageDetail_20' ) end [2025-01-10 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218668', 'tblTempVendorCDR_20' ) start [2025-01-10 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218668', 'tblTempVendorCDR_20' ) end [2025-01-10 18:12:21] Production.INFO: ProcessCDR(1,14218668,1,1,2) [2025-01-10 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218668', 'tblTempUsageDetail_20' ) start [2025-01-10 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218668', 'tblTempUsageDetail_20' ) end [2025-01-10 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:12:26] Production.INFO: ==13362== Releasing lock... [2025-01-10 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:12:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:13:04 [end_date_ymd] => 2025-01-10 18:13:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:13:04' and `end` < '2025-01-10 18: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-01-10 18:13:19] Production.INFO: count ==4022 [2025-01-10 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:13:04 - End Time 2025-01-10 18:13:04 [2025-01-10 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218673', 'tblTempUsageDetail_20' ) start [2025-01-10 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218673', 'tblTempUsageDetail_20' ) end [2025-01-10 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218673', 'tblTempVendorCDR_20' ) start [2025-01-10 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218673', 'tblTempVendorCDR_20' ) end [2025-01-10 18:13:21] Production.INFO: ProcessCDR(1,14218673,1,1,2) [2025-01-10 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218673', 'tblTempUsageDetail_20' ) start [2025-01-10 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218673', 'tblTempUsageDetail_20' ) end [2025-01-10 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:13:24] Production.INFO: ==13435== Releasing lock... [2025-01-10 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:13:24] Production.INFO: 58 MB #Memory Used# [2025-01-10 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:14:05 [end_date_ymd] => 2025-01-10 18:14:05 [RateCDR] => 1 ) [2025-01-10 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:14:05' and `end` < '2025-01-10 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:14:25] Production.INFO: count ==4018 [2025-01-10 18:14:26] Production.ERROR: pbx CDR StartTime 2025-01-10 15:14:05 - End Time 2025-01-10 18:14:05 [2025-01-10 18:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218678', 'tblTempUsageDetail_20' ) start [2025-01-10 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218678', 'tblTempUsageDetail_20' ) end [2025-01-10 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218678', 'tblTempVendorCDR_20' ) start [2025-01-10 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218678', 'tblTempVendorCDR_20' ) end [2025-01-10 18:14:26] Production.INFO: ProcessCDR(1,14218678,1,1,2) [2025-01-10 18:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218678', 'tblTempUsageDetail_20' ) start [2025-01-10 18:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218678', 'tblTempUsageDetail_20' ) end [2025-01-10 18:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:14:30] Production.INFO: ==13549== Releasing lock... [2025-01-10 18:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:14:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-10 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:15:05 [end_date_ymd] => 2025-01-10 18:15:05 [RateCDR] => 1 ) [2025-01-10 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:15:05' and `end` < '2025-01-10 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:15:26] Production.INFO: count ==4005 [2025-01-10 18:15:27] Production.ERROR: pbx CDR StartTime 2025-01-10 15:15:05 - End Time 2025-01-10 18:15:05 [2025-01-10 18:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218683', 'tblTempUsageDetail_20' ) start [2025-01-10 18:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218683', 'tblTempUsageDetail_20' ) end [2025-01-10 18:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218683', 'tblTempVendorCDR_20' ) start [2025-01-10 18:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218683', 'tblTempVendorCDR_20' ) end [2025-01-10 18:15:27] Production.INFO: ProcessCDR(1,14218683,1,1,2) [2025-01-10 18:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218683', 'tblTempUsageDetail_20' ) start [2025-01-10 18:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218683', 'tblTempUsageDetail_20' ) end [2025-01-10 18:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:15:32] Production.INFO: ==13624== Releasing lock... [2025-01-10 18:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:15:32] Production.INFO: 58 MB #Memory Used# [2025-01-10 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:16:05 [end_date_ymd] => 2025-01-10 18:16:05 [RateCDR] => 1 ) [2025-01-10 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:16:05' and `end` < '2025-01-10 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:16:20] Production.INFO: count ==3991 [2025-01-10 18:16:22] Production.ERROR: pbx CDR StartTime 2025-01-10 15:16:05 - End Time 2025-01-10 18:16:05 [2025-01-10 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218688', 'tblTempUsageDetail_20' ) start [2025-01-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218688', 'tblTempUsageDetail_20' ) end [2025-01-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218688', 'tblTempVendorCDR_20' ) start [2025-01-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218688', 'tblTempVendorCDR_20' ) end [2025-01-10 18:16:22] Production.INFO: ProcessCDR(1,14218688,1,1,2) [2025-01-10 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218688', 'tblTempUsageDetail_20' ) start [2025-01-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218688', 'tblTempUsageDetail_20' ) end [2025-01-10 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:16:25] Production.INFO: ==13694== Releasing lock... [2025-01-10 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:16:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:17:04 [end_date_ymd] => 2025-01-10 18:17:04 [RateCDR] => 1 ) [2025-01-10 18:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:17:04' and `end` < '2025-01-10 18:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:17:18] Production.INFO: count ==3977 [2025-01-10 18:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:17:04 - End Time 2025-01-10 18:17:04 [2025-01-10 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218693', 'tblTempUsageDetail_20' ) start [2025-01-10 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218693', 'tblTempUsageDetail_20' ) end [2025-01-10 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218693', 'tblTempVendorCDR_20' ) start [2025-01-10 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218693', 'tblTempVendorCDR_20' ) end [2025-01-10 18:17:19] Production.INFO: ProcessCDR(1,14218693,1,1,2) [2025-01-10 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218693', 'tblTempUsageDetail_20' ) start [2025-01-10 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218693', 'tblTempUsageDetail_20' ) end [2025-01-10 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:17:24] Production.INFO: ==13765== Releasing lock... [2025-01-10 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:17:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:18:05 [end_date_ymd] => 2025-01-10 18:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:18:05' and `end` < '2025-01-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-01-10 18:18:19] Production.INFO: count ==3967 [2025-01-10 18:18:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:18:05 - End Time 2025-01-10 18:18:05 [2025-01-10 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218698', 'tblTempUsageDetail_20' ) start [2025-01-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218698', 'tblTempUsageDetail_20' ) end [2025-01-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218698', 'tblTempVendorCDR_20' ) start [2025-01-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218698', 'tblTempVendorCDR_20' ) end [2025-01-10 18:18:20] Production.INFO: ProcessCDR(1,14218698,1,1,2) [2025-01-10 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218698', 'tblTempUsageDetail_20' ) start [2025-01-10 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218698', 'tblTempUsageDetail_20' ) end [2025-01-10 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:18:24] Production.INFO: ==13835== Releasing lock... [2025-01-10 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:18:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:19:05 [end_date_ymd] => 2025-01-10 18:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:19:05' and `end` < '2025-01-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-01-10 18:19:19] Production.INFO: count ==3962 [2025-01-10 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:19:05 - End Time 2025-01-10 18:19:05 [2025-01-10 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218703', 'tblTempUsageDetail_20' ) start [2025-01-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218703', 'tblTempUsageDetail_20' ) end [2025-01-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218703', 'tblTempVendorCDR_20' ) start [2025-01-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218703', 'tblTempVendorCDR_20' ) end [2025-01-10 18:19:20] Production.INFO: ProcessCDR(1,14218703,1,1,2) [2025-01-10 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218703', 'tblTempUsageDetail_20' ) start [2025-01-10 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218703', 'tblTempUsageDetail_20' ) end [2025-01-10 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:19:25] Production.INFO: ==13906== Releasing lock... [2025-01-10 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:19:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:20:05 [end_date_ymd] => 2025-01-10 18:20:05 [RateCDR] => 1 ) [2025-01-10 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:20:05' and `end` < '2025-01-10 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:20:19] Production.INFO: count ==3955 [2025-01-10 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:20:05 - End Time 2025-01-10 18:20:05 [2025-01-10 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218709', 'tblTempUsageDetail_20' ) start [2025-01-10 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218709', 'tblTempUsageDetail_20' ) end [2025-01-10 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218709', 'tblTempVendorCDR_20' ) start [2025-01-10 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218709', 'tblTempVendorCDR_20' ) end [2025-01-10 18:20:20] Production.INFO: ProcessCDR(1,14218709,1,1,2) [2025-01-10 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218709', 'tblTempUsageDetail_20' ) start [2025-01-10 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218709', 'tblTempUsageDetail_20' ) end [2025-01-10 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:20:25] Production.INFO: ==13986== Releasing lock... [2025-01-10 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:20:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:21:05 [end_date_ymd] => 2025-01-10 18:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:21:05' and `end` < '2025-01-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-01-10 18:21:19] Production.INFO: count ==3979 [2025-01-10 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:21:05 - End Time 2025-01-10 18:21:05 [2025-01-10 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218714', 'tblTempUsageDetail_20' ) start [2025-01-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218714', 'tblTempUsageDetail_20' ) end [2025-01-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218714', 'tblTempVendorCDR_20' ) start [2025-01-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218714', 'tblTempVendorCDR_20' ) end [2025-01-10 18:21:20] Production.INFO: ProcessCDR(1,14218714,1,1,2) [2025-01-10 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218714', 'tblTempUsageDetail_20' ) start [2025-01-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218714', 'tblTempUsageDetail_20' ) end [2025-01-10 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:21:25] Production.INFO: ==14062== Releasing lock... [2025-01-10 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:21:25] Production.INFO: 58 MB #Memory Used# [2025-01-10 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:22:04 [end_date_ymd] => 2025-01-10 18:22:04 [RateCDR] => 1 ) [2025-01-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-01-10 15:22:04' and `end` < '2025-01-10 18: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-01-10 18:22:25] Production.INFO: count ==3961 [2025-01-10 18:22:27] Production.ERROR: pbx CDR StartTime 2025-01-10 15:22:04 - End Time 2025-01-10 18:22:04 [2025-01-10 18:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218719', 'tblTempUsageDetail_20' ) start [2025-01-10 18:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218719', 'tblTempUsageDetail_20' ) end [2025-01-10 18:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218719', 'tblTempVendorCDR_20' ) start [2025-01-10 18:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218719', 'tblTempVendorCDR_20' ) end [2025-01-10 18:22:27] Production.INFO: ProcessCDR(1,14218719,1,1,2) [2025-01-10 18:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218719', 'tblTempUsageDetail_20' ) start [2025-01-10 18:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218719', 'tblTempUsageDetail_20' ) end [2025-01-10 18:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:22:31] Production.INFO: ==14136== Releasing lock... [2025-01-10 18:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:22:31] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:23:05 [end_date_ymd] => 2025-01-10 18:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:23:05' and `end` < '2025-01-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-01-10 18:23:23] Production.INFO: count ==3954 [2025-01-10 18:23:24] Production.ERROR: pbx CDR StartTime 2025-01-10 15:23:05 - End Time 2025-01-10 18:23:05 [2025-01-10 18:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218724', 'tblTempUsageDetail_20' ) start [2025-01-10 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218724', 'tblTempUsageDetail_20' ) end [2025-01-10 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218724', 'tblTempVendorCDR_20' ) start [2025-01-10 18:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218724', 'tblTempVendorCDR_20' ) end [2025-01-10 18:23:24] Production.INFO: ProcessCDR(1,14218724,1,1,2) [2025-01-10 18:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218724', 'tblTempUsageDetail_20' ) start [2025-01-10 18:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218724', 'tblTempUsageDetail_20' ) end [2025-01-10 18:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:23:29] Production.INFO: ==14206== Releasing lock... [2025-01-10 18:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:23:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-10 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:24:05 [end_date_ymd] => 2025-01-10 18:24:05 [RateCDR] => 1 ) [2025-01-10 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:24:05' and `end` < '2025-01-10 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:24:18] Production.INFO: count ==3944 [2025-01-10 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:24:05 - End Time 2025-01-10 18:24:05 [2025-01-10 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218729', 'tblTempUsageDetail_20' ) start [2025-01-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218729', 'tblTempUsageDetail_20' ) end [2025-01-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218729', 'tblTempVendorCDR_20' ) start [2025-01-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218729', 'tblTempVendorCDR_20' ) end [2025-01-10 18:24:20] Production.INFO: ProcessCDR(1,14218729,1,1,2) [2025-01-10 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218729', 'tblTempUsageDetail_20' ) start [2025-01-10 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218729', 'tblTempUsageDetail_20' ) end [2025-01-10 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:24:25] Production.INFO: ==14279== Releasing lock... [2025-01-10 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:24:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-10 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:25:05 [end_date_ymd] => 2025-01-10 18:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:25:05' and `end` < '2025-01-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-01-10 18:25:20] Production.INFO: count ==3933 [2025-01-10 18:25:22] Production.ERROR: pbx CDR StartTime 2025-01-10 15:25:05 - End Time 2025-01-10 18:25:05 [2025-01-10 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218734', 'tblTempUsageDetail_20' ) start [2025-01-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218734', 'tblTempUsageDetail_20' ) end [2025-01-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218734', 'tblTempVendorCDR_20' ) start [2025-01-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218734', 'tblTempVendorCDR_20' ) end [2025-01-10 18:25:22] Production.INFO: ProcessCDR(1,14218734,1,1,2) [2025-01-10 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218734', 'tblTempUsageDetail_20' ) start [2025-01-10 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218734', 'tblTempUsageDetail_20' ) end [2025-01-10 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:25:26] Production.INFO: ==14349== Releasing lock... [2025-01-10 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:25:26] Production.INFO: 58 MB #Memory Used# [2025-01-10 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:26:04 [end_date_ymd] => 2025-01-10 18:26:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:26:04' and `end` < '2025-01-10 18: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-01-10 18:26:22] Production.INFO: count ==3924 [2025-01-10 18:26:23] Production.ERROR: pbx CDR StartTime 2025-01-10 15:26:04 - End Time 2025-01-10 18:26:04 [2025-01-10 18:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218739', 'tblTempUsageDetail_20' ) start [2025-01-10 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218739', 'tblTempUsageDetail_20' ) end [2025-01-10 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218739', 'tblTempVendorCDR_20' ) start [2025-01-10 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218739', 'tblTempVendorCDR_20' ) end [2025-01-10 18:26:23] Production.INFO: ProcessCDR(1,14218739,1,1,2) [2025-01-10 18:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218739', 'tblTempUsageDetail_20' ) start [2025-01-10 18:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218739', 'tblTempUsageDetail_20' ) end [2025-01-10 18:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:26:28] Production.INFO: ==14418== Releasing lock... [2025-01-10 18:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:26:28] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:27:05 [end_date_ymd] => 2025-01-10 18:27:05 [RateCDR] => 1 ) [2025-01-10 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:27:05' and `end` < '2025-01-10 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:27:19] Production.INFO: count ==3890 [2025-01-10 18:27:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:27:05 - End Time 2025-01-10 18:27:05 [2025-01-10 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218744', 'tblTempUsageDetail_20' ) start [2025-01-10 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218744', 'tblTempUsageDetail_20' ) end [2025-01-10 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218744', 'tblTempVendorCDR_20' ) start [2025-01-10 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218744', 'tblTempVendorCDR_20' ) end [2025-01-10 18:27:20] Production.INFO: ProcessCDR(1,14218744,1,1,2) [2025-01-10 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218744', 'tblTempUsageDetail_20' ) start [2025-01-10 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218744', 'tblTempUsageDetail_20' ) end [2025-01-10 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:27:23] Production.INFO: ==14493== Releasing lock... [2025-01-10 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:27:23] Production.INFO: 57 MB #Memory Used# [2025-01-10 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:28:05 [end_date_ymd] => 2025-01-10 18:28:05 [RateCDR] => 1 ) [2025-01-10 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:28:05' and `end` < '2025-01-10 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:28:22] Production.INFO: count ==3887 [2025-01-10 18:28:23] Production.ERROR: pbx CDR StartTime 2025-01-10 15:28:05 - End Time 2025-01-10 18:28:05 [2025-01-10 18:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218749', 'tblTempUsageDetail_20' ) start [2025-01-10 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218749', 'tblTempUsageDetail_20' ) end [2025-01-10 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218749', 'tblTempVendorCDR_20' ) start [2025-01-10 18:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218749', 'tblTempVendorCDR_20' ) end [2025-01-10 18:28:23] Production.INFO: ProcessCDR(1,14218749,1,1,2) [2025-01-10 18:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218749', 'tblTempUsageDetail_20' ) start [2025-01-10 18:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218749', 'tblTempUsageDetail_20' ) end [2025-01-10 18:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:28:28] Production.INFO: ==14564== Releasing lock... [2025-01-10 18:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:28:28] Production.INFO: 57.25 MB #Memory Used# [2025-01-10 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:29:05 [end_date_ymd] => 2025-01-10 18:29:05 [RateCDR] => 1 ) [2025-01-10 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:29:05' and `end` < '2025-01-10 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:29:20] Production.INFO: count ==3852 [2025-01-10 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:29:05 - End Time 2025-01-10 18:29:05 [2025-01-10 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218754', 'tblTempUsageDetail_20' ) start [2025-01-10 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218754', 'tblTempUsageDetail_20' ) end [2025-01-10 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218754', 'tblTempVendorCDR_20' ) start [2025-01-10 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218754', 'tblTempVendorCDR_20' ) end [2025-01-10 18:29:21] Production.INFO: ProcessCDR(1,14218754,1,1,2) [2025-01-10 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218754', 'tblTempUsageDetail_20' ) start [2025-01-10 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218754', 'tblTempUsageDetail_20' ) end [2025-01-10 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:29:26] Production.INFO: ==14672== Releasing lock... [2025-01-10 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:29:26] Production.INFO: 57 MB #Memory Used# [2025-01-10 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:30:06 [end_date_ymd] => 2025-01-10 18:30:06 [RateCDR] => 1 ) [2025-01-10 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:30:06' and `end` < '2025-01-10 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:30:20] Production.INFO: count ==3837 [2025-01-10 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:30:06 - End Time 2025-01-10 18:30:06 [2025-01-10 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218760', 'tblTempUsageDetail_20' ) start [2025-01-10 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218760', 'tblTempUsageDetail_20' ) end [2025-01-10 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218760', 'tblTempVendorCDR_20' ) start [2025-01-10 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218760', 'tblTempVendorCDR_20' ) end [2025-01-10 18:30:21] Production.INFO: ProcessCDR(1,14218760,1,1,2) [2025-01-10 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218760', 'tblTempUsageDetail_20' ) start [2025-01-10 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218760', 'tblTempUsageDetail_20' ) end [2025-01-10 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:30:25] Production.INFO: ==14745== Releasing lock... [2025-01-10 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:30:25] Production.INFO: 57 MB #Memory Used# [2025-01-10 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:31:05 [end_date_ymd] => 2025-01-10 18:31:05 [RateCDR] => 1 ) [2025-01-10 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:31:05' and `end` < '2025-01-10 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:31:19] Production.INFO: count ==3804 [2025-01-10 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:31:05 - End Time 2025-01-10 18:31:05 [2025-01-10 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218765', 'tblTempUsageDetail_20' ) start [2025-01-10 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218765', 'tblTempUsageDetail_20' ) end [2025-01-10 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218765', 'tblTempVendorCDR_20' ) start [2025-01-10 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218765', 'tblTempVendorCDR_20' ) end [2025-01-10 18:31:20] Production.INFO: ProcessCDR(1,14218765,1,1,2) [2025-01-10 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218765', 'tblTempUsageDetail_20' ) start [2025-01-10 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218765', 'tblTempUsageDetail_20' ) end [2025-01-10 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:31:24] Production.INFO: ==14818== Releasing lock... [2025-01-10 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:31:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-10 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:32:05 [end_date_ymd] => 2025-01-10 18:32:05 [RateCDR] => 1 ) [2025-01-10 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:32:05' and `end` < '2025-01-10 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:32:22] Production.INFO: count ==3791 [2025-01-10 18:32:23] Production.ERROR: pbx CDR StartTime 2025-01-10 15:32:05 - End Time 2025-01-10 18:32:05 [2025-01-10 18:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218770', 'tblTempUsageDetail_20' ) start [2025-01-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218770', 'tblTempUsageDetail_20' ) end [2025-01-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218770', 'tblTempVendorCDR_20' ) start [2025-01-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218770', 'tblTempVendorCDR_20' ) end [2025-01-10 18:32:23] Production.INFO: ProcessCDR(1,14218770,1,1,2) [2025-01-10 18:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218770', 'tblTempUsageDetail_20' ) start [2025-01-10 18:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218770', 'tblTempUsageDetail_20' ) end [2025-01-10 18:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:32:28] Production.INFO: ==14889== Releasing lock... [2025-01-10 18:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:32:28] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:33:05 [end_date_ymd] => 2025-01-10 18:33:05 [RateCDR] => 1 ) [2025-01-10 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:33:05' and `end` < '2025-01-10 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:33:21] Production.INFO: count ==3788 [2025-01-10 18:33:22] Production.ERROR: pbx CDR StartTime 2025-01-10 15:33:05 - End Time 2025-01-10 18:33:05 [2025-01-10 18:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218775', 'tblTempUsageDetail_20' ) start [2025-01-10 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218775', 'tblTempUsageDetail_20' ) end [2025-01-10 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218775', 'tblTempVendorCDR_20' ) start [2025-01-10 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218775', 'tblTempVendorCDR_20' ) end [2025-01-10 18:33:22] Production.INFO: ProcessCDR(1,14218775,1,1,2) [2025-01-10 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218775', 'tblTempUsageDetail_20' ) start [2025-01-10 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218775', 'tblTempUsageDetail_20' ) end [2025-01-10 18:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:33:27] Production.INFO: ==14962== Releasing lock... [2025-01-10 18:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:33:27] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:34:04 [end_date_ymd] => 2025-01-10 18:34:04 [RateCDR] => 1 ) [2025-01-10 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:34:04' and `end` < '2025-01-10 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:34:18] Production.INFO: count ==3773 [2025-01-10 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:34:04 - End Time 2025-01-10 18:34:04 [2025-01-10 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218780', 'tblTempUsageDetail_20' ) start [2025-01-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218780', 'tblTempUsageDetail_20' ) end [2025-01-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218780', 'tblTempVendorCDR_20' ) start [2025-01-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218780', 'tblTempVendorCDR_20' ) end [2025-01-10 18:34:19] Production.INFO: ProcessCDR(1,14218780,1,1,2) [2025-01-10 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218780', 'tblTempUsageDetail_20' ) start [2025-01-10 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218780', 'tblTempUsageDetail_20' ) end [2025-01-10 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:34:23] Production.INFO: ==15033== Releasing lock... [2025-01-10 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:34:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-10 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:35:05 [end_date_ymd] => 2025-01-10 18:35:05 [RateCDR] => 1 ) [2025-01-10 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:35:05' and `end` < '2025-01-10 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:35:20] Production.INFO: count ==3766 [2025-01-10 18:35:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:35:05 - End Time 2025-01-10 18:35:05 [2025-01-10 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218785', 'tblTempUsageDetail_20' ) start [2025-01-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218785', 'tblTempUsageDetail_20' ) end [2025-01-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218785', 'tblTempVendorCDR_20' ) start [2025-01-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218785', 'tblTempVendorCDR_20' ) end [2025-01-10 18:35:21] Production.INFO: ProcessCDR(1,14218785,1,1,2) [2025-01-10 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218785', 'tblTempUsageDetail_20' ) start [2025-01-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218785', 'tblTempUsageDetail_20' ) end [2025-01-10 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:35:26] Production.INFO: ==15111== Releasing lock... [2025-01-10 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:35:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-10 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:36:05 [end_date_ymd] => 2025-01-10 18:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:36:05' and `end` < '2025-01-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-01-10 18:36:19] Production.INFO: count ==3739 [2025-01-10 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:36:05 - End Time 2025-01-10 18:36:05 [2025-01-10 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218790', 'tblTempUsageDetail_20' ) start [2025-01-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218790', 'tblTempUsageDetail_20' ) end [2025-01-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218790', 'tblTempVendorCDR_20' ) start [2025-01-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218790', 'tblTempVendorCDR_20' ) end [2025-01-10 18:36:20] Production.INFO: ProcessCDR(1,14218790,1,1,2) [2025-01-10 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218790', 'tblTempUsageDetail_20' ) start [2025-01-10 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218790', 'tblTempUsageDetail_20' ) end [2025-01-10 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:36:24] Production.INFO: ==15184== Releasing lock... [2025-01-10 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:36:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-10 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:37:05 [end_date_ymd] => 2025-01-10 18:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:37:05' and `end` < '2025-01-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-01-10 18:37:20] Production.INFO: count ==3722 [2025-01-10 18:37:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:37:05 - End Time 2025-01-10 18:37:05 [2025-01-10 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218795', 'tblTempUsageDetail_20' ) start [2025-01-10 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218795', 'tblTempUsageDetail_20' ) end [2025-01-10 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218795', 'tblTempVendorCDR_20' ) start [2025-01-10 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218795', 'tblTempVendorCDR_20' ) end [2025-01-10 18:37:22] Production.INFO: ProcessCDR(1,14218795,1,1,2) [2025-01-10 18:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218795', 'tblTempUsageDetail_20' ) start [2025-01-10 18:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218795', 'tblTempUsageDetail_20' ) end [2025-01-10 18:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:37:27] Production.INFO: ==15254== Releasing lock... [2025-01-10 18:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:37:27] Production.INFO: 56.5 MB #Memory Used# [2025-01-10 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:38:05 [end_date_ymd] => 2025-01-10 18:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:38:05' and `end` < '2025-01-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-01-10 18:38:19] Production.INFO: count ==3706 [2025-01-10 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:38:05 - End Time 2025-01-10 18:38:05 [2025-01-10 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218800', 'tblTempUsageDetail_20' ) start [2025-01-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218800', 'tblTempUsageDetail_20' ) end [2025-01-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218800', 'tblTempVendorCDR_20' ) start [2025-01-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218800', 'tblTempVendorCDR_20' ) end [2025-01-10 18:38:20] Production.INFO: ProcessCDR(1,14218800,1,1,2) [2025-01-10 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218800', 'tblTempUsageDetail_20' ) start [2025-01-10 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218800', 'tblTempUsageDetail_20' ) end [2025-01-10 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:38:25] Production.INFO: ==15325== Releasing lock... [2025-01-10 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:38:25] Production.INFO: 56 MB #Memory Used# [2025-01-10 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:39:05 [end_date_ymd] => 2025-01-10 18:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:39:05' and `end` < '2025-01-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-01-10 18:39:18] Production.INFO: count ==3697 [2025-01-10 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:39:05 - End Time 2025-01-10 18:39:05 [2025-01-10 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218805', 'tblTempUsageDetail_20' ) start [2025-01-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218805', 'tblTempUsageDetail_20' ) end [2025-01-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218805', 'tblTempVendorCDR_20' ) start [2025-01-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218805', 'tblTempVendorCDR_20' ) end [2025-01-10 18:39:19] Production.INFO: ProcessCDR(1,14218805,1,1,2) [2025-01-10 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218805', 'tblTempUsageDetail_20' ) start [2025-01-10 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218805', 'tblTempUsageDetail_20' ) end [2025-01-10 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:39:22] Production.INFO: ==15394== Releasing lock... [2025-01-10 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:39:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-10 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:40:05 [end_date_ymd] => 2025-01-10 18:40:05 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:40:05' and `end` < '2025-01-10 18: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-01-10 18:40:26] Production.INFO: count ==3693 [2025-01-10 18:40:27] Production.ERROR: pbx CDR StartTime 2025-01-10 15:40:05 - End Time 2025-01-10 18:40:05 [2025-01-10 18:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218810', 'tblTempUsageDetail_20' ) start [2025-01-10 18:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218810', 'tblTempUsageDetail_20' ) end [2025-01-10 18:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218810', 'tblTempVendorCDR_20' ) start [2025-01-10 18:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218810', 'tblTempVendorCDR_20' ) end [2025-01-10 18:40:27] Production.INFO: ProcessCDR(1,14218810,1,1,2) [2025-01-10 18:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218810', 'tblTempUsageDetail_20' ) start [2025-01-10 18:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218810', 'tblTempUsageDetail_20' ) end [2025-01-10 18:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:40:32] Production.INFO: ==15468== Releasing lock... [2025-01-10 18:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:40:32] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:41:04 [end_date_ymd] => 2025-01-10 18:41:04 [RateCDR] => 1 ) [2025-01-10 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:41:04' and `end` < '2025-01-10 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:41:22] Production.INFO: count ==3642 [2025-01-10 18:41:23] Production.ERROR: pbx CDR StartTime 2025-01-10 15:41:04 - End Time 2025-01-10 18:41:04 [2025-01-10 18:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218816', 'tblTempUsageDetail_20' ) start [2025-01-10 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218816', 'tblTempUsageDetail_20' ) end [2025-01-10 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218816', 'tblTempVendorCDR_20' ) start [2025-01-10 18:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218816', 'tblTempVendorCDR_20' ) end [2025-01-10 18:41:23] Production.INFO: ProcessCDR(1,14218816,1,1,2) [2025-01-10 18:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218816', 'tblTempUsageDetail_20' ) start [2025-01-10 18:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218816', 'tblTempUsageDetail_20' ) end [2025-01-10 18:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:41:28] Production.INFO: ==15541== Releasing lock... [2025-01-10 18:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:41:28] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:42:05 [end_date_ymd] => 2025-01-10 18:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:42:05' and `end` < '2025-01-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-01-10 18:42:19] Production.INFO: count ==3616 [2025-01-10 18:42:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:42:05 - End Time 2025-01-10 18:42:05 [2025-01-10 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218821', 'tblTempUsageDetail_20' ) start [2025-01-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218821', 'tblTempUsageDetail_20' ) end [2025-01-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218821', 'tblTempVendorCDR_20' ) start [2025-01-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218821', 'tblTempVendorCDR_20' ) end [2025-01-10 18:42:21] Production.INFO: ProcessCDR(1,14218821,1,1,2) [2025-01-10 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218821', 'tblTempUsageDetail_20' ) start [2025-01-10 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218821', 'tblTempUsageDetail_20' ) end [2025-01-10 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:42:25] Production.INFO: ==15612== Releasing lock... [2025-01-10 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:42:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:43:05 [end_date_ymd] => 2025-01-10 18:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:43:05' and `end` < '2025-01-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-01-10 18:43:18] Production.INFO: count ==3600 [2025-01-10 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:43:05 - End Time 2025-01-10 18:43:05 [2025-01-10 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218826', 'tblTempUsageDetail_20' ) start [2025-01-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218826', 'tblTempUsageDetail_20' ) end [2025-01-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218826', 'tblTempVendorCDR_20' ) start [2025-01-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218826', 'tblTempVendorCDR_20' ) end [2025-01-10 18:43:19] Production.INFO: ProcessCDR(1,14218826,1,1,2) [2025-01-10 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218826', 'tblTempUsageDetail_20' ) start [2025-01-10 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218826', 'tblTempUsageDetail_20' ) end [2025-01-10 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:43:23] Production.INFO: ==15684== Releasing lock... [2025-01-10 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:43:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:44:05 [end_date_ymd] => 2025-01-10 18:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:44:05' and `end` < '2025-01-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-01-10 18:44:20] Production.INFO: count ==3605 [2025-01-10 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:44:05 - End Time 2025-01-10 18:44:05 [2025-01-10 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218831', 'tblTempUsageDetail_20' ) start [2025-01-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218831', 'tblTempUsageDetail_20' ) end [2025-01-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218831', 'tblTempVendorCDR_20' ) start [2025-01-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218831', 'tblTempVendorCDR_20' ) end [2025-01-10 18:44:21] Production.INFO: ProcessCDR(1,14218831,1,1,2) [2025-01-10 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218831', 'tblTempUsageDetail_20' ) start [2025-01-10 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218831', 'tblTempUsageDetail_20' ) end [2025-01-10 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:44:26] Production.INFO: ==15756== Releasing lock... [2025-01-10 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:44:26] Production.INFO: 55 MB #Memory Used# [2025-01-10 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:45:04 [end_date_ymd] => 2025-01-10 18:45:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:45:04' and `end` < '2025-01-10 18: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-01-10 18:45:20] Production.INFO: count ==3590 [2025-01-10 18:45:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:45:04 - End Time 2025-01-10 18:45:04 [2025-01-10 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218836', 'tblTempUsageDetail_20' ) start [2025-01-10 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218836', 'tblTempUsageDetail_20' ) end [2025-01-10 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218836', 'tblTempVendorCDR_20' ) start [2025-01-10 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218836', 'tblTempVendorCDR_20' ) end [2025-01-10 18:45:21] Production.INFO: ProcessCDR(1,14218836,1,1,2) [2025-01-10 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218836', 'tblTempUsageDetail_20' ) start [2025-01-10 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218836', 'tblTempUsageDetail_20' ) end [2025-01-10 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:45:24] Production.INFO: ==15868== Releasing lock... [2025-01-10 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:45:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-10 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:46:06 [end_date_ymd] => 2025-01-10 18:46:06 [RateCDR] => 1 ) [2025-01-10 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:46:06' and `end` < '2025-01-10 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:46:19] Production.INFO: count ==3575 [2025-01-10 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:46:06 - End Time 2025-01-10 18:46:06 [2025-01-10 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218841', 'tblTempUsageDetail_20' ) start [2025-01-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218841', 'tblTempUsageDetail_20' ) end [2025-01-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218841', 'tblTempVendorCDR_20' ) start [2025-01-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218841', 'tblTempVendorCDR_20' ) end [2025-01-10 18:46:20] Production.INFO: ProcessCDR(1,14218841,1,1,2) [2025-01-10 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218841', 'tblTempUsageDetail_20' ) start [2025-01-10 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218841', 'tblTempUsageDetail_20' ) end [2025-01-10 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:46:24] Production.INFO: ==15943== Releasing lock... [2025-01-10 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:46:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-10 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:47:04 [end_date_ymd] => 2025-01-10 18:47:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:47:04' and `end` < '2025-01-10 18: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-01-10 18:47:20] Production.INFO: count ==3567 [2025-01-10 18:47:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:47:04 - End Time 2025-01-10 18:47:04 [2025-01-10 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218846', 'tblTempUsageDetail_20' ) start [2025-01-10 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218846', 'tblTempUsageDetail_20' ) end [2025-01-10 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218846', 'tblTempVendorCDR_20' ) start [2025-01-10 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218846', 'tblTempVendorCDR_20' ) end [2025-01-10 18:47:21] Production.INFO: ProcessCDR(1,14218846,1,1,2) [2025-01-10 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218846', 'tblTempUsageDetail_20' ) start [2025-01-10 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218846', 'tblTempUsageDetail_20' ) end [2025-01-10 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:47:26] Production.INFO: ==16019== Releasing lock... [2025-01-10 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:47:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:48:05 [end_date_ymd] => 2025-01-10 18:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:48:05' and `end` < '2025-01-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-01-10 18:48:19] Production.INFO: count ==3547 [2025-01-10 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:48:05 - End Time 2025-01-10 18:48:05 [2025-01-10 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218851', 'tblTempUsageDetail_20' ) start [2025-01-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218851', 'tblTempUsageDetail_20' ) end [2025-01-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218851', 'tblTempVendorCDR_20' ) start [2025-01-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218851', 'tblTempVendorCDR_20' ) end [2025-01-10 18:48:20] Production.INFO: ProcessCDR(1,14218851,1,1,2) [2025-01-10 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218851', 'tblTempUsageDetail_20' ) start [2025-01-10 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218851', 'tblTempUsageDetail_20' ) end [2025-01-10 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:48:23] Production.INFO: ==16099== Releasing lock... [2025-01-10 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:48:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-10 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:49:05 [end_date_ymd] => 2025-01-10 18:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:49:05' and `end` < '2025-01-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-01-10 18:49:19] Production.INFO: count ==3537 [2025-01-10 18:49:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:49:05 - End Time 2025-01-10 18:49:05 [2025-01-10 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218856', 'tblTempUsageDetail_20' ) start [2025-01-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218856', 'tblTempUsageDetail_20' ) end [2025-01-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218856', 'tblTempVendorCDR_20' ) start [2025-01-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218856', 'tblTempVendorCDR_20' ) end [2025-01-10 18:49:20] Production.INFO: ProcessCDR(1,14218856,1,1,2) [2025-01-10 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218856', 'tblTempUsageDetail_20' ) start [2025-01-10 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218856', 'tblTempUsageDetail_20' ) end [2025-01-10 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:49:25] Production.INFO: ==16174== Releasing lock... [2025-01-10 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:49:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:50:05 [end_date_ymd] => 2025-01-10 18:50:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:50:05' and `end` < '2025-01-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-01-10 18:50:19] Production.INFO: count ==3532 [2025-01-10 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:50:05 - End Time 2025-01-10 18:50:05 [2025-01-10 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218862', 'tblTempUsageDetail_20' ) start [2025-01-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218862', 'tblTempUsageDetail_20' ) end [2025-01-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218862', 'tblTempVendorCDR_20' ) start [2025-01-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218862', 'tblTempVendorCDR_20' ) end [2025-01-10 18:50:20] Production.INFO: ProcessCDR(1,14218862,1,1,2) [2025-01-10 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218862', 'tblTempUsageDetail_20' ) start [2025-01-10 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218862', 'tblTempUsageDetail_20' ) end [2025-01-10 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:50:24] Production.INFO: ==16248== Releasing lock... [2025-01-10 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:50:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:51:04 [end_date_ymd] => 2025-01-10 18:51:04 [RateCDR] => 1 ) [2025-01-10 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:51:04' and `end` < '2025-01-10 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:51:18] Production.INFO: count ==3505 [2025-01-10 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:51:04 - End Time 2025-01-10 18:51:04 [2025-01-10 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218867', 'tblTempUsageDetail_20' ) start [2025-01-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218867', 'tblTempUsageDetail_20' ) end [2025-01-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218867', 'tblTempVendorCDR_20' ) start [2025-01-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218867', 'tblTempVendorCDR_20' ) end [2025-01-10 18:51:19] Production.INFO: ProcessCDR(1,14218867,1,1,2) [2025-01-10 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218867', 'tblTempUsageDetail_20' ) start [2025-01-10 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218867', 'tblTempUsageDetail_20' ) end [2025-01-10 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:51:22] Production.INFO: ==16339== Releasing lock... [2025-01-10 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:51:22] Production.INFO: 55 MB #Memory Used# [2025-01-10 18:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:52:04 [end_date_ymd] => 2025-01-10 18:52:04 [RateCDR] => 1 ) [2025-01-10 18:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:52:04' and `end` < '2025-01-10 18:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:52:27] Production.INFO: count ==3483 [2025-01-10 18:52:28] Production.ERROR: pbx CDR StartTime 2025-01-10 15:52:04 - End Time 2025-01-10 18:52:04 [2025-01-10 18:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218872', 'tblTempUsageDetail_20' ) start [2025-01-10 18:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218872', 'tblTempUsageDetail_20' ) end [2025-01-10 18:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218872', 'tblTempVendorCDR_20' ) start [2025-01-10 18:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218872', 'tblTempVendorCDR_20' ) end [2025-01-10 18:52:28] Production.INFO: ProcessCDR(1,14218872,1,1,2) [2025-01-10 18:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218872', 'tblTempUsageDetail_20' ) start [2025-01-10 18:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218872', 'tblTempUsageDetail_20' ) end [2025-01-10 18:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:52:33] Production.INFO: ==16425== Releasing lock... [2025-01-10 18:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:52:33] Production.INFO: 54 MB #Memory Used# [2025-01-10 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:53:05 [end_date_ymd] => 2025-01-10 18:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:53:05' and `end` < '2025-01-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-01-10 18:53:22] Production.INFO: count ==3475 [2025-01-10 18:53:23] Production.ERROR: pbx CDR StartTime 2025-01-10 15:53:05 - End Time 2025-01-10 18:53:05 [2025-01-10 18:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218877', 'tblTempUsageDetail_20' ) start [2025-01-10 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218877', 'tblTempUsageDetail_20' ) end [2025-01-10 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218877', 'tblTempVendorCDR_20' ) start [2025-01-10 18:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218877', 'tblTempVendorCDR_20' ) end [2025-01-10 18:53:23] Production.INFO: ProcessCDR(1,14218877,1,1,2) [2025-01-10 18:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218877', 'tblTempUsageDetail_20' ) start [2025-01-10 18:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218877', 'tblTempUsageDetail_20' ) end [2025-01-10 18:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:53:28] Production.INFO: ==16513== Releasing lock... [2025-01-10 18:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:53:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:54:04 [end_date_ymd] => 2025-01-10 18:54:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:54:04' and `end` < '2025-01-10 18: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-01-10 18:54:19] Production.INFO: count ==3463 [2025-01-10 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-10 15:54:04 - End Time 2025-01-10 18:54:04 [2025-01-10 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218882', 'tblTempUsageDetail_20' ) start [2025-01-10 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218882', 'tblTempUsageDetail_20' ) end [2025-01-10 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218882', 'tblTempVendorCDR_20' ) start [2025-01-10 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218882', 'tblTempVendorCDR_20' ) end [2025-01-10 18:54:20] Production.INFO: ProcessCDR(1,14218882,1,1,2) [2025-01-10 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218882', 'tblTempUsageDetail_20' ) start [2025-01-10 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218882', 'tblTempUsageDetail_20' ) end [2025-01-10 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:54:25] Production.INFO: ==16600== Releasing lock... [2025-01-10 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:54:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:55:05 [end_date_ymd] => 2025-01-10 18:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:55:05' and `end` < '2025-01-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-01-10 18:55:18] Production.INFO: count ==3451 [2025-01-10 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:55:05 - End Time 2025-01-10 18:55:05 [2025-01-10 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218887', 'tblTempUsageDetail_20' ) start [2025-01-10 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218887', 'tblTempUsageDetail_20' ) end [2025-01-10 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218887', 'tblTempVendorCDR_20' ) start [2025-01-10 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218887', 'tblTempVendorCDR_20' ) end [2025-01-10 18:55:19] Production.INFO: ProcessCDR(1,14218887,1,1,2) [2025-01-10 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218887', 'tblTempUsageDetail_20' ) start [2025-01-10 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218887', 'tblTempUsageDetail_20' ) end [2025-01-10 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:55:24] Production.INFO: ==16685== Releasing lock... [2025-01-10 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:55:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-10 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:56:04 [end_date_ymd] => 2025-01-10 18:56:04 [RateCDR] => 1 ) [2025-01-10 18: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-01-10 15:56:04' and `end` < '2025-01-10 18: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-01-10 18:56:20] Production.INFO: count ==3424 [2025-01-10 18:56:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:56:04 - End Time 2025-01-10 18:56:04 [2025-01-10 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218892', 'tblTempUsageDetail_20' ) start [2025-01-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218892', 'tblTempUsageDetail_20' ) end [2025-01-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218892', 'tblTempVendorCDR_20' ) start [2025-01-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218892', 'tblTempVendorCDR_20' ) end [2025-01-10 18:56:21] Production.INFO: ProcessCDR(1,14218892,1,1,2) [2025-01-10 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218892', 'tblTempUsageDetail_20' ) start [2025-01-10 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218892', 'tblTempUsageDetail_20' ) end [2025-01-10 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:56:24] Production.INFO: ==16771== Releasing lock... [2025-01-10 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:56:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-10 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:57:04 [end_date_ymd] => 2025-01-10 18:57:04 [RateCDR] => 1 ) [2025-01-10 18:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 15:57:04' and `end` < '2025-01-10 18:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 18:57:18] Production.INFO: count ==3410 [2025-01-10 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:57:04 - End Time 2025-01-10 18:57:04 [2025-01-10 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218897', 'tblTempUsageDetail_20' ) start [2025-01-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218897', 'tblTempUsageDetail_20' ) end [2025-01-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218897', 'tblTempVendorCDR_20' ) start [2025-01-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218897', 'tblTempVendorCDR_20' ) end [2025-01-10 18:57:19] Production.INFO: ProcessCDR(1,14218897,1,1,2) [2025-01-10 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218897', 'tblTempUsageDetail_20' ) start [2025-01-10 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218897', 'tblTempUsageDetail_20' ) end [2025-01-10 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:57:22] Production.INFO: ==16862== Releasing lock... [2025-01-10 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:57:22] Production.INFO: 54 MB #Memory Used# [2025-01-10 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:58:05 [end_date_ymd] => 2025-01-10 18:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 15:58:05' and `end` < '2025-01-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-01-10 18:58:20] Production.INFO: count ==3378 [2025-01-10 18:58:21] Production.ERROR: pbx CDR StartTime 2025-01-10 15:58:05 - End Time 2025-01-10 18:58:05 [2025-01-10 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218902', 'tblTempUsageDetail_20' ) start [2025-01-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218902', 'tblTempUsageDetail_20' ) end [2025-01-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218902', 'tblTempVendorCDR_20' ) start [2025-01-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218902', 'tblTempVendorCDR_20' ) end [2025-01-10 18:58:21] Production.INFO: ProcessCDR(1,14218902,1,1,2) [2025-01-10 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218902', 'tblTempUsageDetail_20' ) start [2025-01-10 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218902', 'tblTempUsageDetail_20' ) end [2025-01-10 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:58:26] Production.INFO: ==16950== Releasing lock... [2025-01-10 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:58:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-10 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 15:59:04 [end_date_ymd] => 2025-01-10 18:59:04 [RateCDR] => 1 ) [2025-01-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-01-10 15:59:04' and `end` < '2025-01-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-01-10 18:59:19] Production.INFO: count ==3356 [2025-01-10 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 15:59:04 - End Time 2025-01-10 18:59:04 [2025-01-10 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218907', 'tblTempUsageDetail_20' ) start [2025-01-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218907', 'tblTempUsageDetail_20' ) end [2025-01-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218907', 'tblTempVendorCDR_20' ) start [2025-01-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218907', 'tblTempVendorCDR_20' ) end [2025-01-10 18:59:20] Production.INFO: ProcessCDR(1,14218907,1,1,2) [2025-01-10 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218907', 'tblTempUsageDetail_20' ) start [2025-01-10 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218907', 'tblTempUsageDetail_20' ) end [2025-01-10 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 18:59:24] Production.INFO: ==17041== Releasing lock... [2025-01-10 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 18:59:24] Production.INFO: 53 MB #Memory Used# [2025-01-10 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:00:05 [end_date_ymd] => 2025-01-10 19:00:05 [RateCDR] => 1 ) [2025-01-10 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:00:05' and `end` < '2025-01-10 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:00:20] Production.INFO: count ==3330 [2025-01-10 19:00:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:00:05 - End Time 2025-01-10 19:00:05 [2025-01-10 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218913', 'tblTempUsageDetail_20' ) start [2025-01-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218913', 'tblTempUsageDetail_20' ) end [2025-01-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218913', 'tblTempVendorCDR_20' ) start [2025-01-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218913', 'tblTempVendorCDR_20' ) end [2025-01-10 19:00:21] Production.INFO: ProcessCDR(1,14218913,1,1,2) [2025-01-10 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218913', 'tblTempUsageDetail_20' ) start [2025-01-10 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218913', 'tblTempUsageDetail_20' ) end [2025-01-10 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:00:25] Production.INFO: ==17128== Releasing lock... [2025-01-10 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:00:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:01:05 [end_date_ymd] => 2025-01-10 19:01:05 [RateCDR] => 1 ) [2025-01-10 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:01:05' and `end` < '2025-01-10 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:01:18] Production.INFO: count ==3283 [2025-01-10 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:01:05 - End Time 2025-01-10 19:01:05 [2025-01-10 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218918', 'tblTempUsageDetail_20' ) start [2025-01-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218918', 'tblTempUsageDetail_20' ) end [2025-01-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218918', 'tblTempVendorCDR_20' ) start [2025-01-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218918', 'tblTempVendorCDR_20' ) end [2025-01-10 19:01:19] Production.INFO: ProcessCDR(1,14218918,1,1,2) [2025-01-10 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218918', 'tblTempUsageDetail_20' ) start [2025-01-10 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218918', 'tblTempUsageDetail_20' ) end [2025-01-10 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:01:22] Production.INFO: ==17351== Releasing lock... [2025-01-10 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:01:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-10 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:02:05 [end_date_ymd] => 2025-01-10 19:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:02:05' and `end` < '2025-01-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-01-10 19:02:22] Production.INFO: count ==3271 [2025-01-10 19:02:23] Production.ERROR: pbx CDR StartTime 2025-01-10 16:02:05 - End Time 2025-01-10 19:02:05 [2025-01-10 19:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218923', 'tblTempUsageDetail_20' ) start [2025-01-10 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218923', 'tblTempUsageDetail_20' ) end [2025-01-10 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218923', 'tblTempVendorCDR_20' ) start [2025-01-10 19:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218923', 'tblTempVendorCDR_20' ) end [2025-01-10 19:02:23] Production.INFO: ProcessCDR(1,14218923,1,1,2) [2025-01-10 19:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218923', 'tblTempUsageDetail_20' ) start [2025-01-10 19:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218923', 'tblTempUsageDetail_20' ) end [2025-01-10 19:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:02:29] Production.INFO: ==17437== Releasing lock... [2025-01-10 19:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:02:29] Production.INFO: 52.5 MB #Memory Used# [2025-01-10 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:03:05 [end_date_ymd] => 2025-01-10 19:03:05 [RateCDR] => 1 ) [2025-01-10 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:03:05' and `end` < '2025-01-10 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:03:22] Production.INFO: count ==3269 [2025-01-10 19:03:23] Production.ERROR: pbx CDR StartTime 2025-01-10 16:03:05 - End Time 2025-01-10 19:03:05 [2025-01-10 19:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218928', 'tblTempUsageDetail_20' ) start [2025-01-10 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218928', 'tblTempUsageDetail_20' ) end [2025-01-10 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218928', 'tblTempVendorCDR_20' ) start [2025-01-10 19:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218928', 'tblTempVendorCDR_20' ) end [2025-01-10 19:03:23] Production.INFO: ProcessCDR(1,14218928,1,1,2) [2025-01-10 19:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218928', 'tblTempUsageDetail_20' ) start [2025-01-10 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218928', 'tblTempUsageDetail_20' ) end [2025-01-10 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:03:26] Production.INFO: ==17527== Releasing lock... [2025-01-10 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:03:26] Production.INFO: 52.5 MB #Memory Used# [2025-01-10 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:04:05 [end_date_ymd] => 2025-01-10 19:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:04:05' and `end` < '2025-01-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-01-10 19:04:23] Production.INFO: count ==3247 [2025-01-10 19:04:24] Production.ERROR: pbx CDR StartTime 2025-01-10 16:04:05 - End Time 2025-01-10 19:04:05 [2025-01-10 19:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218933', 'tblTempUsageDetail_20' ) start [2025-01-10 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218933', 'tblTempUsageDetail_20' ) end [2025-01-10 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218933', 'tblTempVendorCDR_20' ) start [2025-01-10 19:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218933', 'tblTempVendorCDR_20' ) end [2025-01-10 19:04:24] Production.INFO: ProcessCDR(1,14218933,1,1,2) [2025-01-10 19:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218933', 'tblTempUsageDetail_20' ) start [2025-01-10 19:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218933', 'tblTempUsageDetail_20' ) end [2025-01-10 19:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:04:28] Production.INFO: ==17612== Releasing lock... [2025-01-10 19:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:04:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-10 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:05:05 [end_date_ymd] => 2025-01-10 19:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:05:05' and `end` < '2025-01-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-01-10 19:05:18] Production.INFO: count ==3230 [2025-01-10 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:05:05 - End Time 2025-01-10 19:05:05 [2025-01-10 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218938', 'tblTempUsageDetail_20' ) start [2025-01-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218938', 'tblTempUsageDetail_20' ) end [2025-01-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218938', 'tblTempVendorCDR_20' ) start [2025-01-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218938', 'tblTempVendorCDR_20' ) end [2025-01-10 19:05:19] Production.INFO: ProcessCDR(1,14218938,1,1,2) [2025-01-10 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218938', 'tblTempUsageDetail_20' ) start [2025-01-10 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218938', 'tblTempUsageDetail_20' ) end [2025-01-10 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:05:22] Production.INFO: ==17783== Releasing lock... [2025-01-10 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:05:22] Production.INFO: 52 MB #Memory Used# [2025-01-10 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:06:05 [end_date_ymd] => 2025-01-10 19:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:06:05' and `end` < '2025-01-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-01-10 19:06:19] Production.INFO: count ==3204 [2025-01-10 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:06:05 - End Time 2025-01-10 19:06:05 [2025-01-10 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218943', 'tblTempUsageDetail_20' ) start [2025-01-10 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218943', 'tblTempUsageDetail_20' ) end [2025-01-10 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218943', 'tblTempVendorCDR_20' ) start [2025-01-10 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218943', 'tblTempVendorCDR_20' ) end [2025-01-10 19:06:20] Production.INFO: ProcessCDR(1,14218943,1,1,2) [2025-01-10 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218943', 'tblTempUsageDetail_20' ) start [2025-01-10 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218943', 'tblTempUsageDetail_20' ) end [2025-01-10 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:06:25] Production.INFO: ==17873== Releasing lock... [2025-01-10 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:06:25] Production.INFO: 52 MB #Memory Used# [2025-01-10 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:07:05 [end_date_ymd] => 2025-01-10 19:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:07:05' and `end` < '2025-01-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-01-10 19:07:18] Production.INFO: count ==3191 [2025-01-10 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:07:05 - End Time 2025-01-10 19:07:05 [2025-01-10 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218948', 'tblTempUsageDetail_20' ) start [2025-01-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218948', 'tblTempUsageDetail_20' ) end [2025-01-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218948', 'tblTempVendorCDR_20' ) start [2025-01-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218948', 'tblTempVendorCDR_20' ) end [2025-01-10 19:07:19] Production.INFO: ProcessCDR(1,14218948,1,1,2) [2025-01-10 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218948', 'tblTempUsageDetail_20' ) start [2025-01-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218948', 'tblTempUsageDetail_20' ) end [2025-01-10 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:07:23] Production.INFO: ==17954== Releasing lock... [2025-01-10 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:07:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-10 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:08:05 [end_date_ymd] => 2025-01-10 19:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:08:05' and `end` < '2025-01-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-01-10 19:08:18] Production.INFO: count ==3165 [2025-01-10 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:08:05 - End Time 2025-01-10 19:08:05 [2025-01-10 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218953', 'tblTempUsageDetail_20' ) start [2025-01-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218953', 'tblTempUsageDetail_20' ) end [2025-01-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218953', 'tblTempVendorCDR_20' ) start [2025-01-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218953', 'tblTempVendorCDR_20' ) end [2025-01-10 19:08:19] Production.INFO: ProcessCDR(1,14218953,1,1,2) [2025-01-10 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218953', 'tblTempUsageDetail_20' ) start [2025-01-10 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218953', 'tblTempUsageDetail_20' ) end [2025-01-10 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:08:22] Production.INFO: ==18121== Releasing lock... [2025-01-10 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:08:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-10 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:09:05 [end_date_ymd] => 2025-01-10 19:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:09:05' and `end` < '2025-01-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-01-10 19:09:19] Production.INFO: count ==3157 [2025-01-10 19:09:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:09:05 - End Time 2025-01-10 19:09:05 [2025-01-10 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218958', 'tblTempUsageDetail_20' ) start [2025-01-10 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218958', 'tblTempUsageDetail_20' ) end [2025-01-10 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218958', 'tblTempVendorCDR_20' ) start [2025-01-10 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218958', 'tblTempVendorCDR_20' ) end [2025-01-10 19:09:20] Production.INFO: ProcessCDR(1,14218958,1,1,2) [2025-01-10 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218958', 'tblTempUsageDetail_20' ) start [2025-01-10 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218958', 'tblTempUsageDetail_20' ) end [2025-01-10 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:09:23] Production.INFO: ==18205== Releasing lock... [2025-01-10 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:09:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:10:06 [end_date_ymd] => 2025-01-10 19:10:06 [RateCDR] => 1 ) [2025-01-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-01-10 16:10:06' and `end` < '2025-01-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-01-10 19:10:22] Production.INFO: count ==3140 [2025-01-10 19:10:23] Production.ERROR: pbx CDR StartTime 2025-01-10 16:10:06 - End Time 2025-01-10 19:10:06 [2025-01-10 19:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218963', 'tblTempUsageDetail_20' ) start [2025-01-10 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218963', 'tblTempUsageDetail_20' ) end [2025-01-10 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218963', 'tblTempVendorCDR_20' ) start [2025-01-10 19:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218963', 'tblTempVendorCDR_20' ) end [2025-01-10 19:10:23] Production.INFO: ProcessCDR(1,14218963,1,1,2) [2025-01-10 19:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218963', 'tblTempUsageDetail_20' ) start [2025-01-10 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218963', 'tblTempUsageDetail_20' ) end [2025-01-10 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:10:26] Production.INFO: ==18296== Releasing lock... [2025-01-10 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:10:26] Production.INFO: 51.5 MB #Memory Used# [2025-01-10 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:11:05 [end_date_ymd] => 2025-01-10 19:11:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:11:05' and `end` < '2025-01-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-01-10 19:11:18] Production.INFO: count ==3069 [2025-01-10 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:11:05 - End Time 2025-01-10 19:11:05 [2025-01-10 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218969', 'tblTempUsageDetail_20' ) start [2025-01-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218969', 'tblTempUsageDetail_20' ) end [2025-01-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218969', 'tblTempVendorCDR_20' ) start [2025-01-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218969', 'tblTempVendorCDR_20' ) end [2025-01-10 19:11:19] Production.INFO: ProcessCDR(1,14218969,1,1,2) [2025-01-10 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218969', 'tblTempUsageDetail_20' ) start [2025-01-10 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218969', 'tblTempUsageDetail_20' ) end [2025-01-10 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:11:23] Production.INFO: ==18386== Releasing lock... [2025-01-10 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:11:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:12:05 [end_date_ymd] => 2025-01-10 19:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:12:05' and `end` < '2025-01-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-01-10 19:12:19] Production.INFO: count ==3038 [2025-01-10 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:12:05 - End Time 2025-01-10 19:12:05 [2025-01-10 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218974', 'tblTempUsageDetail_20' ) start [2025-01-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218974', 'tblTempUsageDetail_20' ) end [2025-01-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218974', 'tblTempVendorCDR_20' ) start [2025-01-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218974', 'tblTempVendorCDR_20' ) end [2025-01-10 19:12:19] Production.INFO: ProcessCDR(1,14218974,1,1,2) [2025-01-10 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218974', 'tblTempUsageDetail_20' ) start [2025-01-10 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218974', 'tblTempUsageDetail_20' ) end [2025-01-10 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:12:24] Production.INFO: ==18541== Releasing lock... [2025-01-10 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:12:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:13:04 [end_date_ymd] => 2025-01-10 19:13:04 [RateCDR] => 1 ) [2025-01-10 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:13:04' and `end` < '2025-01-10 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:13:18] Production.INFO: count ==3035 [2025-01-10 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:13:04 - End Time 2025-01-10 19:13:04 [2025-01-10 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218979', 'tblTempUsageDetail_20' ) start [2025-01-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218979', 'tblTempUsageDetail_20' ) end [2025-01-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218979', 'tblTempVendorCDR_20' ) start [2025-01-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218979', 'tblTempVendorCDR_20' ) end [2025-01-10 19:13:19] Production.INFO: ProcessCDR(1,14218979,1,1,2) [2025-01-10 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218979', 'tblTempUsageDetail_20' ) start [2025-01-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218979', 'tblTempUsageDetail_20' ) end [2025-01-10 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:13:22] Production.INFO: ==18615== Releasing lock... [2025-01-10 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:13:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-10 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:14:05 [end_date_ymd] => 2025-01-10 19:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:14:05' and `end` < '2025-01-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-01-10 19:14:18] Production.INFO: count ==3043 [2025-01-10 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:14:05 - End Time 2025-01-10 19:14:05 [2025-01-10 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218984', 'tblTempUsageDetail_20' ) start [2025-01-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218984', 'tblTempUsageDetail_20' ) end [2025-01-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218984', 'tblTempVendorCDR_20' ) start [2025-01-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218984', 'tblTempVendorCDR_20' ) end [2025-01-10 19:14:19] Production.INFO: ProcessCDR(1,14218984,1,1,2) [2025-01-10 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218984', 'tblTempUsageDetail_20' ) start [2025-01-10 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218984', 'tblTempUsageDetail_20' ) end [2025-01-10 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:14:23] Production.INFO: ==18694== Releasing lock... [2025-01-10 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:14:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:15:05 [end_date_ymd] => 2025-01-10 19:15:05 [RateCDR] => 1 ) [2025-01-10 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:15:05' and `end` < '2025-01-10 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:15:20] Production.INFO: count ==3028 [2025-01-10 19:15:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:15:05 - End Time 2025-01-10 19:15:05 [2025-01-10 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218989', 'tblTempUsageDetail_20' ) start [2025-01-10 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218989', 'tblTempUsageDetail_20' ) end [2025-01-10 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218989', 'tblTempVendorCDR_20' ) start [2025-01-10 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218989', 'tblTempVendorCDR_20' ) end [2025-01-10 19:15:21] Production.INFO: ProcessCDR(1,14218989,1,1,2) [2025-01-10 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218989', 'tblTempUsageDetail_20' ) start [2025-01-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218989', 'tblTempUsageDetail_20' ) end [2025-01-10 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:15:24] Production.INFO: ==18845== Releasing lock... [2025-01-10 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:15:24] Production.INFO: 51 MB #Memory Used# [2025-01-10 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:16:05 [end_date_ymd] => 2025-01-10 19:16:05 [RateCDR] => 1 ) [2025-01-10 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:16:05' and `end` < '2025-01-10 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:16:23] Production.INFO: count ==3014 [2025-01-10 19:16:24] Production.ERROR: pbx CDR StartTime 2025-01-10 16:16:05 - End Time 2025-01-10 19:16:05 [2025-01-10 19:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218994', 'tblTempUsageDetail_20' ) start [2025-01-10 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218994', 'tblTempUsageDetail_20' ) end [2025-01-10 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218994', 'tblTempVendorCDR_20' ) start [2025-01-10 19:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218994', 'tblTempVendorCDR_20' ) end [2025-01-10 19:16:24] Production.INFO: ProcessCDR(1,14218994,1,1,2) [2025-01-10 19:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218994', 'tblTempUsageDetail_20' ) start [2025-01-10 19:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218994', 'tblTempUsageDetail_20' ) end [2025-01-10 19:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:16:28] Production.INFO: ==18958== Releasing lock... [2025-01-10 19:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:16:28] Production.INFO: 50.75 MB #Memory Used# [2025-01-10 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:17:05 [end_date_ymd] => 2025-01-10 19:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:17:05' and `end` < '2025-01-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-01-10 19:17:18] Production.INFO: count ==2990 [2025-01-10 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:17:05 - End Time 2025-01-10 19:17:05 [2025-01-10 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218999', 'tblTempUsageDetail_20' ) start [2025-01-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14218999', 'tblTempUsageDetail_20' ) end [2025-01-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218999', 'tblTempVendorCDR_20' ) start [2025-01-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14218999', 'tblTempVendorCDR_20' ) end [2025-01-10 19:17:19] Production.INFO: ProcessCDR(1,14218999,1,1,2) [2025-01-10 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14218999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14218999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14218999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14218999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218999', 'tblTempUsageDetail_20' ) start [2025-01-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14218999', 'tblTempUsageDetail_20' ) end [2025-01-10 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:17:22] Production.INFO: ==19029== Releasing lock... [2025-01-10 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:17:22] Production.INFO: 50.25 MB #Memory Used# [2025-01-10 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:18:05 [end_date_ymd] => 2025-01-10 19:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:18:05' and `end` < '2025-01-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-01-10 19:18:18] Production.INFO: count ==2953 [2025-01-10 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:18:05 - End Time 2025-01-10 19:18:05 [2025-01-10 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219004', 'tblTempUsageDetail_20' ) start [2025-01-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219004', 'tblTempUsageDetail_20' ) end [2025-01-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219004', 'tblTempVendorCDR_20' ) start [2025-01-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219004', 'tblTempVendorCDR_20' ) end [2025-01-10 19:18:19] Production.INFO: ProcessCDR(1,14219004,1,1,2) [2025-01-10 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219004', 'tblTempUsageDetail_20' ) start [2025-01-10 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219004', 'tblTempUsageDetail_20' ) end [2025-01-10 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:18:24] Production.INFO: ==19102== Releasing lock... [2025-01-10 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:18:24] Production.INFO: 50 MB #Memory Used# [2025-01-10 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:19:05 [end_date_ymd] => 2025-01-10 19:19:05 [RateCDR] => 1 ) [2025-01-10 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:19:05' and `end` < '2025-01-10 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:19:19] Production.INFO: count ==2934 [2025-01-10 19:19:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:19:05 - End Time 2025-01-10 19:19:05 [2025-01-10 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219009', 'tblTempUsageDetail_20' ) start [2025-01-10 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219009', 'tblTempUsageDetail_20' ) end [2025-01-10 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219009', 'tblTempVendorCDR_20' ) start [2025-01-10 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219009', 'tblTempVendorCDR_20' ) end [2025-01-10 19:19:20] Production.INFO: ProcessCDR(1,14219009,1,1,2) [2025-01-10 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219009', 'tblTempUsageDetail_20' ) start [2025-01-10 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219009', 'tblTempUsageDetail_20' ) end [2025-01-10 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:19:25] Production.INFO: ==19175== Releasing lock... [2025-01-10 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:19:25] Production.INFO: 50 MB #Memory Used# [2025-01-10 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:20:05 [end_date_ymd] => 2025-01-10 19:20:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:20:05' and `end` < '2025-01-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-01-10 19:20:26] Production.INFO: count ==2905 [2025-01-10 19:20:26] Production.ERROR: pbx CDR StartTime 2025-01-10 16:20:05 - End Time 2025-01-10 19:20:05 [2025-01-10 19:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219015', 'tblTempUsageDetail_20' ) start [2025-01-10 19:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219015', 'tblTempUsageDetail_20' ) end [2025-01-10 19:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219015', 'tblTempVendorCDR_20' ) start [2025-01-10 19:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219015', 'tblTempVendorCDR_20' ) end [2025-01-10 19:20:26] Production.INFO: ProcessCDR(1,14219015,1,1,2) [2025-01-10 19:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219015', 'tblTempUsageDetail_20' ) start [2025-01-10 19:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219015', 'tblTempUsageDetail_20' ) end [2025-01-10 19:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:20:30] Production.INFO: ==19248== Releasing lock... [2025-01-10 19:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:20:30] Production.INFO: 50 MB #Memory Used# [2025-01-10 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:21:05 [end_date_ymd] => 2025-01-10 19:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:21:05' and `end` < '2025-01-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-01-10 19:21:18] Production.INFO: count ==2823 [2025-01-10 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:21:05 - End Time 2025-01-10 19:21:05 [2025-01-10 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219020', 'tblTempUsageDetail_20' ) start [2025-01-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219020', 'tblTempUsageDetail_20' ) end [2025-01-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219020', 'tblTempVendorCDR_20' ) start [2025-01-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219020', 'tblTempVendorCDR_20' ) end [2025-01-10 19:21:19] Production.INFO: ProcessCDR(1,14219020,1,1,2) [2025-01-10 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219020', 'tblTempUsageDetail_20' ) start [2025-01-10 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219020', 'tblTempUsageDetail_20' ) end [2025-01-10 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:21:22] Production.INFO: ==19320== Releasing lock... [2025-01-10 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:21:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-10 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:22:05 [end_date_ymd] => 2025-01-10 19:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:22:05' and `end` < '2025-01-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-01-10 19:22:22] Production.INFO: count ==2801 [2025-01-10 19:22:23] Production.ERROR: pbx CDR StartTime 2025-01-10 16:22:05 - End Time 2025-01-10 19:22:05 [2025-01-10 19:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219025', 'tblTempUsageDetail_20' ) start [2025-01-10 19:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219025', 'tblTempUsageDetail_20' ) end [2025-01-10 19:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219025', 'tblTempVendorCDR_20' ) start [2025-01-10 19:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219025', 'tblTempVendorCDR_20' ) end [2025-01-10 19:22:23] Production.INFO: ProcessCDR(1,14219025,1,1,2) [2025-01-10 19:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219025', 'tblTempUsageDetail_20' ) start [2025-01-10 19:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219025', 'tblTempUsageDetail_20' ) end [2025-01-10 19:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:22:27] Production.INFO: ==19390== Releasing lock... [2025-01-10 19:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:22:27] Production.INFO: 49 MB #Memory Used# [2025-01-10 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:23:04 [end_date_ymd] => 2025-01-10 19:23:04 [RateCDR] => 1 ) [2025-01-10 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:23:04' and `end` < '2025-01-10 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:23:18] Production.INFO: count ==2790 [2025-01-10 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:23:04 - End Time 2025-01-10 19:23:04 [2025-01-10 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219030', 'tblTempUsageDetail_20' ) start [2025-01-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219030', 'tblTempUsageDetail_20' ) end [2025-01-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219030', 'tblTempVendorCDR_20' ) start [2025-01-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219030', 'tblTempVendorCDR_20' ) end [2025-01-10 19:23:19] Production.INFO: ProcessCDR(1,14219030,1,1,2) [2025-01-10 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219030', 'tblTempUsageDetail_20' ) start [2025-01-10 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219030', 'tblTempUsageDetail_20' ) end [2025-01-10 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:23:22] Production.INFO: ==19462== Releasing lock... [2025-01-10 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:23:22] Production.INFO: 49 MB #Memory Used# [2025-01-10 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:24:05 [end_date_ymd] => 2025-01-10 19:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:24:05' and `end` < '2025-01-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-01-10 19:24:21] Production.INFO: count ==2787 [2025-01-10 19:24:22] Production.ERROR: pbx CDR StartTime 2025-01-10 16:24:05 - End Time 2025-01-10 19:24:05 [2025-01-10 19:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219035', 'tblTempUsageDetail_20' ) start [2025-01-10 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219035', 'tblTempUsageDetail_20' ) end [2025-01-10 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219035', 'tblTempVendorCDR_20' ) start [2025-01-10 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219035', 'tblTempVendorCDR_20' ) end [2025-01-10 19:24:22] Production.INFO: ProcessCDR(1,14219035,1,1,2) [2025-01-10 19:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219035', 'tblTempUsageDetail_20' ) start [2025-01-10 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219035', 'tblTempUsageDetail_20' ) end [2025-01-10 19:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:24:26] Production.INFO: ==19533== Releasing lock... [2025-01-10 19:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:24:26] Production.INFO: 49 MB #Memory Used# [2025-01-10 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:25:04 [end_date_ymd] => 2025-01-10 19:25:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:25:04' and `end` < '2025-01-10 19: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-01-10 19:25:19] Production.INFO: count ==2792 [2025-01-10 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:25:04 - End Time 2025-01-10 19:25:04 [2025-01-10 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219040', 'tblTempUsageDetail_20' ) start [2025-01-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219040', 'tblTempUsageDetail_20' ) end [2025-01-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219040', 'tblTempVendorCDR_20' ) start [2025-01-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219040', 'tblTempVendorCDR_20' ) end [2025-01-10 19:25:20] Production.INFO: ProcessCDR(1,14219040,1,1,2) [2025-01-10 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219040', 'tblTempUsageDetail_20' ) start [2025-01-10 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219040', 'tblTempUsageDetail_20' ) end [2025-01-10 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:25:23] Production.INFO: ==19606== Releasing lock... [2025-01-10 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:25:23] Production.INFO: 49 MB #Memory Used# [2025-01-10 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:26:05 [end_date_ymd] => 2025-01-10 19:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:26:05' and `end` < '2025-01-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-01-10 19:26:20] Production.INFO: count ==2770 [2025-01-10 19:26:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:26:05 - End Time 2025-01-10 19:26:05 [2025-01-10 19:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219045', 'tblTempUsageDetail_20' ) start [2025-01-10 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219045', 'tblTempUsageDetail_20' ) end [2025-01-10 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219045', 'tblTempVendorCDR_20' ) start [2025-01-10 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219045', 'tblTempVendorCDR_20' ) end [2025-01-10 19:26:21] Production.INFO: ProcessCDR(1,14219045,1,1,2) [2025-01-10 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219045', 'tblTempUsageDetail_20' ) start [2025-01-10 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219045', 'tblTempUsageDetail_20' ) end [2025-01-10 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:26:24] Production.INFO: ==19677== Releasing lock... [2025-01-10 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:26:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-10 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:27:04 [end_date_ymd] => 2025-01-10 19:27:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:27:04' and `end` < '2025-01-10 19: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-01-10 19:27:18] Production.INFO: count ==2761 [2025-01-10 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:27:04 - End Time 2025-01-10 19:27:04 [2025-01-10 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219050', 'tblTempUsageDetail_20' ) start [2025-01-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219050', 'tblTempUsageDetail_20' ) end [2025-01-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219050', 'tblTempVendorCDR_20' ) start [2025-01-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219050', 'tblTempVendorCDR_20' ) end [2025-01-10 19:27:19] Production.INFO: ProcessCDR(1,14219050,1,1,2) [2025-01-10 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219050', 'tblTempUsageDetail_20' ) start [2025-01-10 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219050', 'tblTempUsageDetail_20' ) end [2025-01-10 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:27:22] Production.INFO: ==19752== Releasing lock... [2025-01-10 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:27:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-10 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:28:05 [end_date_ymd] => 2025-01-10 19:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:28:05' and `end` < '2025-01-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-01-10 19:28:19] Production.INFO: count ==2752 [2025-01-10 19:28:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:28:05 - End Time 2025-01-10 19:28:05 [2025-01-10 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219055', 'tblTempUsageDetail_20' ) start [2025-01-10 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219055', 'tblTempUsageDetail_20' ) end [2025-01-10 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219055', 'tblTempVendorCDR_20' ) start [2025-01-10 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219055', 'tblTempVendorCDR_20' ) end [2025-01-10 19:28:20] Production.INFO: ProcessCDR(1,14219055,1,1,2) [2025-01-10 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219055', 'tblTempUsageDetail_20' ) start [2025-01-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219055', 'tblTempUsageDetail_20' ) end [2025-01-10 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:28:23] Production.INFO: ==19826== Releasing lock... [2025-01-10 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:28:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-10 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:29:04 [end_date_ymd] => 2025-01-10 19:29:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:29:04' and `end` < '2025-01-10 19: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-01-10 19:29:17] Production.INFO: count ==2749 [2025-01-10 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:29:04 - End Time 2025-01-10 19:29:04 [2025-01-10 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219060', 'tblTempUsageDetail_20' ) start [2025-01-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219060', 'tblTempUsageDetail_20' ) end [2025-01-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219060', 'tblTempVendorCDR_20' ) start [2025-01-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219060', 'tblTempVendorCDR_20' ) end [2025-01-10 19:29:18] Production.INFO: ProcessCDR(1,14219060,1,1,2) [2025-01-10 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219060', 'tblTempUsageDetail_20' ) start [2025-01-10 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219060', 'tblTempUsageDetail_20' ) end [2025-01-10 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:29:21] Production.INFO: ==19901== Releasing lock... [2025-01-10 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:29:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-10 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:30:05 [end_date_ymd] => 2025-01-10 19:30:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:30:05' and `end` < '2025-01-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-01-10 19:30:19] Production.INFO: count ==2746 [2025-01-10 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:30:05 - End Time 2025-01-10 19:30:05 [2025-01-10 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219066', 'tblTempUsageDetail_20' ) start [2025-01-10 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219066', 'tblTempUsageDetail_20' ) end [2025-01-10 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219066', 'tblTempVendorCDR_20' ) start [2025-01-10 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219066', 'tblTempVendorCDR_20' ) end [2025-01-10 19:30:20] Production.INFO: ProcessCDR(1,14219066,1,1,2) [2025-01-10 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219066', 'tblTempUsageDetail_20' ) start [2025-01-10 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219066', 'tblTempUsageDetail_20' ) end [2025-01-10 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:30:24] Production.INFO: ==19986== Releasing lock... [2025-01-10 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:30:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-10 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:31:04 [end_date_ymd] => 2025-01-10 19:31:04 [RateCDR] => 1 ) [2025-01-10 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:31:04' and `end` < '2025-01-10 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:31:17] Production.INFO: count ==2722 [2025-01-10 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:31:04 - End Time 2025-01-10 19:31:04 [2025-01-10 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219071', 'tblTempUsageDetail_20' ) start [2025-01-10 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219071', 'tblTempUsageDetail_20' ) end [2025-01-10 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219071', 'tblTempVendorCDR_20' ) start [2025-01-10 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219071', 'tblTempVendorCDR_20' ) end [2025-01-10 19:31:18] Production.INFO: ProcessCDR(1,14219071,1,1,2) [2025-01-10 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219071', 'tblTempUsageDetail_20' ) start [2025-01-10 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219071', 'tblTempUsageDetail_20' ) end [2025-01-10 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:31:21] Production.INFO: ==20072== Releasing lock... [2025-01-10 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:31:21] Production.INFO: 48.5 MB #Memory Used# [2025-01-10 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:32:05 [end_date_ymd] => 2025-01-10 19:32:05 [RateCDR] => 1 ) [2025-01-10 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:32:05' and `end` < '2025-01-10 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:32:18] Production.INFO: count ==2699 [2025-01-10 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:32:05 - End Time 2025-01-10 19:32:05 [2025-01-10 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219076', 'tblTempUsageDetail_20' ) start [2025-01-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219076', 'tblTempUsageDetail_20' ) end [2025-01-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219076', 'tblTempVendorCDR_20' ) start [2025-01-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219076', 'tblTempVendorCDR_20' ) end [2025-01-10 19:32:19] Production.INFO: ProcessCDR(1,14219076,1,1,2) [2025-01-10 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219076', 'tblTempUsageDetail_20' ) start [2025-01-10 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219076', 'tblTempUsageDetail_20' ) end [2025-01-10 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:32:22] Production.INFO: ==20198== Releasing lock... [2025-01-10 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:32:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-10 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:33:05 [end_date_ymd] => 2025-01-10 19:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:33:05' and `end` < '2025-01-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-01-10 19:33:19] Production.INFO: count ==2682 [2025-01-10 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:33:05 - End Time 2025-01-10 19:33:05 [2025-01-10 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219081', 'tblTempUsageDetail_20' ) start [2025-01-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219081', 'tblTempUsageDetail_20' ) end [2025-01-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219081', 'tblTempVendorCDR_20' ) start [2025-01-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219081', 'tblTempVendorCDR_20' ) end [2025-01-10 19:33:19] Production.INFO: ProcessCDR(1,14219081,1,1,2) [2025-01-10 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219081', 'tblTempUsageDetail_20' ) start [2025-01-10 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219081', 'tblTempUsageDetail_20' ) end [2025-01-10 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:33:24] Production.INFO: ==20280== Releasing lock... [2025-01-10 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:33:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-10 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:34:05 [end_date_ymd] => 2025-01-10 19:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:34:05' and `end` < '2025-01-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-01-10 19:34:20] Production.INFO: count ==2651 [2025-01-10 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:34:05 - End Time 2025-01-10 19:34:05 [2025-01-10 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219086', 'tblTempUsageDetail_20' ) start [2025-01-10 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219086', 'tblTempUsageDetail_20' ) end [2025-01-10 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219086', 'tblTempVendorCDR_20' ) start [2025-01-10 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219086', 'tblTempVendorCDR_20' ) end [2025-01-10 19:34:20] Production.INFO: ProcessCDR(1,14219086,1,1,2) [2025-01-10 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219086', 'tblTempUsageDetail_20' ) start [2025-01-10 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219086', 'tblTempUsageDetail_20' ) end [2025-01-10 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:34:23] Production.INFO: ==20363== Releasing lock... [2025-01-10 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:34:23] Production.INFO: 48 MB #Memory Used# [2025-01-10 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:35:05 [end_date_ymd] => 2025-01-10 19:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:35:05' and `end` < '2025-01-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-01-10 19:35:18] Production.INFO: count ==2631 [2025-01-10 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:35:05 - End Time 2025-01-10 19:35:05 [2025-01-10 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219091', 'tblTempUsageDetail_20' ) start [2025-01-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219091', 'tblTempUsageDetail_20' ) end [2025-01-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219091', 'tblTempVendorCDR_20' ) start [2025-01-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219091', 'tblTempVendorCDR_20' ) end [2025-01-10 19:35:19] Production.INFO: ProcessCDR(1,14219091,1,1,2) [2025-01-10 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219091', 'tblTempUsageDetail_20' ) start [2025-01-10 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219091', 'tblTempUsageDetail_20' ) end [2025-01-10 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:35:22] Production.INFO: ==20445== Releasing lock... [2025-01-10 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:35:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-10 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:36:05 [end_date_ymd] => 2025-01-10 19:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:36:05' and `end` < '2025-01-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-01-10 19:36:19] Production.INFO: count ==2602 [2025-01-10 19:36:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:36:05 - End Time 2025-01-10 19:36:05 [2025-01-10 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219096', 'tblTempUsageDetail_20' ) start [2025-01-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219096', 'tblTempUsageDetail_20' ) end [2025-01-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219096', 'tblTempVendorCDR_20' ) start [2025-01-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219096', 'tblTempVendorCDR_20' ) end [2025-01-10 19:36:20] Production.INFO: ProcessCDR(1,14219096,1,1,2) [2025-01-10 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219096', 'tblTempUsageDetail_20' ) start [2025-01-10 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219096', 'tblTempUsageDetail_20' ) end [2025-01-10 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:36:23] Production.INFO: ==20527== Releasing lock... [2025-01-10 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:36:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-10 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:37:04 [end_date_ymd] => 2025-01-10 19:37:04 [RateCDR] => 1 ) [2025-01-10 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:37:04' and `end` < '2025-01-10 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:37:20] Production.INFO: count ==2573 [2025-01-10 19:37:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:37:04 - End Time 2025-01-10 19:37:04 [2025-01-10 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219101', 'tblTempUsageDetail_20' ) start [2025-01-10 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219101', 'tblTempUsageDetail_20' ) end [2025-01-10 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219101', 'tblTempVendorCDR_20' ) start [2025-01-10 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219101', 'tblTempVendorCDR_20' ) end [2025-01-10 19:37:20] Production.INFO: ProcessCDR(1,14219101,1,1,2) [2025-01-10 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219101', 'tblTempUsageDetail_20' ) start [2025-01-10 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219101', 'tblTempUsageDetail_20' ) end [2025-01-10 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:37:24] Production.INFO: ==20612== Releasing lock... [2025-01-10 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:37:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-10 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:38:05 [end_date_ymd] => 2025-01-10 19:38:05 [RateCDR] => 1 ) [2025-01-10 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:38:05' and `end` < '2025-01-10 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:38:20] Production.INFO: count ==2556 [2025-01-10 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:38:05 - End Time 2025-01-10 19:38:05 [2025-01-10 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219106', 'tblTempUsageDetail_20' ) start [2025-01-10 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219106', 'tblTempUsageDetail_20' ) end [2025-01-10 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219106', 'tblTempVendorCDR_20' ) start [2025-01-10 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219106', 'tblTempVendorCDR_20' ) end [2025-01-10 19:38:20] Production.INFO: ProcessCDR(1,14219106,1,1,2) [2025-01-10 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219106', 'tblTempUsageDetail_20' ) start [2025-01-10 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219106', 'tblTempUsageDetail_20' ) end [2025-01-10 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:38:23] Production.INFO: ==20699== Releasing lock... [2025-01-10 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:38:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-10 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:39:04 [end_date_ymd] => 2025-01-10 19:39:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:39:04' and `end` < '2025-01-10 19: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-01-10 19:39:18] Production.INFO: count ==2545 [2025-01-10 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:39:04 - End Time 2025-01-10 19:39:04 [2025-01-10 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219111', 'tblTempUsageDetail_20' ) start [2025-01-10 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219111', 'tblTempUsageDetail_20' ) end [2025-01-10 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219111', 'tblTempVendorCDR_20' ) start [2025-01-10 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219111', 'tblTempVendorCDR_20' ) end [2025-01-10 19:39:19] Production.INFO: ProcessCDR(1,14219111,1,1,2) [2025-01-10 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219111', 'tblTempUsageDetail_20' ) start [2025-01-10 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219111', 'tblTempUsageDetail_20' ) end [2025-01-10 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:39:22] Production.INFO: ==20790== Releasing lock... [2025-01-10 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:39:22] Production.INFO: 47.25 MB #Memory Used# [2025-01-10 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:40:06 [end_date_ymd] => 2025-01-10 19:40:06 [RateCDR] => 1 ) [2025-01-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-01-10 16:40:06' and `end` < '2025-01-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-01-10 19:40:20] Production.INFO: count ==2545 [2025-01-10 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:40:06 - End Time 2025-01-10 19:40:06 [2025-01-10 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219117', 'tblTempUsageDetail_20' ) start [2025-01-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219117', 'tblTempUsageDetail_20' ) end [2025-01-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219117', 'tblTempVendorCDR_20' ) start [2025-01-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219117', 'tblTempVendorCDR_20' ) end [2025-01-10 19:40:20] Production.INFO: ProcessCDR(1,14219117,1,1,2) [2025-01-10 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219117', 'tblTempUsageDetail_20' ) start [2025-01-10 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219117', 'tblTempUsageDetail_20' ) end [2025-01-10 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:40:23] Production.INFO: ==20891== Releasing lock... [2025-01-10 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:40:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-10 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:41:04 [end_date_ymd] => 2025-01-10 19:41:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:41:04' and `end` < '2025-01-10 19: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-01-10 19:41:21] Production.INFO: count ==2498 [2025-01-10 19:41:22] Production.ERROR: pbx CDR StartTime 2025-01-10 16:41:04 - End Time 2025-01-10 19:41:04 [2025-01-10 19:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219122', 'tblTempUsageDetail_20' ) start [2025-01-10 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219122', 'tblTempUsageDetail_20' ) end [2025-01-10 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219122', 'tblTempVendorCDR_20' ) start [2025-01-10 19:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219122', 'tblTempVendorCDR_20' ) end [2025-01-10 19:41:22] Production.INFO: ProcessCDR(1,14219122,1,1,2) [2025-01-10 19:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219122', 'tblTempUsageDetail_20' ) start [2025-01-10 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219122', 'tblTempUsageDetail_20' ) end [2025-01-10 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:41:25] Production.INFO: ==20999== Releasing lock... [2025-01-10 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:41:25] Production.INFO: 46.75 MB #Memory Used# [2025-01-10 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:42:05 [end_date_ymd] => 2025-01-10 19:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:42:05' and `end` < '2025-01-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-01-10 19:42:19] Production.INFO: count ==2487 [2025-01-10 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:42:05 - End Time 2025-01-10 19:42:05 [2025-01-10 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219127', 'tblTempUsageDetail_20' ) start [2025-01-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219127', 'tblTempUsageDetail_20' ) end [2025-01-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219127', 'tblTempVendorCDR_20' ) start [2025-01-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219127', 'tblTempVendorCDR_20' ) end [2025-01-10 19:42:20] Production.INFO: ProcessCDR(1,14219127,1,1,2) [2025-01-10 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219127', 'tblTempUsageDetail_20' ) start [2025-01-10 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219127', 'tblTempUsageDetail_20' ) end [2025-01-10 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:42:23] Production.INFO: ==21128== Releasing lock... [2025-01-10 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:42:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-10 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:43:04 [end_date_ymd] => 2025-01-10 19:43:04 [RateCDR] => 1 ) [2025-01-10 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:43:04' and `end` < '2025-01-10 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:43:17] Production.INFO: count ==2470 [2025-01-10 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:43:04 - End Time 2025-01-10 19:43:04 [2025-01-10 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219132', 'tblTempUsageDetail_20' ) start [2025-01-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219132', 'tblTempUsageDetail_20' ) end [2025-01-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219132', 'tblTempVendorCDR_20' ) start [2025-01-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219132', 'tblTempVendorCDR_20' ) end [2025-01-10 19:43:18] Production.INFO: ProcessCDR(1,14219132,1,1,2) [2025-01-10 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219132', 'tblTempUsageDetail_20' ) start [2025-01-10 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219132', 'tblTempUsageDetail_20' ) end [2025-01-10 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:43:21] Production.INFO: ==21253== Releasing lock... [2025-01-10 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:43:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-10 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:44:05 [end_date_ymd] => 2025-01-10 19:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:44:05' and `end` < '2025-01-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-01-10 19:44:18] Production.INFO: count ==2460 [2025-01-10 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:44:05 - End Time 2025-01-10 19:44:05 [2025-01-10 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219137', 'tblTempUsageDetail_20' ) start [2025-01-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219137', 'tblTempUsageDetail_20' ) end [2025-01-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219137', 'tblTempVendorCDR_20' ) start [2025-01-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219137', 'tblTempVendorCDR_20' ) end [2025-01-10 19:44:19] Production.INFO: ProcessCDR(1,14219137,1,1,2) [2025-01-10 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219137', 'tblTempUsageDetail_20' ) start [2025-01-10 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219137', 'tblTempUsageDetail_20' ) end [2025-01-10 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:44:22] Production.INFO: ==21385== Releasing lock... [2025-01-10 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:44:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-10 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:45:05 [end_date_ymd] => 2025-01-10 19:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:45:05' and `end` < '2025-01-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-01-10 19:45:21] Production.INFO: count ==2435 [2025-01-10 19:45:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:45:05 - End Time 2025-01-10 19:45:05 [2025-01-10 19:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219142', 'tblTempUsageDetail_20' ) start [2025-01-10 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219142', 'tblTempUsageDetail_20' ) end [2025-01-10 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219142', 'tblTempVendorCDR_20' ) start [2025-01-10 19:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219142', 'tblTempVendorCDR_20' ) end [2025-01-10 19:45:21] Production.INFO: ProcessCDR(1,14219142,1,1,2) [2025-01-10 19:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219142', 'tblTempUsageDetail_20' ) start [2025-01-10 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219142', 'tblTempUsageDetail_20' ) end [2025-01-10 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:45:25] Production.INFO: ==21506== Releasing lock... [2025-01-10 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:45:25] Production.INFO: 46 MB #Memory Used# [2025-01-10 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:46:05 [end_date_ymd] => 2025-01-10 19:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:46:05' and `end` < '2025-01-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-01-10 19:46:19] Production.INFO: count ==2424 [2025-01-10 19:46:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:46:05 - End Time 2025-01-10 19:46:05 [2025-01-10 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219147', 'tblTempUsageDetail_20' ) start [2025-01-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219147', 'tblTempUsageDetail_20' ) end [2025-01-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219147', 'tblTempVendorCDR_20' ) start [2025-01-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219147', 'tblTempVendorCDR_20' ) end [2025-01-10 19:46:20] Production.INFO: ProcessCDR(1,14219147,1,1,2) [2025-01-10 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219147', 'tblTempUsageDetail_20' ) start [2025-01-10 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219147', 'tblTempUsageDetail_20' ) end [2025-01-10 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:46:23] Production.INFO: ==21629== Releasing lock... [2025-01-10 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:46:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-10 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:47:04 [end_date_ymd] => 2025-01-10 19:47:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:47:04' and `end` < '2025-01-10 19: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-01-10 19:47:18] Production.INFO: count ==2412 [2025-01-10 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:47:04 - End Time 2025-01-10 19:47:04 [2025-01-10 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219152', 'tblTempUsageDetail_20' ) start [2025-01-10 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219152', 'tblTempUsageDetail_20' ) end [2025-01-10 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219152', 'tblTempVendorCDR_20' ) start [2025-01-10 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219152', 'tblTempVendorCDR_20' ) end [2025-01-10 19:47:18] Production.INFO: ProcessCDR(1,14219152,1,1,2) [2025-01-10 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219152', 'tblTempUsageDetail_20' ) start [2025-01-10 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219152', 'tblTempUsageDetail_20' ) end [2025-01-10 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:47:21] Production.INFO: ==21742== Releasing lock... [2025-01-10 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:47:21] Production.INFO: 46 MB #Memory Used# [2025-01-10 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:48:04 [end_date_ymd] => 2025-01-10 19:48:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:48:04' and `end` < '2025-01-10 19: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-01-10 19:48:19] Production.INFO: count ==2408 [2025-01-10 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:48:04 - End Time 2025-01-10 19:48:04 [2025-01-10 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219157', 'tblTempUsageDetail_20' ) start [2025-01-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219157', 'tblTempUsageDetail_20' ) end [2025-01-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219157', 'tblTempVendorCDR_20' ) start [2025-01-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219157', 'tblTempVendorCDR_20' ) end [2025-01-10 19:48:19] Production.INFO: ProcessCDR(1,14219157,1,1,2) [2025-01-10 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219157', 'tblTempUsageDetail_20' ) start [2025-01-10 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219157', 'tblTempUsageDetail_20' ) end [2025-01-10 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:48:22] Production.INFO: ==21895== Releasing lock... [2025-01-10 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:48:22] Production.INFO: 46 MB #Memory Used# [2025-01-10 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:49:05 [end_date_ymd] => 2025-01-10 19:49:05 [RateCDR] => 1 ) [2025-01-10 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:49:05' and `end` < '2025-01-10 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:49:19] Production.INFO: count ==2386 [2025-01-10 19:49:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:49:05 - End Time 2025-01-10 19:49:05 [2025-01-10 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219162', 'tblTempUsageDetail_20' ) start [2025-01-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219162', 'tblTempUsageDetail_20' ) end [2025-01-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219162', 'tblTempVendorCDR_20' ) start [2025-01-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219162', 'tblTempVendorCDR_20' ) end [2025-01-10 19:49:19] Production.INFO: ProcessCDR(1,14219162,1,1,2) [2025-01-10 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219162', 'tblTempUsageDetail_20' ) start [2025-01-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219162', 'tblTempUsageDetail_20' ) end [2025-01-10 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:49:24] Production.INFO: ==22006== Releasing lock... [2025-01-10 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:49:24] Production.INFO: 45.5 MB #Memory Used# [2025-01-10 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:50:05 [end_date_ymd] => 2025-01-10 19:50:05 [RateCDR] => 1 ) [2025-01-10 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:50:05' and `end` < '2025-01-10 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:50:18] Production.INFO: count ==2381 [2025-01-10 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:50:05 - End Time 2025-01-10 19:50:05 [2025-01-10 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219168', 'tblTempUsageDetail_20' ) start [2025-01-10 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219168', 'tblTempUsageDetail_20' ) end [2025-01-10 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219168', 'tblTempVendorCDR_20' ) start [2025-01-10 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219168', 'tblTempVendorCDR_20' ) end [2025-01-10 19:50:19] Production.INFO: ProcessCDR(1,14219168,1,1,2) [2025-01-10 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219168', 'tblTempUsageDetail_20' ) start [2025-01-10 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219168', 'tblTempUsageDetail_20' ) end [2025-01-10 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:50:22] Production.INFO: ==22117== Releasing lock... [2025-01-10 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:50:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-10 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:51:05 [end_date_ymd] => 2025-01-10 19:51:05 [RateCDR] => 1 ) [2025-01-10 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:51:05' and `end` < '2025-01-10 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:51:20] Production.INFO: count ==2286 [2025-01-10 19:51:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:51:05 - End Time 2025-01-10 19:51:05 [2025-01-10 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219173', 'tblTempUsageDetail_20' ) start [2025-01-10 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219173', 'tblTempUsageDetail_20' ) end [2025-01-10 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219173', 'tblTempVendorCDR_20' ) start [2025-01-10 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219173', 'tblTempVendorCDR_20' ) end [2025-01-10 19:51:21] Production.INFO: ProcessCDR(1,14219173,1,1,2) [2025-01-10 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219173', 'tblTempUsageDetail_20' ) start [2025-01-10 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219173', 'tblTempUsageDetail_20' ) end [2025-01-10 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:51:24] Production.INFO: ==22229== Releasing lock... [2025-01-10 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:51:24] Production.INFO: 45 MB #Memory Used# [2025-01-10 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:52:04 [end_date_ymd] => 2025-01-10 19:52:04 [RateCDR] => 1 ) [2025-01-10 19:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:52:04' and `end` < '2025-01-10 19:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:52:18] Production.INFO: count ==2268 [2025-01-10 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:52:04 - End Time 2025-01-10 19:52:04 [2025-01-10 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219178', 'tblTempUsageDetail_20' ) start [2025-01-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219178', 'tblTempUsageDetail_20' ) end [2025-01-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219178', 'tblTempVendorCDR_20' ) start [2025-01-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219178', 'tblTempVendorCDR_20' ) end [2025-01-10 19:52:19] Production.INFO: ProcessCDR(1,14219178,1,1,2) [2025-01-10 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219178', 'tblTempUsageDetail_20' ) start [2025-01-10 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219178', 'tblTempUsageDetail_20' ) end [2025-01-10 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:52:23] Production.INFO: ==22333== Releasing lock... [2025-01-10 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:52:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-10 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:53:05 [end_date_ymd] => 2025-01-10 19:53:05 [RateCDR] => 1 ) [2025-01-10 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:53:05' and `end` < '2025-01-10 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:53:19] Production.INFO: count ==2259 [2025-01-10 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:53:05 - End Time 2025-01-10 19:53:05 [2025-01-10 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219183', 'tblTempUsageDetail_20' ) start [2025-01-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219183', 'tblTempUsageDetail_20' ) end [2025-01-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219183', 'tblTempVendorCDR_20' ) start [2025-01-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219183', 'tblTempVendorCDR_20' ) end [2025-01-10 19:53:19] Production.INFO: ProcessCDR(1,14219183,1,1,2) [2025-01-10 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219183', 'tblTempUsageDetail_20' ) start [2025-01-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219183', 'tblTempUsageDetail_20' ) end [2025-01-10 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:53:22] Production.INFO: ==22443== Releasing lock... [2025-01-10 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:53:22] Production.INFO: 45 MB #Memory Used# [2025-01-10 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:54:04 [end_date_ymd] => 2025-01-10 19:54:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:54:04' and `end` < '2025-01-10 19: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-01-10 19:54:19] Production.INFO: count ==2255 [2025-01-10 19:54:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:54:04 - End Time 2025-01-10 19:54:04 [2025-01-10 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219188', 'tblTempUsageDetail_20' ) start [2025-01-10 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219188', 'tblTempUsageDetail_20' ) end [2025-01-10 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219188', 'tblTempVendorCDR_20' ) start [2025-01-10 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219188', 'tblTempVendorCDR_20' ) end [2025-01-10 19:54:20] Production.INFO: ProcessCDR(1,14219188,1,1,2) [2025-01-10 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219188', 'tblTempUsageDetail_20' ) start [2025-01-10 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219188', 'tblTempUsageDetail_20' ) end [2025-01-10 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:54:23] Production.INFO: ==22550== Releasing lock... [2025-01-10 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:54:23] Production.INFO: 45 MB #Memory Used# [2025-01-10 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:55:05 [end_date_ymd] => 2025-01-10 19:55:05 [RateCDR] => 1 ) [2025-01-10 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:55:05' and `end` < '2025-01-10 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:55:20] Production.INFO: count ==2247 [2025-01-10 19:55:20] Production.ERROR: pbx CDR StartTime 2025-01-10 16:55:05 - End Time 2025-01-10 19:55:05 [2025-01-10 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219193', 'tblTempUsageDetail_20' ) start [2025-01-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219193', 'tblTempUsageDetail_20' ) end [2025-01-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219193', 'tblTempVendorCDR_20' ) start [2025-01-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219193', 'tblTempVendorCDR_20' ) end [2025-01-10 19:55:20] Production.INFO: ProcessCDR(1,14219193,1,1,2) [2025-01-10 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219193', 'tblTempUsageDetail_20' ) start [2025-01-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219193', 'tblTempUsageDetail_20' ) end [2025-01-10 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:55:23] Production.INFO: ==22658== Releasing lock... [2025-01-10 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:55:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-10 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:56:05 [end_date_ymd] => 2025-01-10 19:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:56:05' and `end` < '2025-01-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-01-10 19:56:20] Production.INFO: count ==2226 [2025-01-10 19:56:21] Production.ERROR: pbx CDR StartTime 2025-01-10 16:56:05 - End Time 2025-01-10 19:56:05 [2025-01-10 19:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219198', 'tblTempUsageDetail_20' ) start [2025-01-10 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219198', 'tblTempUsageDetail_20' ) end [2025-01-10 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219198', 'tblTempVendorCDR_20' ) start [2025-01-10 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219198', 'tblTempVendorCDR_20' ) end [2025-01-10 19:56:21] Production.INFO: ProcessCDR(1,14219198,1,1,2) [2025-01-10 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219198', 'tblTempUsageDetail_20' ) start [2025-01-10 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219198', 'tblTempUsageDetail_20' ) end [2025-01-10 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:56:26] Production.INFO: ==22761== Releasing lock... [2025-01-10 19:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:56:26] Production.INFO: 44.75 MB #Memory Used# [2025-01-10 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:57:05 [end_date_ymd] => 2025-01-10 19:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 16:57:05' and `end` < '2025-01-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-01-10 19:57:18] Production.INFO: count ==2217 [2025-01-10 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:57:05 - End Time 2025-01-10 19:57:05 [2025-01-10 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219203', 'tblTempUsageDetail_20' ) start [2025-01-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219203', 'tblTempUsageDetail_20' ) end [2025-01-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219203', 'tblTempVendorCDR_20' ) start [2025-01-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219203', 'tblTempVendorCDR_20' ) end [2025-01-10 19:57:18] Production.INFO: ProcessCDR(1,14219203,1,1,2) [2025-01-10 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219203', 'tblTempUsageDetail_20' ) start [2025-01-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219203', 'tblTempUsageDetail_20' ) end [2025-01-10 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:57:22] Production.INFO: ==22859== Releasing lock... [2025-01-10 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-10 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:58:04 [end_date_ymd] => 2025-01-10 19:58:04 [RateCDR] => 1 ) [2025-01-10 19: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-01-10 16:58:04' and `end` < '2025-01-10 19: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-01-10 19:58:17] Production.INFO: count ==2204 [2025-01-10 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 16:58:04 - End Time 2025-01-10 19:58:04 [2025-01-10 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219208', 'tblTempUsageDetail_20' ) start [2025-01-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219208', 'tblTempUsageDetail_20' ) end [2025-01-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219208', 'tblTempVendorCDR_20' ) start [2025-01-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219208', 'tblTempVendorCDR_20' ) end [2025-01-10 19:58:18] Production.INFO: ProcessCDR(1,14219208,1,1,2) [2025-01-10 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219208', 'tblTempUsageDetail_20' ) start [2025-01-10 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219208', 'tblTempUsageDetail_20' ) end [2025-01-10 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:58:21] Production.INFO: ==22950== Releasing lock... [2025-01-10 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:58:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 16:59:05 [end_date_ymd] => 2025-01-10 19:59:05 [RateCDR] => 1 ) [2025-01-10 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 16:59:05' and `end` < '2025-01-10 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 19:59:18] Production.INFO: count ==2201 [2025-01-10 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-10 16:59:05 - End Time 2025-01-10 19:59:05 [2025-01-10 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219213', 'tblTempUsageDetail_20' ) start [2025-01-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219213', 'tblTempUsageDetail_20' ) end [2025-01-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219213', 'tblTempVendorCDR_20' ) start [2025-01-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219213', 'tblTempVendorCDR_20' ) end [2025-01-10 19:59:19] Production.INFO: ProcessCDR(1,14219213,1,1,2) [2025-01-10 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219213', 'tblTempUsageDetail_20' ) start [2025-01-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219213', 'tblTempUsageDetail_20' ) end [2025-01-10 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 19:59:22] Production.INFO: ==23044== Releasing lock... [2025-01-10 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 19:59:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:00:06 [end_date_ymd] => 2025-01-10 20:00:06 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:00:06' and `end` < '2025-01-10 20: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-01-10 20:00:21] Production.INFO: count ==2197 [2025-01-10 20:00:21] Production.ERROR: pbx CDR StartTime 2025-01-10 17:00:06 - End Time 2025-01-10 20:00:06 [2025-01-10 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219219', 'tblTempUsageDetail_20' ) start [2025-01-10 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219219', 'tblTempUsageDetail_20' ) end [2025-01-10 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219219', 'tblTempVendorCDR_20' ) start [2025-01-10 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219219', 'tblTempVendorCDR_20' ) end [2025-01-10 20:00:21] Production.INFO: ProcessCDR(1,14219219,1,1,2) [2025-01-10 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219219', 'tblTempUsageDetail_20' ) start [2025-01-10 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219219', 'tblTempUsageDetail_20' ) end [2025-01-10 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:00:25] Production.INFO: ==23141== Releasing lock... [2025-01-10 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:00:25] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:01:05 [end_date_ymd] => 2025-01-10 20:01:05 [RateCDR] => 1 ) [2025-01-10 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:01:05' and `end` < '2025-01-10 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:01:20] Production.INFO: count ==2142 [2025-01-10 20:01:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:01:05 - End Time 2025-01-10 20:01:05 [2025-01-10 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219224', 'tblTempUsageDetail_20' ) start [2025-01-10 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219224', 'tblTempUsageDetail_20' ) end [2025-01-10 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219224', 'tblTempVendorCDR_20' ) start [2025-01-10 20:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219224', 'tblTempVendorCDR_20' ) end [2025-01-10 20:01:21] Production.INFO: ProcessCDR(1,14219224,1,1,2) [2025-01-10 20:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219224', 'tblTempUsageDetail_20' ) start [2025-01-10 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219224', 'tblTempUsageDetail_20' ) end [2025-01-10 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:01:25] Production.INFO: ==23281== Releasing lock... [2025-01-10 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:01:25] Production.INFO: 44.25 MB #Memory Used# [2025-01-10 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:02:05 [end_date_ymd] => 2025-01-10 20:02:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:02:05' and `end` < '2025-01-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-01-10 20:02:19] Production.INFO: count ==2136 [2025-01-10 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:02:05 - End Time 2025-01-10 20:02:05 [2025-01-10 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219229', 'tblTempUsageDetail_20' ) start [2025-01-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219229', 'tblTempUsageDetail_20' ) end [2025-01-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219229', 'tblTempVendorCDR_20' ) start [2025-01-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219229', 'tblTempVendorCDR_20' ) end [2025-01-10 20:02:20] Production.INFO: ProcessCDR(1,14219229,1,1,2) [2025-01-10 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219229', 'tblTempUsageDetail_20' ) start [2025-01-10 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219229', 'tblTempUsageDetail_20' ) end [2025-01-10 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:02:23] Production.INFO: ==23362== Releasing lock... [2025-01-10 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:02:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-10 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:03:05 [end_date_ymd] => 2025-01-10 20:03:05 [RateCDR] => 1 ) [2025-01-10 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:03:05' and `end` < '2025-01-10 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:03:19] Production.INFO: count ==2122 [2025-01-10 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:03:05 - End Time 2025-01-10 20:03:05 [2025-01-10 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219234', 'tblTempUsageDetail_20' ) start [2025-01-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219234', 'tblTempUsageDetail_20' ) end [2025-01-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219234', 'tblTempVendorCDR_20' ) start [2025-01-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219234', 'tblTempVendorCDR_20' ) end [2025-01-10 20:03:19] Production.INFO: ProcessCDR(1,14219234,1,1,2) [2025-01-10 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219234', 'tblTempUsageDetail_20' ) start [2025-01-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219234', 'tblTempUsageDetail_20' ) end [2025-01-10 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:03:23] Production.INFO: ==23485== Releasing lock... [2025-01-10 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:03:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-10 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:04:05 [end_date_ymd] => 2025-01-10 20:04:05 [RateCDR] => 1 ) [2025-01-10 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:04:05' and `end` < '2025-01-10 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:04:18] Production.INFO: count ==2113 [2025-01-10 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:04:05 - End Time 2025-01-10 20:04:05 [2025-01-10 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219239', 'tblTempUsageDetail_20' ) start [2025-01-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219239', 'tblTempUsageDetail_20' ) end [2025-01-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219239', 'tblTempVendorCDR_20' ) start [2025-01-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219239', 'tblTempVendorCDR_20' ) end [2025-01-10 20:04:19] Production.INFO: ProcessCDR(1,14219239,1,1,2) [2025-01-10 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219239', 'tblTempUsageDetail_20' ) start [2025-01-10 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219239', 'tblTempUsageDetail_20' ) end [2025-01-10 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:04:22] Production.INFO: ==23563== Releasing lock... [2025-01-10 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:04:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-10 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:05:04 [end_date_ymd] => 2025-01-10 20:05:04 [RateCDR] => 1 ) [2025-01-10 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:05:04' and `end` < '2025-01-10 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:05:18] Production.INFO: count ==2109 [2025-01-10 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:05:04 - End Time 2025-01-10 20:05:04 [2025-01-10 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219244', 'tblTempUsageDetail_20' ) start [2025-01-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219244', 'tblTempUsageDetail_20' ) end [2025-01-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219244', 'tblTempVendorCDR_20' ) start [2025-01-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219244', 'tblTempVendorCDR_20' ) end [2025-01-10 20:05:18] Production.INFO: ProcessCDR(1,14219244,1,1,2) [2025-01-10 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219244', 'tblTempUsageDetail_20' ) start [2025-01-10 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219244', 'tblTempUsageDetail_20' ) end [2025-01-10 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:05:21] Production.INFO: ==23638== Releasing lock... [2025-01-10 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:05:21] Production.INFO: 44 MB #Memory Used# [2025-01-10 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:06:05 [end_date_ymd] => 2025-01-10 20:06:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:06:05' and `end` < '2025-01-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-01-10 20:06:18] Production.INFO: count ==2105 [2025-01-10 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:06:05 - End Time 2025-01-10 20:06:05 [2025-01-10 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219249', 'tblTempUsageDetail_20' ) start [2025-01-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219249', 'tblTempUsageDetail_20' ) end [2025-01-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219249', 'tblTempVendorCDR_20' ) start [2025-01-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219249', 'tblTempVendorCDR_20' ) end [2025-01-10 20:06:19] Production.INFO: ProcessCDR(1,14219249,1,1,2) [2025-01-10 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219249', 'tblTempUsageDetail_20' ) start [2025-01-10 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219249', 'tblTempUsageDetail_20' ) end [2025-01-10 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:06:23] Production.INFO: ==23718== Releasing lock... [2025-01-10 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:06:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-10 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:07:04 [end_date_ymd] => 2025-01-10 20:07:04 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:07:04' and `end` < '2025-01-10 20: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-01-10 20:07:18] Production.INFO: count ==2092 [2025-01-10 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:07:04 - End Time 2025-01-10 20:07:04 [2025-01-10 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219254', 'tblTempUsageDetail_20' ) start [2025-01-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219254', 'tblTempUsageDetail_20' ) end [2025-01-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219254', 'tblTempVendorCDR_20' ) start [2025-01-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219254', 'tblTempVendorCDR_20' ) end [2025-01-10 20:07:18] Production.INFO: ProcessCDR(1,14219254,1,1,2) [2025-01-10 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219254', 'tblTempUsageDetail_20' ) start [2025-01-10 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219254', 'tblTempUsageDetail_20' ) end [2025-01-10 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:07:23] Production.INFO: ==23794== Releasing lock... [2025-01-10 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-10 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:08:05 [end_date_ymd] => 2025-01-10 20:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:08:05' and `end` < '2025-01-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-01-10 20:08:20] Production.INFO: count ==2086 [2025-01-10 20:08:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:08:05 - End Time 2025-01-10 20:08:05 [2025-01-10 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219259', 'tblTempUsageDetail_20' ) start [2025-01-10 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219259', 'tblTempUsageDetail_20' ) end [2025-01-10 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219259', 'tblTempVendorCDR_20' ) start [2025-01-10 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219259', 'tblTempVendorCDR_20' ) end [2025-01-10 20:08:20] Production.INFO: ProcessCDR(1,14219259,1,1,2) [2025-01-10 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219259', 'tblTempUsageDetail_20' ) start [2025-01-10 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219259', 'tblTempUsageDetail_20' ) end [2025-01-10 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:08:23] Production.INFO: ==23868== Releasing lock... [2025-01-10 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:08:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-10 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:09:04 [end_date_ymd] => 2025-01-10 20:09:04 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:09:04' and `end` < '2025-01-10 20: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-01-10 20:09:18] Production.INFO: count ==2086 [2025-01-10 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:09:04 - End Time 2025-01-10 20:09:04 [2025-01-10 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219264', 'tblTempUsageDetail_20' ) start [2025-01-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219264', 'tblTempUsageDetail_20' ) end [2025-01-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219264', 'tblTempVendorCDR_20' ) start [2025-01-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219264', 'tblTempVendorCDR_20' ) end [2025-01-10 20:09:19] Production.INFO: ProcessCDR(1,14219264,1,1,2) [2025-01-10 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219264', 'tblTempUsageDetail_20' ) start [2025-01-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219264', 'tblTempUsageDetail_20' ) end [2025-01-10 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:09:23] Production.INFO: ==23939== Releasing lock... [2025-01-10 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:09:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-10 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:10:05 [end_date_ymd] => 2025-01-10 20:10:05 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:10:05' and `end` < '2025-01-10 20: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-01-10 20:10:19] Production.INFO: count ==2076 [2025-01-10 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:10:05 - End Time 2025-01-10 20:10:05 [2025-01-10 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219270', 'tblTempUsageDetail_20' ) start [2025-01-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219270', 'tblTempUsageDetail_20' ) end [2025-01-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219270', 'tblTempVendorCDR_20' ) start [2025-01-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219270', 'tblTempVendorCDR_20' ) end [2025-01-10 20:10:19] Production.INFO: ProcessCDR(1,14219270,1,1,2) [2025-01-10 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219270', 'tblTempUsageDetail_20' ) start [2025-01-10 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219270', 'tblTempUsageDetail_20' ) end [2025-01-10 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:10:22] Production.INFO: ==24016== Releasing lock... [2025-01-10 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:10:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-10 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:11:05 [end_date_ymd] => 2025-01-10 20:11:05 [RateCDR] => 1 ) [2025-01-10 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:11:05' and `end` < '2025-01-10 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:11:19] Production.INFO: count ==2058 [2025-01-10 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:11:05 - End Time 2025-01-10 20:11:05 [2025-01-10 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219275', 'tblTempUsageDetail_20' ) start [2025-01-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219275', 'tblTempUsageDetail_20' ) end [2025-01-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219275', 'tblTempVendorCDR_20' ) start [2025-01-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219275', 'tblTempVendorCDR_20' ) end [2025-01-10 20:11:19] Production.INFO: ProcessCDR(1,14219275,1,1,2) [2025-01-10 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219275', 'tblTempUsageDetail_20' ) start [2025-01-10 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219275', 'tblTempUsageDetail_20' ) end [2025-01-10 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:11:22] Production.INFO: ==24090== Releasing lock... [2025-01-10 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:11:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:12:05 [end_date_ymd] => 2025-01-10 20:12:05 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:12:05' and `end` < '2025-01-10 20: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-01-10 20:12:19] Production.INFO: count ==2057 [2025-01-10 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:12:05 - End Time 2025-01-10 20:12:05 [2025-01-10 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219280', 'tblTempUsageDetail_20' ) start [2025-01-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219280', 'tblTempUsageDetail_20' ) end [2025-01-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219280', 'tblTempVendorCDR_20' ) start [2025-01-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219280', 'tblTempVendorCDR_20' ) end [2025-01-10 20:12:19] Production.INFO: ProcessCDR(1,14219280,1,1,2) [2025-01-10 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219280', 'tblTempUsageDetail_20' ) start [2025-01-10 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219280', 'tblTempUsageDetail_20' ) end [2025-01-10 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:12:24] Production.INFO: ==24163== Releasing lock... [2025-01-10 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:12:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:13:05 [end_date_ymd] => 2025-01-10 20:13:05 [RateCDR] => 1 ) [2025-01-10 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:13:05' and `end` < '2025-01-10 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:13:18] Production.INFO: count ==2055 [2025-01-10 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:13:05 - End Time 2025-01-10 20:13:05 [2025-01-10 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219285', 'tblTempUsageDetail_20' ) start [2025-01-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219285', 'tblTempUsageDetail_20' ) end [2025-01-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219285', 'tblTempVendorCDR_20' ) start [2025-01-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219285', 'tblTempVendorCDR_20' ) end [2025-01-10 20:13:19] Production.INFO: ProcessCDR(1,14219285,1,1,2) [2025-01-10 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219285', 'tblTempUsageDetail_20' ) start [2025-01-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219285', 'tblTempUsageDetail_20' ) end [2025-01-10 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:13:23] Production.INFO: ==24235== Releasing lock... [2025-01-10 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:13:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 20:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:14:04 [end_date_ymd] => 2025-01-10 20:14:04 [RateCDR] => 1 ) [2025-01-10 20:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:14:04' and `end` < '2025-01-10 20:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:14:18] Production.INFO: count ==2051 [2025-01-10 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:14:04 - End Time 2025-01-10 20:14:04 [2025-01-10 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219290', 'tblTempUsageDetail_20' ) start [2025-01-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219290', 'tblTempUsageDetail_20' ) end [2025-01-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219290', 'tblTempVendorCDR_20' ) start [2025-01-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219290', 'tblTempVendorCDR_20' ) end [2025-01-10 20:14:18] Production.INFO: ProcessCDR(1,14219290,1,1,2) [2025-01-10 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219290', 'tblTempUsageDetail_20' ) start [2025-01-10 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219290', 'tblTempUsageDetail_20' ) end [2025-01-10 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:14:23] Production.INFO: ==24306== Releasing lock... [2025-01-10 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:14:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-10 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:15:05 [end_date_ymd] => 2025-01-10 20:15:05 [RateCDR] => 1 ) [2025-01-10 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:15:05' and `end` < '2025-01-10 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:15:18] Production.INFO: count ==2010 [2025-01-10 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:15:05 - End Time 2025-01-10 20:15:05 [2025-01-10 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219295', 'tblTempUsageDetail_20' ) start [2025-01-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219295', 'tblTempUsageDetail_20' ) end [2025-01-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219295', 'tblTempVendorCDR_20' ) start [2025-01-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219295', 'tblTempVendorCDR_20' ) end [2025-01-10 20:15:19] Production.INFO: ProcessCDR(1,14219295,1,1,2) [2025-01-10 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219295', 'tblTempUsageDetail_20' ) start [2025-01-10 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219295', 'tblTempUsageDetail_20' ) end [2025-01-10 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:15:22] Production.INFO: ==24377== Releasing lock... [2025-01-10 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:15:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-10 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:16:05 [end_date_ymd] => 2025-01-10 20:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:16:05' and `end` < '2025-01-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-01-10 20:16:18] Production.INFO: count ==2000 [2025-01-10 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:16:05 - End Time 2025-01-10 20:16:05 [2025-01-10 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219300', 'tblTempUsageDetail_20' ) start [2025-01-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219300', 'tblTempUsageDetail_20' ) end [2025-01-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219300', 'tblTempVendorCDR_20' ) start [2025-01-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219300', 'tblTempVendorCDR_20' ) end [2025-01-10 20:16:19] Production.INFO: ProcessCDR(1,14219300,1,1,2) [2025-01-10 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219300', 'tblTempUsageDetail_20' ) start [2025-01-10 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219300', 'tblTempUsageDetail_20' ) end [2025-01-10 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:16:22] Production.INFO: ==24449== Releasing lock... [2025-01-10 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:16:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:17:05 [end_date_ymd] => 2025-01-10 20:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:17:05' and `end` < '2025-01-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-01-10 20:17:18] Production.INFO: count ==1975 [2025-01-10 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:17:05 - End Time 2025-01-10 20:17:05 [2025-01-10 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219305', 'tblTempUsageDetail_20' ) start [2025-01-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219305', 'tblTempUsageDetail_20' ) end [2025-01-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219305', 'tblTempVendorCDR_20' ) start [2025-01-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219305', 'tblTempVendorCDR_20' ) end [2025-01-10 20:17:19] Production.INFO: ProcessCDR(1,14219305,1,1,2) [2025-01-10 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219305', 'tblTempUsageDetail_20' ) start [2025-01-10 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219305', 'tblTempUsageDetail_20' ) end [2025-01-10 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:17:22] Production.INFO: ==24520== Releasing lock... [2025-01-10 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:17:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:18:05 [end_date_ymd] => 2025-01-10 20:18:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:18:05' and `end` < '2025-01-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-01-10 20:18:18] Production.INFO: count ==1979 [2025-01-10 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:18:05 - End Time 2025-01-10 20:18:05 [2025-01-10 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219310', 'tblTempUsageDetail_20' ) start [2025-01-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219310', 'tblTempUsageDetail_20' ) end [2025-01-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219310', 'tblTempVendorCDR_20' ) start [2025-01-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219310', 'tblTempVendorCDR_20' ) end [2025-01-10 20:18:18] Production.INFO: ProcessCDR(1,14219310,1,1,2) [2025-01-10 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219310', 'tblTempUsageDetail_20' ) start [2025-01-10 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219310', 'tblTempUsageDetail_20' ) end [2025-01-10 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:18:23] Production.INFO: ==24603== Releasing lock... [2025-01-10 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:18:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:19:05 [end_date_ymd] => 2025-01-10 20:19:05 [RateCDR] => 1 ) [2025-01-10 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:19:05' and `end` < '2025-01-10 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:19:18] Production.INFO: count ==1978 [2025-01-10 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:19:05 - End Time 2025-01-10 20:19:05 [2025-01-10 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219315', 'tblTempUsageDetail_20' ) start [2025-01-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219315', 'tblTempUsageDetail_20' ) end [2025-01-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219315', 'tblTempVendorCDR_20' ) start [2025-01-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219315', 'tblTempVendorCDR_20' ) end [2025-01-10 20:19:19] Production.INFO: ProcessCDR(1,14219315,1,1,2) [2025-01-10 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219315', 'tblTempUsageDetail_20' ) start [2025-01-10 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219315', 'tblTempUsageDetail_20' ) end [2025-01-10 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:19:22] Production.INFO: ==24721== Releasing lock... [2025-01-10 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:19:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:20:05 [end_date_ymd] => 2025-01-10 20:20:05 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:20:05' and `end` < '2025-01-10 20: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-01-10 20:20:21] Production.INFO: count ==1978 [2025-01-10 20:20:21] Production.ERROR: pbx CDR StartTime 2025-01-10 17:20:05 - End Time 2025-01-10 20:20:05 [2025-01-10 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219321', 'tblTempUsageDetail_20' ) start [2025-01-10 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219321', 'tblTempUsageDetail_20' ) end [2025-01-10 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219321', 'tblTempVendorCDR_20' ) start [2025-01-10 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219321', 'tblTempVendorCDR_20' ) end [2025-01-10 20:20:21] Production.INFO: ProcessCDR(1,14219321,1,1,2) [2025-01-10 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219321', 'tblTempUsageDetail_20' ) start [2025-01-10 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219321', 'tblTempUsageDetail_20' ) end [2025-01-10 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:20:24] Production.INFO: ==24794== Releasing lock... [2025-01-10 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:20:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:21:05 [end_date_ymd] => 2025-01-10 20:21:05 [RateCDR] => 1 ) [2025-01-10 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:21:05' and `end` < '2025-01-10 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:21:18] Production.INFO: count ==1953 [2025-01-10 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:21:05 - End Time 2025-01-10 20:21:05 [2025-01-10 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219326', 'tblTempUsageDetail_20' ) start [2025-01-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219326', 'tblTempUsageDetail_20' ) end [2025-01-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219326', 'tblTempVendorCDR_20' ) start [2025-01-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219326', 'tblTempVendorCDR_20' ) end [2025-01-10 20:21:19] Production.INFO: ProcessCDR(1,14219326,1,1,2) [2025-01-10 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219326', 'tblTempUsageDetail_20' ) start [2025-01-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219326', 'tblTempUsageDetail_20' ) end [2025-01-10 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:21:22] Production.INFO: ==24869== Releasing lock... [2025-01-10 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:21:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-10 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:22:04 [end_date_ymd] => 2025-01-10 20:22:04 [RateCDR] => 1 ) [2025-01-10 20:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:22:04' and `end` < '2025-01-10 20:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:22:20] Production.INFO: count ==1950 [2025-01-10 20:22:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:22:04 - End Time 2025-01-10 20:22:04 [2025-01-10 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219331', 'tblTempUsageDetail_20' ) start [2025-01-10 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219331', 'tblTempUsageDetail_20' ) end [2025-01-10 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219331', 'tblTempVendorCDR_20' ) start [2025-01-10 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219331', 'tblTempVendorCDR_20' ) end [2025-01-10 20:22:20] Production.INFO: ProcessCDR(1,14219331,1,1,2) [2025-01-10 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219331', 'tblTempUsageDetail_20' ) start [2025-01-10 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219331', 'tblTempUsageDetail_20' ) end [2025-01-10 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:22:24] Production.INFO: ==24939== Releasing lock... [2025-01-10 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:22:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-10 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:23:05 [end_date_ymd] => 2025-01-10 20:23:05 [RateCDR] => 1 ) [2025-01-10 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:23:05' and `end` < '2025-01-10 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:23:18] Production.INFO: count ==1931 [2025-01-10 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:23:05 - End Time 2025-01-10 20:23:05 [2025-01-10 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219336', 'tblTempUsageDetail_20' ) start [2025-01-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219336', 'tblTempUsageDetail_20' ) end [2025-01-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219336', 'tblTempVendorCDR_20' ) start [2025-01-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219336', 'tblTempVendorCDR_20' ) end [2025-01-10 20:23:19] Production.INFO: ProcessCDR(1,14219336,1,1,2) [2025-01-10 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219336', 'tblTempUsageDetail_20' ) start [2025-01-10 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219336', 'tblTempUsageDetail_20' ) end [2025-01-10 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:23:22] Production.INFO: ==25011== Releasing lock... [2025-01-10 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:23:22] Production.INFO: 42 MB #Memory Used# [2025-01-10 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:24:05 [end_date_ymd] => 2025-01-10 20:24:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:24:05' and `end` < '2025-01-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-01-10 20:24:19] Production.INFO: count ==1911 [2025-01-10 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:24:05 - End Time 2025-01-10 20:24:05 [2025-01-10 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219341', 'tblTempUsageDetail_20' ) start [2025-01-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219341', 'tblTempUsageDetail_20' ) end [2025-01-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219341', 'tblTempVendorCDR_20' ) start [2025-01-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219341', 'tblTempVendorCDR_20' ) end [2025-01-10 20:24:19] Production.INFO: ProcessCDR(1,14219341,1,1,2) [2025-01-10 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219341', 'tblTempUsageDetail_20' ) start [2025-01-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219341', 'tblTempUsageDetail_20' ) end [2025-01-10 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:24:22] Production.INFO: ==25081== Releasing lock... [2025-01-10 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:24:22] Production.INFO: 42 MB #Memory Used# [2025-01-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:25:05 [end_date_ymd] => 2025-01-10 20:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:25:05' and `end` < '2025-01-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-01-10 20:25:19] Production.INFO: count ==1904 [2025-01-10 20:25:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:25:05 - End Time 2025-01-10 20:25:05 [2025-01-10 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219346', 'tblTempUsageDetail_20' ) start [2025-01-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219346', 'tblTempUsageDetail_20' ) end [2025-01-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219346', 'tblTempVendorCDR_20' ) start [2025-01-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219346', 'tblTempVendorCDR_20' ) end [2025-01-10 20:25:19] Production.INFO: ProcessCDR(1,14219346,1,1,2) [2025-01-10 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219346', 'tblTempUsageDetail_20' ) start [2025-01-10 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219346', 'tblTempUsageDetail_20' ) end [2025-01-10 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:25:23] Production.INFO: ==25153== Releasing lock... [2025-01-10 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:25:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-10 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:26:05 [end_date_ymd] => 2025-01-10 20:26:05 [RateCDR] => 1 ) [2025-01-10 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:26:05' and `end` < '2025-01-10 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:26:18] Production.INFO: count ==1905 [2025-01-10 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:26:05 - End Time 2025-01-10 20:26:05 [2025-01-10 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219351', 'tblTempUsageDetail_20' ) start [2025-01-10 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219351', 'tblTempUsageDetail_20' ) end [2025-01-10 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219351', 'tblTempVendorCDR_20' ) start [2025-01-10 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219351', 'tblTempVendorCDR_20' ) end [2025-01-10 20:26:18] Production.INFO: ProcessCDR(1,14219351,1,1,2) [2025-01-10 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219351', 'tblTempUsageDetail_20' ) start [2025-01-10 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219351', 'tblTempUsageDetail_20' ) end [2025-01-10 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:26:23] Production.INFO: ==25222== Releasing lock... [2025-01-10 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:26:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:27:05 [end_date_ymd] => 2025-01-10 20:27:05 [RateCDR] => 1 ) [2025-01-10 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:27:05' and `end` < '2025-01-10 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:27:20] Production.INFO: count ==1897 [2025-01-10 20:27:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:27:05 - End Time 2025-01-10 20:27:05 [2025-01-10 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219356', 'tblTempUsageDetail_20' ) start [2025-01-10 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219356', 'tblTempUsageDetail_20' ) end [2025-01-10 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219356', 'tblTempVendorCDR_20' ) start [2025-01-10 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219356', 'tblTempVendorCDR_20' ) end [2025-01-10 20:27:20] Production.INFO: ProcessCDR(1,14219356,1,1,2) [2025-01-10 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219356', 'tblTempUsageDetail_20' ) start [2025-01-10 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219356', 'tblTempUsageDetail_20' ) end [2025-01-10 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:27:23] Production.INFO: ==25294== Releasing lock... [2025-01-10 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:27:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:28:04 [end_date_ymd] => 2025-01-10 20:28:04 [RateCDR] => 1 ) [2025-01-10 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:28:04' and `end` < '2025-01-10 20: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-01-10 20:28:18] Production.INFO: count ==1894 [2025-01-10 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:28:04 - End Time 2025-01-10 20:28:04 [2025-01-10 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219361', 'tblTempUsageDetail_20' ) start [2025-01-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219361', 'tblTempUsageDetail_20' ) end [2025-01-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219361', 'tblTempVendorCDR_20' ) start [2025-01-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219361', 'tblTempVendorCDR_20' ) end [2025-01-10 20:28:18] Production.INFO: ProcessCDR(1,14219361,1,1,2) [2025-01-10 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219361', 'tblTempUsageDetail_20' ) start [2025-01-10 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219361', 'tblTempUsageDetail_20' ) end [2025-01-10 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:28:21] Production.INFO: ==25363== Releasing lock... [2025-01-10 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:28:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:29:05 [end_date_ymd] => 2025-01-10 20:29:05 [RateCDR] => 1 ) [2025-01-10 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:29:05' and `end` < '2025-01-10 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:29:18] Production.INFO: count ==1882 [2025-01-10 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:29:05 - End Time 2025-01-10 20:29:05 [2025-01-10 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219366', 'tblTempUsageDetail_20' ) start [2025-01-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219366', 'tblTempUsageDetail_20' ) end [2025-01-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219366', 'tblTempVendorCDR_20' ) start [2025-01-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219366', 'tblTempVendorCDR_20' ) end [2025-01-10 20:29:18] Production.INFO: ProcessCDR(1,14219366,1,1,2) [2025-01-10 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219366', 'tblTempUsageDetail_20' ) start [2025-01-10 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219366', 'tblTempUsageDetail_20' ) end [2025-01-10 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:29:21] Production.INFO: ==25439== Releasing lock... [2025-01-10 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:29:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:30:05 [end_date_ymd] => 2025-01-10 20:30:05 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:30:05' and `end` < '2025-01-10 20: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-01-10 20:30:18] Production.INFO: count ==1878 [2025-01-10 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:30:05 - End Time 2025-01-10 20:30:05 [2025-01-10 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219372', 'tblTempUsageDetail_20' ) start [2025-01-10 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219372', 'tblTempUsageDetail_20' ) end [2025-01-10 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219372', 'tblTempVendorCDR_20' ) start [2025-01-10 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219372', 'tblTempVendorCDR_20' ) end [2025-01-10 20:30:18] Production.INFO: ProcessCDR(1,14219372,1,1,2) [2025-01-10 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219372', 'tblTempUsageDetail_20' ) start [2025-01-10 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219372', 'tblTempUsageDetail_20' ) end [2025-01-10 20:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:30:21] Production.INFO: ==25511== Releasing lock... [2025-01-10 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:30:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:31:05 [end_date_ymd] => 2025-01-10 20:31:05 [RateCDR] => 1 ) [2025-01-10 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:31:05' and `end` < '2025-01-10 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:31:18] Production.INFO: count ==1857 [2025-01-10 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:31:05 - End Time 2025-01-10 20:31:05 [2025-01-10 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219377', 'tblTempUsageDetail_20' ) start [2025-01-10 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219377', 'tblTempUsageDetail_20' ) end [2025-01-10 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219377', 'tblTempVendorCDR_20' ) start [2025-01-10 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219377', 'tblTempVendorCDR_20' ) end [2025-01-10 20:31:18] Production.INFO: ProcessCDR(1,14219377,1,1,2) [2025-01-10 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219377', 'tblTempUsageDetail_20' ) start [2025-01-10 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219377', 'tblTempUsageDetail_20' ) end [2025-01-10 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:31:21] Production.INFO: ==25585== Releasing lock... [2025-01-10 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:31:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:32:04 [end_date_ymd] => 2025-01-10 20:32:04 [RateCDR] => 1 ) [2025-01-10 20:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:32:04' and `end` < '2025-01-10 20:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:32:18] Production.INFO: count ==1855 [2025-01-10 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:32:04 - End Time 2025-01-10 20:32:04 [2025-01-10 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219382', 'tblTempUsageDetail_20' ) start [2025-01-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219382', 'tblTempUsageDetail_20' ) end [2025-01-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219382', 'tblTempVendorCDR_20' ) start [2025-01-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219382', 'tblTempVendorCDR_20' ) end [2025-01-10 20:32:18] Production.INFO: ProcessCDR(1,14219382,1,1,2) [2025-01-10 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219382', 'tblTempUsageDetail_20' ) start [2025-01-10 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219382', 'tblTempUsageDetail_20' ) end [2025-01-10 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:32:21] Production.INFO: ==25660== Releasing lock... [2025-01-10 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:32:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:33:05 [end_date_ymd] => 2025-01-10 20:33:05 [RateCDR] => 1 ) [2025-01-10 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:33:05' and `end` < '2025-01-10 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:33:19] Production.INFO: count ==1848 [2025-01-10 20:33:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:33:05 - End Time 2025-01-10 20:33:05 [2025-01-10 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219387', 'tblTempUsageDetail_20' ) start [2025-01-10 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219387', 'tblTempUsageDetail_20' ) end [2025-01-10 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219387', 'tblTempVendorCDR_20' ) start [2025-01-10 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219387', 'tblTempVendorCDR_20' ) end [2025-01-10 20:33:20] Production.INFO: ProcessCDR(1,14219387,1,1,2) [2025-01-10 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219387', 'tblTempUsageDetail_20' ) start [2025-01-10 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219387', 'tblTempUsageDetail_20' ) end [2025-01-10 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:33:24] Production.INFO: ==25733== Releasing lock... [2025-01-10 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:33:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-10 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:34:04 [end_date_ymd] => 2025-01-10 20:34:04 [RateCDR] => 1 ) [2025-01-10 20:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:34:04' and `end` < '2025-01-10 20:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:34:18] Production.INFO: count ==1837 [2025-01-10 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:34:04 - End Time 2025-01-10 20:34:04 [2025-01-10 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219392', 'tblTempUsageDetail_20' ) start [2025-01-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219392', 'tblTempUsageDetail_20' ) end [2025-01-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219392', 'tblTempVendorCDR_20' ) start [2025-01-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219392', 'tblTempVendorCDR_20' ) end [2025-01-10 20:34:18] Production.INFO: ProcessCDR(1,14219392,1,1,2) [2025-01-10 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219392', 'tblTempUsageDetail_20' ) start [2025-01-10 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219392', 'tblTempUsageDetail_20' ) end [2025-01-10 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:34:21] Production.INFO: ==25842== Releasing lock... [2025-01-10 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:34:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:35:05 [end_date_ymd] => 2025-01-10 20:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:35:05' and `end` < '2025-01-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-01-10 20:35:18] Production.INFO: count ==1833 [2025-01-10 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:35:05 - End Time 2025-01-10 20:35:05 [2025-01-10 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219397', 'tblTempUsageDetail_20' ) start [2025-01-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219397', 'tblTempUsageDetail_20' ) end [2025-01-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219397', 'tblTempVendorCDR_20' ) start [2025-01-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219397', 'tblTempVendorCDR_20' ) end [2025-01-10 20:35:19] Production.INFO: ProcessCDR(1,14219397,1,1,2) [2025-01-10 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219397', 'tblTempUsageDetail_20' ) start [2025-01-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219397', 'tblTempUsageDetail_20' ) end [2025-01-10 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:35:22] Production.INFO: ==25914== Releasing lock... [2025-01-10 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:35:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:36:05 [end_date_ymd] => 2025-01-10 20:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:36:05' and `end` < '2025-01-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-01-10 20:36:19] Production.INFO: count ==1824 [2025-01-10 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:36:05 - End Time 2025-01-10 20:36:05 [2025-01-10 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219402', 'tblTempUsageDetail_20' ) start [2025-01-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219402', 'tblTempUsageDetail_20' ) end [2025-01-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219402', 'tblTempVendorCDR_20' ) start [2025-01-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219402', 'tblTempVendorCDR_20' ) end [2025-01-10 20:36:19] Production.INFO: ProcessCDR(1,14219402,1,1,2) [2025-01-10 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219402', 'tblTempUsageDetail_20' ) start [2025-01-10 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219402', 'tblTempUsageDetail_20' ) end [2025-01-10 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:36:22] Production.INFO: ==25984== Releasing lock... [2025-01-10 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-10 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:37:05 [end_date_ymd] => 2025-01-10 20:37:05 [RateCDR] => 1 ) [2025-01-10 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:37:05' and `end` < '2025-01-10 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:37:18] Production.INFO: count ==1811 [2025-01-10 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:37:05 - End Time 2025-01-10 20:37:05 [2025-01-10 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219407', 'tblTempUsageDetail_20' ) start [2025-01-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219407', 'tblTempUsageDetail_20' ) end [2025-01-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219407', 'tblTempVendorCDR_20' ) start [2025-01-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219407', 'tblTempVendorCDR_20' ) end [2025-01-10 20:37:18] Production.INFO: ProcessCDR(1,14219407,1,1,2) [2025-01-10 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219407', 'tblTempUsageDetail_20' ) start [2025-01-10 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219407', 'tblTempUsageDetail_20' ) end [2025-01-10 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:37:21] Production.INFO: ==26054== Releasing lock... [2025-01-10 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:37:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:38:05 [end_date_ymd] => 2025-01-10 20:38:05 [RateCDR] => 1 ) [2025-01-10 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:38:05' and `end` < '2025-01-10 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:38:18] Production.INFO: count ==1808 [2025-01-10 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:38:05 - End Time 2025-01-10 20:38:05 [2025-01-10 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219412', 'tblTempUsageDetail_20' ) start [2025-01-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219412', 'tblTempUsageDetail_20' ) end [2025-01-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219412', 'tblTempVendorCDR_20' ) start [2025-01-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219412', 'tblTempVendorCDR_20' ) end [2025-01-10 20:38:18] Production.INFO: ProcessCDR(1,14219412,1,1,2) [2025-01-10 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219412', 'tblTempUsageDetail_20' ) start [2025-01-10 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219412', 'tblTempUsageDetail_20' ) end [2025-01-10 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:38:23] Production.INFO: ==26125== Releasing lock... [2025-01-10 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:38:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-10 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:39:05 [end_date_ymd] => 2025-01-10 20:39:05 [RateCDR] => 1 ) [2025-01-10 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:39:05' and `end` < '2025-01-10 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:39:20] Production.INFO: count ==1803 [2025-01-10 20:39:21] Production.ERROR: pbx CDR StartTime 2025-01-10 17:39:05 - End Time 2025-01-10 20:39:05 [2025-01-10 20:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219417', 'tblTempUsageDetail_20' ) start [2025-01-10 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219417', 'tblTempUsageDetail_20' ) end [2025-01-10 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219417', 'tblTempVendorCDR_20' ) start [2025-01-10 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219417', 'tblTempVendorCDR_20' ) end [2025-01-10 20:39:21] Production.INFO: ProcessCDR(1,14219417,1,1,2) [2025-01-10 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219417', 'tblTempUsageDetail_20' ) start [2025-01-10 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219417', 'tblTempUsageDetail_20' ) end [2025-01-10 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:39:24] Production.INFO: ==26197== Releasing lock... [2025-01-10 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:39:24] Production.INFO: 41 MB #Memory Used# [2025-01-10 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:40:05 [end_date_ymd] => 2025-01-10 20:40:05 [RateCDR] => 1 ) [2025-01-10 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:40:05' and `end` < '2025-01-10 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:40:18] Production.INFO: count ==1796 [2025-01-10 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:40:05 - End Time 2025-01-10 20:40:05 [2025-01-10 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219423', 'tblTempUsageDetail_20' ) start [2025-01-10 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219423', 'tblTempUsageDetail_20' ) end [2025-01-10 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219423', 'tblTempVendorCDR_20' ) start [2025-01-10 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219423', 'tblTempVendorCDR_20' ) end [2025-01-10 20:40:18] Production.INFO: ProcessCDR(1,14219423,1,1,2) [2025-01-10 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219423', 'tblTempUsageDetail_20' ) start [2025-01-10 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219423', 'tblTempUsageDetail_20' ) end [2025-01-10 20:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:40:21] Production.INFO: ==26271== Releasing lock... [2025-01-10 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:40:21] Production.INFO: 41 MB #Memory Used# [2025-01-10 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:41:05 [end_date_ymd] => 2025-01-10 20:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:41:05' and `end` < '2025-01-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-01-10 20:41:18] Production.INFO: count ==1750 [2025-01-10 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:41:05 - End Time 2025-01-10 20:41:05 [2025-01-10 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219428', 'tblTempUsageDetail_20' ) start [2025-01-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219428', 'tblTempUsageDetail_20' ) end [2025-01-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219428', 'tblTempVendorCDR_20' ) start [2025-01-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219428', 'tblTempVendorCDR_20' ) end [2025-01-10 20:41:18] Production.INFO: ProcessCDR(1,14219428,1,1,2) [2025-01-10 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219428', 'tblTempUsageDetail_20' ) start [2025-01-10 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219428', 'tblTempUsageDetail_20' ) end [2025-01-10 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:41:21] Production.INFO: ==26345== Releasing lock... [2025-01-10 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:41:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:42:05 [end_date_ymd] => 2025-01-10 20:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:42:05' and `end` < '2025-01-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-01-10 20:42:18] Production.INFO: count ==1746 [2025-01-10 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:42:05 - End Time 2025-01-10 20:42:05 [2025-01-10 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219433', 'tblTempUsageDetail_20' ) start [2025-01-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219433', 'tblTempUsageDetail_20' ) end [2025-01-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219433', 'tblTempVendorCDR_20' ) start [2025-01-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219433', 'tblTempVendorCDR_20' ) end [2025-01-10 20:42:18] Production.INFO: ProcessCDR(1,14219433,1,1,2) [2025-01-10 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219433', 'tblTempUsageDetail_20' ) start [2025-01-10 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219433', 'tblTempUsageDetail_20' ) end [2025-01-10 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:42:22] Production.INFO: ==26418== Releasing lock... [2025-01-10 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:42:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:43:05 [end_date_ymd] => 2025-01-10 20:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:43:05' and `end` < '2025-01-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-01-10 20:43:19] Production.INFO: count ==1743 [2025-01-10 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:43:05 - End Time 2025-01-10 20:43:05 [2025-01-10 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219438', 'tblTempUsageDetail_20' ) start [2025-01-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219438', 'tblTempUsageDetail_20' ) end [2025-01-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219438', 'tblTempVendorCDR_20' ) start [2025-01-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219438', 'tblTempVendorCDR_20' ) end [2025-01-10 20:43:19] Production.INFO: ProcessCDR(1,14219438,1,1,2) [2025-01-10 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219438', 'tblTempUsageDetail_20' ) start [2025-01-10 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219438', 'tblTempUsageDetail_20' ) end [2025-01-10 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:43:24] Production.INFO: ==26491== Releasing lock... [2025-01-10 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:43:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:44:05 [end_date_ymd] => 2025-01-10 20:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:44:05' and `end` < '2025-01-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-01-10 20:44:20] Production.INFO: count ==1739 [2025-01-10 20:44:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:44:05 - End Time 2025-01-10 20:44:05 [2025-01-10 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219443', 'tblTempUsageDetail_20' ) start [2025-01-10 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219443', 'tblTempUsageDetail_20' ) end [2025-01-10 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219443', 'tblTempVendorCDR_20' ) start [2025-01-10 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219443', 'tblTempVendorCDR_20' ) end [2025-01-10 20:44:20] Production.INFO: ProcessCDR(1,14219443,1,1,2) [2025-01-10 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219443', 'tblTempUsageDetail_20' ) start [2025-01-10 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219443', 'tblTempUsageDetail_20' ) end [2025-01-10 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:44:24] Production.INFO: ==26561== Releasing lock... [2025-01-10 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:44:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-10 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:45:05 [end_date_ymd] => 2025-01-10 20:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:45:05' and `end` < '2025-01-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-01-10 20:45:19] Production.INFO: count ==1736 [2025-01-10 20:45:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:45:05 - End Time 2025-01-10 20:45:05 [2025-01-10 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219448', 'tblTempUsageDetail_20' ) start [2025-01-10 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219448', 'tblTempUsageDetail_20' ) end [2025-01-10 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219448', 'tblTempVendorCDR_20' ) start [2025-01-10 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219448', 'tblTempVendorCDR_20' ) end [2025-01-10 20:45:20] Production.INFO: ProcessCDR(1,14219448,1,1,2) [2025-01-10 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219448', 'tblTempUsageDetail_20' ) start [2025-01-10 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219448', 'tblTempUsageDetail_20' ) end [2025-01-10 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:45:23] Production.INFO: ==26637== Releasing lock... [2025-01-10 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:45:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-10 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:46:05 [end_date_ymd] => 2025-01-10 20:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:46:05' and `end` < '2025-01-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-01-10 20:46:19] Production.INFO: count ==1745 [2025-01-10 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:46:05 - End Time 2025-01-10 20:46:05 [2025-01-10 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219453', 'tblTempUsageDetail_20' ) start [2025-01-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219453', 'tblTempUsageDetail_20' ) end [2025-01-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219453', 'tblTempVendorCDR_20' ) start [2025-01-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219453', 'tblTempVendorCDR_20' ) end [2025-01-10 20:46:19] Production.INFO: ProcessCDR(1,14219453,1,1,2) [2025-01-10 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219453', 'tblTempUsageDetail_20' ) start [2025-01-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219453', 'tblTempUsageDetail_20' ) end [2025-01-10 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:46:22] Production.INFO: ==26710== Releasing lock... [2025-01-10 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:46:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:47:05 [end_date_ymd] => 2025-01-10 20:47:05 [RateCDR] => 1 ) [2025-01-10 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:47:05' and `end` < '2025-01-10 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:47:19] Production.INFO: count ==1744 [2025-01-10 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:47:05 - End Time 2025-01-10 20:47:05 [2025-01-10 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219458', 'tblTempUsageDetail_20' ) start [2025-01-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219458', 'tblTempUsageDetail_20' ) end [2025-01-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219458', 'tblTempVendorCDR_20' ) start [2025-01-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219458', 'tblTempVendorCDR_20' ) end [2025-01-10 20:47:19] Production.INFO: ProcessCDR(1,14219458,1,1,2) [2025-01-10 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219458', 'tblTempUsageDetail_20' ) start [2025-01-10 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219458', 'tblTempUsageDetail_20' ) end [2025-01-10 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:47:22] Production.INFO: ==26783== Releasing lock... [2025-01-10 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:48:05 [end_date_ymd] => 2025-01-10 20:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:48:05' and `end` < '2025-01-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-01-10 20:48:18] Production.INFO: count ==1743 [2025-01-10 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:48:05 - End Time 2025-01-10 20:48:05 [2025-01-10 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219463', 'tblTempUsageDetail_20' ) start [2025-01-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219463', 'tblTempUsageDetail_20' ) end [2025-01-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219463', 'tblTempVendorCDR_20' ) start [2025-01-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219463', 'tblTempVendorCDR_20' ) end [2025-01-10 20:48:19] Production.INFO: ProcessCDR(1,14219463,1,1,2) [2025-01-10 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219463', 'tblTempUsageDetail_20' ) start [2025-01-10 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219463', 'tblTempUsageDetail_20' ) end [2025-01-10 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:48:24] Production.INFO: ==26855== Releasing lock... [2025-01-10 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-10 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:49:05 [end_date_ymd] => 2025-01-10 20:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:49:05' and `end` < '2025-01-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-01-10 20:49:19] Production.INFO: count ==1740 [2025-01-10 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:49:05 - End Time 2025-01-10 20:49:05 [2025-01-10 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219468', 'tblTempUsageDetail_20' ) start [2025-01-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219468', 'tblTempUsageDetail_20' ) end [2025-01-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219468', 'tblTempVendorCDR_20' ) start [2025-01-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219468', 'tblTempVendorCDR_20' ) end [2025-01-10 20:49:19] Production.INFO: ProcessCDR(1,14219468,1,1,2) [2025-01-10 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219468', 'tblTempUsageDetail_20' ) start [2025-01-10 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219468', 'tblTempUsageDetail_20' ) end [2025-01-10 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:49:23] Production.INFO: ==26926== Releasing lock... [2025-01-10 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-10 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:50:05 [end_date_ymd] => 2025-01-10 20:50:05 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:50:05' and `end` < '2025-01-10 20: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-01-10 20:50:20] Production.INFO: count ==1729 [2025-01-10 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:50:05 - End Time 2025-01-10 20:50:05 [2025-01-10 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219473', 'tblTempUsageDetail_20' ) start [2025-01-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219473', 'tblTempUsageDetail_20' ) end [2025-01-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219473', 'tblTempVendorCDR_20' ) start [2025-01-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219473', 'tblTempVendorCDR_20' ) end [2025-01-10 20:50:20] Production.INFO: ProcessCDR(1,14219473,1,1,2) [2025-01-10 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219473', 'tblTempUsageDetail_20' ) start [2025-01-10 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219473', 'tblTempUsageDetail_20' ) end [2025-01-10 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:50:24] Production.INFO: ==27041== Releasing lock... [2025-01-10 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:50:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-10 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:51:05 [end_date_ymd] => 2025-01-10 20:51:05 [RateCDR] => 1 ) [2025-01-10 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:51:05' and `end` < '2025-01-10 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:51:19] Production.INFO: count ==1658 [2025-01-10 20:51:20] Production.ERROR: pbx CDR StartTime 2025-01-10 17:51:05 - End Time 2025-01-10 20:51:05 [2025-01-10 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219479', 'tblTempUsageDetail_20' ) start [2025-01-10 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219479', 'tblTempUsageDetail_20' ) end [2025-01-10 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219479', 'tblTempVendorCDR_20' ) start [2025-01-10 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219479', 'tblTempVendorCDR_20' ) end [2025-01-10 20:51:20] Production.INFO: ProcessCDR(1,14219479,1,1,2) [2025-01-10 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219479', 'tblTempUsageDetail_20' ) start [2025-01-10 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219479', 'tblTempUsageDetail_20' ) end [2025-01-10 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:51:24] Production.INFO: ==27115== Releasing lock... [2025-01-10 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:51:24] Production.INFO: 40 MB #Memory Used# [2025-01-10 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:52:04 [end_date_ymd] => 2025-01-10 20:52:04 [RateCDR] => 1 ) [2025-01-10 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:52:04' and `end` < '2025-01-10 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:52:18] Production.INFO: count ==1646 [2025-01-10 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:52:04 - End Time 2025-01-10 20:52:04 [2025-01-10 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219484', 'tblTempUsageDetail_20' ) start [2025-01-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219484', 'tblTempUsageDetail_20' ) end [2025-01-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219484', 'tblTempVendorCDR_20' ) start [2025-01-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219484', 'tblTempVendorCDR_20' ) end [2025-01-10 20:52:18] Production.INFO: ProcessCDR(1,14219484,1,1,2) [2025-01-10 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219484', 'tblTempUsageDetail_20' ) start [2025-01-10 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219484', 'tblTempUsageDetail_20' ) end [2025-01-10 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:52:21] Production.INFO: ==27185== Releasing lock... [2025-01-10 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:52:21] Production.INFO: 40 MB #Memory Used# [2025-01-10 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:53:05 [end_date_ymd] => 2025-01-10 20:53:05 [RateCDR] => 1 ) [2025-01-10 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:53:05' and `end` < '2025-01-10 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:53:18] Production.INFO: count ==1644 [2025-01-10 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 17:53:05 - End Time 2025-01-10 20:53:05 [2025-01-10 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219489', 'tblTempUsageDetail_20' ) start [2025-01-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219489', 'tblTempUsageDetail_20' ) end [2025-01-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219489', 'tblTempVendorCDR_20' ) start [2025-01-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219489', 'tblTempVendorCDR_20' ) end [2025-01-10 20:53:19] Production.INFO: ProcessCDR(1,14219489,1,1,2) [2025-01-10 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219489', 'tblTempUsageDetail_20' ) start [2025-01-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219489', 'tblTempUsageDetail_20' ) end [2025-01-10 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:53:22] Production.INFO: ==27257== Releasing lock... [2025-01-10 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:53:22] Production.INFO: 40 MB #Memory Used# [2025-01-10 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:54:05 [end_date_ymd] => 2025-01-10 20:54:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:54:05' and `end` < '2025-01-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-01-10 20:54:18] Production.INFO: count ==1643 [2025-01-10 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:54:05 - End Time 2025-01-10 20:54:05 [2025-01-10 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219494', 'tblTempUsageDetail_20' ) start [2025-01-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219494', 'tblTempUsageDetail_20' ) end [2025-01-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219494', 'tblTempVendorCDR_20' ) start [2025-01-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219494', 'tblTempVendorCDR_20' ) end [2025-01-10 20:54:18] Production.INFO: ProcessCDR(1,14219494,1,1,2) [2025-01-10 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219494', 'tblTempUsageDetail_20' ) start [2025-01-10 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219494', 'tblTempUsageDetail_20' ) end [2025-01-10 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:54:21] Production.INFO: ==27327== Releasing lock... [2025-01-10 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:54:21] Production.INFO: 40 MB #Memory Used# [2025-01-10 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:55:05 [end_date_ymd] => 2025-01-10 20:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:55:05' and `end` < '2025-01-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-01-10 20:55:18] Production.INFO: count ==1626 [2025-01-10 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:55:05 - End Time 2025-01-10 20:55:05 [2025-01-10 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219499', 'tblTempUsageDetail_20' ) start [2025-01-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219499', 'tblTempUsageDetail_20' ) end [2025-01-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219499', 'tblTempVendorCDR_20' ) start [2025-01-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219499', 'tblTempVendorCDR_20' ) end [2025-01-10 20:55:18] Production.INFO: ProcessCDR(1,14219499,1,1,2) [2025-01-10 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219499', 'tblTempUsageDetail_20' ) start [2025-01-10 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219499', 'tblTempUsageDetail_20' ) end [2025-01-10 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:55:21] Production.INFO: ==27399== Releasing lock... [2025-01-10 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:56:05 [end_date_ymd] => 2025-01-10 20:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:56:05' and `end` < '2025-01-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-01-10 20:56:21] Production.INFO: count ==1626 [2025-01-10 20:56:21] Production.ERROR: pbx CDR StartTime 2025-01-10 17:56:05 - End Time 2025-01-10 20:56:05 [2025-01-10 20:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219504', 'tblTempUsageDetail_20' ) start [2025-01-10 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219504', 'tblTempUsageDetail_20' ) end [2025-01-10 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219504', 'tblTempVendorCDR_20' ) start [2025-01-10 20:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219504', 'tblTempVendorCDR_20' ) end [2025-01-10 20:56:21] Production.INFO: ProcessCDR(1,14219504,1,1,2) [2025-01-10 20:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219504', 'tblTempUsageDetail_20' ) start [2025-01-10 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219504', 'tblTempUsageDetail_20' ) end [2025-01-10 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:56:24] Production.INFO: ==27470== Releasing lock... [2025-01-10 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:56:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:57:04 [end_date_ymd] => 2025-01-10 20:57:04 [RateCDR] => 1 ) [2025-01-10 20:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 17:57:04' and `end` < '2025-01-10 20:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 20:57:18] Production.INFO: count ==1618 [2025-01-10 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:57:04 - End Time 2025-01-10 20:57:04 [2025-01-10 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219509', 'tblTempUsageDetail_20' ) start [2025-01-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219509', 'tblTempUsageDetail_20' ) end [2025-01-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219509', 'tblTempVendorCDR_20' ) start [2025-01-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219509', 'tblTempVendorCDR_20' ) end [2025-01-10 20:57:18] Production.INFO: ProcessCDR(1,14219509,1,1,2) [2025-01-10 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219509', 'tblTempUsageDetail_20' ) start [2025-01-10 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219509', 'tblTempUsageDetail_20' ) end [2025-01-10 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:57:21] Production.INFO: ==27541== Releasing lock... [2025-01-10 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:57:21] Production.INFO: 40 MB #Memory Used# [2025-01-10 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:58:05 [end_date_ymd] => 2025-01-10 20:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 17:58:05' and `end` < '2025-01-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-01-10 20:58:18] Production.INFO: count ==1607 [2025-01-10 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:58:05 - End Time 2025-01-10 20:58:05 [2025-01-10 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219514', 'tblTempUsageDetail_20' ) start [2025-01-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219514', 'tblTempUsageDetail_20' ) end [2025-01-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219514', 'tblTempVendorCDR_20' ) start [2025-01-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219514', 'tblTempVendorCDR_20' ) end [2025-01-10 20:58:18] Production.INFO: ProcessCDR(1,14219514,1,1,2) [2025-01-10 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219514', 'tblTempUsageDetail_20' ) start [2025-01-10 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219514', 'tblTempUsageDetail_20' ) end [2025-01-10 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:58:21] Production.INFO: ==27619== Releasing lock... [2025-01-10 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:58:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 17:59:04 [end_date_ymd] => 2025-01-10 20:59:04 [RateCDR] => 1 ) [2025-01-10 20: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-01-10 17:59:04' and `end` < '2025-01-10 20: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-01-10 20:59:18] Production.INFO: count ==1607 [2025-01-10 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 17:59:04 - End Time 2025-01-10 20:59:04 [2025-01-10 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219519', 'tblTempUsageDetail_20' ) start [2025-01-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219519', 'tblTempUsageDetail_20' ) end [2025-01-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219519', 'tblTempVendorCDR_20' ) start [2025-01-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219519', 'tblTempVendorCDR_20' ) end [2025-01-10 20:59:18] Production.INFO: ProcessCDR(1,14219519,1,1,2) [2025-01-10 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219519', 'tblTempUsageDetail_20' ) start [2025-01-10 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219519', 'tblTempUsageDetail_20' ) end [2025-01-10 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 20:59:21] Production.INFO: ==27692== Releasing lock... [2025-01-10 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 20:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-10 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:00:05 [end_date_ymd] => 2025-01-10 21:00:05 [RateCDR] => 1 ) [2025-01-10 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:00:05' and `end` < '2025-01-10 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:00:19] Production.INFO: count ==1599 [2025-01-10 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:00:05 - End Time 2025-01-10 21:00:05 [2025-01-10 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219524', 'tblTempUsageDetail_20' ) start [2025-01-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219524', 'tblTempUsageDetail_20' ) end [2025-01-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219524', 'tblTempVendorCDR_20' ) start [2025-01-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219524', 'tblTempVendorCDR_20' ) end [2025-01-10 21:00:19] Production.INFO: ProcessCDR(1,14219524,1,1,2) [2025-01-10 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219524', 'tblTempUsageDetail_20' ) start [2025-01-10 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219524', 'tblTempUsageDetail_20' ) end [2025-01-10 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:00:22] Production.INFO: ==27764== Releasing lock... [2025-01-10 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:00:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-10 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:01:05 [end_date_ymd] => 2025-01-10 21:01:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:01:05' and `end` < '2025-01-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-01-10 21:01:18] Production.INFO: count ==1563 [2025-01-10 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:01:05 - End Time 2025-01-10 21:01:05 [2025-01-10 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219530', 'tblTempUsageDetail_20' ) start [2025-01-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219530', 'tblTempUsageDetail_20' ) end [2025-01-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219530', 'tblTempVendorCDR_20' ) start [2025-01-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219530', 'tblTempVendorCDR_20' ) end [2025-01-10 21:01:19] Production.INFO: ProcessCDR(1,14219530,1,1,2) [2025-01-10 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219530', 'tblTempUsageDetail_20' ) start [2025-01-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219530', 'tblTempUsageDetail_20' ) end [2025-01-10 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:01:22] Production.INFO: ==27850== Releasing lock... [2025-01-10 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:02:05 [end_date_ymd] => 2025-01-10 21:02:05 [RateCDR] => 1 ) [2025-01-10 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:02:05' and `end` < '2025-01-10 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:02:19] Production.INFO: count ==1558 [2025-01-10 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:02:05 - End Time 2025-01-10 21:02:05 [2025-01-10 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219535', 'tblTempUsageDetail_20' ) start [2025-01-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219535', 'tblTempUsageDetail_20' ) end [2025-01-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219535', 'tblTempVendorCDR_20' ) start [2025-01-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219535', 'tblTempVendorCDR_20' ) end [2025-01-10 21:02:19] Production.INFO: ProcessCDR(1,14219535,1,1,2) [2025-01-10 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219535', 'tblTempUsageDetail_20' ) start [2025-01-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219535', 'tblTempUsageDetail_20' ) end [2025-01-10 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:02:22] Production.INFO: ==27920== Releasing lock... [2025-01-10 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:02:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:03:04 [end_date_ymd] => 2025-01-10 21:03:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:03:04' and `end` < '2025-01-10 21: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-01-10 21:03:18] Production.INFO: count ==1553 [2025-01-10 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:03:04 - End Time 2025-01-10 21:03:04 [2025-01-10 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219540', 'tblTempUsageDetail_20' ) start [2025-01-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219540', 'tblTempUsageDetail_20' ) end [2025-01-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219540', 'tblTempVendorCDR_20' ) start [2025-01-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219540', 'tblTempVendorCDR_20' ) end [2025-01-10 21:03:18] Production.INFO: ProcessCDR(1,14219540,1,1,2) [2025-01-10 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219540', 'tblTempUsageDetail_20' ) start [2025-01-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219540', 'tblTempUsageDetail_20' ) end [2025-01-10 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:03:22] Production.INFO: ==27990== Releasing lock... [2025-01-10 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:04:06 [end_date_ymd] => 2025-01-10 21:04:06 [RateCDR] => 1 ) [2025-01-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-01-10 18:04:06' and `end` < '2025-01-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-01-10 21:04:19] Production.INFO: count ==1541 [2025-01-10 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:04:06 - End Time 2025-01-10 21:04:06 [2025-01-10 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219545', 'tblTempUsageDetail_20' ) start [2025-01-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219545', 'tblTempUsageDetail_20' ) end [2025-01-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219545', 'tblTempVendorCDR_20' ) start [2025-01-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219545', 'tblTempVendorCDR_20' ) end [2025-01-10 21:04:19] Production.INFO: ProcessCDR(1,14219545,1,1,2) [2025-01-10 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219545', 'tblTempUsageDetail_20' ) start [2025-01-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219545', 'tblTempUsageDetail_20' ) end [2025-01-10 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:04:22] Production.INFO: ==28062== Releasing lock... [2025-01-10 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:04:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:05:04 [end_date_ymd] => 2025-01-10 21:05:04 [RateCDR] => 1 ) [2025-01-10 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:05:04' and `end` < '2025-01-10 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:05:18] Production.INFO: count ==1538 [2025-01-10 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:05:04 - End Time 2025-01-10 21:05:04 [2025-01-10 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219550', 'tblTempUsageDetail_20' ) start [2025-01-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219550', 'tblTempUsageDetail_20' ) end [2025-01-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219550', 'tblTempVendorCDR_20' ) start [2025-01-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219550', 'tblTempVendorCDR_20' ) end [2025-01-10 21:05:18] Production.INFO: ProcessCDR(1,14219550,1,1,2) [2025-01-10 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219550', 'tblTempUsageDetail_20' ) start [2025-01-10 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219550', 'tblTempUsageDetail_20' ) end [2025-01-10 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:05:22] Production.INFO: ==28131== Releasing lock... [2025-01-10 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:05:22] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:06:04 [end_date_ymd] => 2025-01-10 21:06:04 [RateCDR] => 1 ) [2025-01-10 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:06:04' and `end` < '2025-01-10 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:06:18] Production.INFO: count ==1539 [2025-01-10 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:06:04 - End Time 2025-01-10 21:06:04 [2025-01-10 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219554', 'tblTempUsageDetail_20' ) start [2025-01-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219554', 'tblTempUsageDetail_20' ) end [2025-01-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219554', 'tblTempVendorCDR_20' ) start [2025-01-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219554', 'tblTempVendorCDR_20' ) end [2025-01-10 21:06:18] Production.INFO: ProcessCDR(1,14219554,1,1,2) [2025-01-10 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219554', 'tblTempUsageDetail_20' ) start [2025-01-10 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219554', 'tblTempUsageDetail_20' ) end [2025-01-10 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:06:23] Production.INFO: ==28240== Releasing lock... [2025-01-10 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:06:23] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:07:04 [end_date_ymd] => 2025-01-10 21:07:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:07:04' and `end` < '2025-01-10 21: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-01-10 21:07:18] Production.INFO: count ==1536 [2025-01-10 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:07:04 - End Time 2025-01-10 21:07:04 [2025-01-10 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219560', 'tblTempUsageDetail_20' ) start [2025-01-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219560', 'tblTempUsageDetail_20' ) end [2025-01-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219560', 'tblTempVendorCDR_20' ) start [2025-01-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219560', 'tblTempVendorCDR_20' ) end [2025-01-10 21:07:18] Production.INFO: ProcessCDR(1,14219560,1,1,2) [2025-01-10 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219560', 'tblTempUsageDetail_20' ) start [2025-01-10 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219560', 'tblTempUsageDetail_20' ) end [2025-01-10 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:07:23] Production.INFO: ==28309== Releasing lock... [2025-01-10 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:07:23] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:08:04 [end_date_ymd] => 2025-01-10 21:08:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:08:04' and `end` < '2025-01-10 21: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-01-10 21:08:18] Production.INFO: count ==1539 [2025-01-10 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:08:04 - End Time 2025-01-10 21:08:04 [2025-01-10 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219565', 'tblTempUsageDetail_20' ) start [2025-01-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219565', 'tblTempUsageDetail_20' ) end [2025-01-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219565', 'tblTempVendorCDR_20' ) start [2025-01-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219565', 'tblTempVendorCDR_20' ) end [2025-01-10 21:08:18] Production.INFO: ProcessCDR(1,14219565,1,1,2) [2025-01-10 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219565', 'tblTempUsageDetail_20' ) start [2025-01-10 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219565', 'tblTempUsageDetail_20' ) end [2025-01-10 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:08:23] Production.INFO: ==28393== Releasing lock... [2025-01-10 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:08:23] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:09:05 [end_date_ymd] => 2025-01-10 21:09:05 [RateCDR] => 1 ) [2025-01-10 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:09:05' and `end` < '2025-01-10 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:09:18] Production.INFO: count ==1537 [2025-01-10 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:09:05 - End Time 2025-01-10 21:09:05 [2025-01-10 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219570', 'tblTempUsageDetail_20' ) start [2025-01-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219570', 'tblTempUsageDetail_20' ) end [2025-01-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219570', 'tblTempVendorCDR_20' ) start [2025-01-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219570', 'tblTempVendorCDR_20' ) end [2025-01-10 21:09:18] Production.INFO: ProcessCDR(1,14219570,1,1,2) [2025-01-10 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219570', 'tblTempUsageDetail_20' ) start [2025-01-10 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219570', 'tblTempUsageDetail_20' ) end [2025-01-10 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:09:21] Production.INFO: ==28470== Releasing lock... [2025-01-10 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:09:21] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:10:05 [end_date_ymd] => 2025-01-10 21:10:05 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:10:05' and `end` < '2025-01-10 21: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-01-10 21:10:18] Production.INFO: count ==1536 [2025-01-10 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:10:05 - End Time 2025-01-10 21:10:05 [2025-01-10 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219576', 'tblTempUsageDetail_20' ) start [2025-01-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219576', 'tblTempUsageDetail_20' ) end [2025-01-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219576', 'tblTempVendorCDR_20' ) start [2025-01-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219576', 'tblTempVendorCDR_20' ) end [2025-01-10 21:10:19] Production.INFO: ProcessCDR(1,14219576,1,1,2) [2025-01-10 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219576', 'tblTempUsageDetail_20' ) start [2025-01-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219576', 'tblTempUsageDetail_20' ) end [2025-01-10 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:10:22] Production.INFO: ==28543== Releasing lock... [2025-01-10 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:10:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-10 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:11:05 [end_date_ymd] => 2025-01-10 21:11:05 [RateCDR] => 1 ) [2025-01-10 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:11:05' and `end` < '2025-01-10 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:11:19] Production.INFO: count ==1539 [2025-01-10 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:11:05 - End Time 2025-01-10 21:11:05 [2025-01-10 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219581', 'tblTempUsageDetail_20' ) start [2025-01-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219581', 'tblTempUsageDetail_20' ) end [2025-01-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219581', 'tblTempVendorCDR_20' ) start [2025-01-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219581', 'tblTempVendorCDR_20' ) end [2025-01-10 21:11:19] Production.INFO: ProcessCDR(1,14219581,1,1,2) [2025-01-10 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219581', 'tblTempUsageDetail_20' ) start [2025-01-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219581', 'tblTempUsageDetail_20' ) end [2025-01-10 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:11:22] Production.INFO: ==28618== Releasing lock... [2025-01-10 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:11:22] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:12:05 [end_date_ymd] => 2025-01-10 21:12:05 [RateCDR] => 1 ) [2025-01-10 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:12:05' and `end` < '2025-01-10 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:12:18] Production.INFO: count ==1541 [2025-01-10 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:12:05 - End Time 2025-01-10 21:12:05 [2025-01-10 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219586', 'tblTempUsageDetail_20' ) start [2025-01-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219586', 'tblTempUsageDetail_20' ) end [2025-01-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219586', 'tblTempVendorCDR_20' ) start [2025-01-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219586', 'tblTempVendorCDR_20' ) end [2025-01-10 21:12:18] Production.INFO: ProcessCDR(1,14219586,1,1,2) [2025-01-10 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219586', 'tblTempUsageDetail_20' ) start [2025-01-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219586', 'tblTempUsageDetail_20' ) end [2025-01-10 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:12:22] Production.INFO: ==28695== Releasing lock... [2025-01-10 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-10 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:13:05 [end_date_ymd] => 2025-01-10 21:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:13:05' and `end` < '2025-01-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-01-10 21:13:18] Production.INFO: count ==1540 [2025-01-10 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:13:05 - End Time 2025-01-10 21:13:05 [2025-01-10 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219591', 'tblTempUsageDetail_20' ) start [2025-01-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219591', 'tblTempUsageDetail_20' ) end [2025-01-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219591', 'tblTempVendorCDR_20' ) start [2025-01-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219591', 'tblTempVendorCDR_20' ) end [2025-01-10 21:13:19] Production.INFO: ProcessCDR(1,14219591,1,1,2) [2025-01-10 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219591', 'tblTempUsageDetail_20' ) start [2025-01-10 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219591', 'tblTempUsageDetail_20' ) end [2025-01-10 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:13:22] Production.INFO: ==28765== Releasing lock... [2025-01-10 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:13:22] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:14:05 [end_date_ymd] => 2025-01-10 21:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:14:05' and `end` < '2025-01-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-01-10 21:14:18] Production.INFO: count ==1529 [2025-01-10 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:14:05 - End Time 2025-01-10 21:14:05 [2025-01-10 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219596', 'tblTempUsageDetail_20' ) start [2025-01-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219596', 'tblTempUsageDetail_20' ) end [2025-01-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219596', 'tblTempVendorCDR_20' ) start [2025-01-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219596', 'tblTempVendorCDR_20' ) end [2025-01-10 21:14:18] Production.INFO: ProcessCDR(1,14219596,1,1,2) [2025-01-10 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219596', 'tblTempUsageDetail_20' ) start [2025-01-10 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219596', 'tblTempUsageDetail_20' ) end [2025-01-10 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:14:21] Production.INFO: ==28836== Releasing lock... [2025-01-10 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:14:21] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:15:04 [end_date_ymd] => 2025-01-10 21:15:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:15:04' and `end` < '2025-01-10 21: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-01-10 21:15:18] Production.INFO: count ==1520 [2025-01-10 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:15:04 - End Time 2025-01-10 21:15:04 [2025-01-10 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219601', 'tblTempUsageDetail_20' ) start [2025-01-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219601', 'tblTempUsageDetail_20' ) end [2025-01-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219601', 'tblTempVendorCDR_20' ) start [2025-01-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219601', 'tblTempVendorCDR_20' ) end [2025-01-10 21:15:18] Production.INFO: ProcessCDR(1,14219601,1,1,2) [2025-01-10 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219601', 'tblTempUsageDetail_20' ) start [2025-01-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219601', 'tblTempUsageDetail_20' ) end [2025-01-10 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:15:22] Production.INFO: ==28908== Releasing lock... [2025-01-10 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:15:22] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:16:05 [end_date_ymd] => 2025-01-10 21:16:05 [RateCDR] => 1 ) [2025-01-10 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:16:05' and `end` < '2025-01-10 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:16:18] Production.INFO: count ==1521 [2025-01-10 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:16:05 - End Time 2025-01-10 21:16:05 [2025-01-10 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219606', 'tblTempUsageDetail_20' ) start [2025-01-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219606', 'tblTempUsageDetail_20' ) end [2025-01-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219606', 'tblTempVendorCDR_20' ) start [2025-01-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219606', 'tblTempVendorCDR_20' ) end [2025-01-10 21:16:18] Production.INFO: ProcessCDR(1,14219606,1,1,2) [2025-01-10 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219606', 'tblTempUsageDetail_20' ) start [2025-01-10 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219606', 'tblTempUsageDetail_20' ) end [2025-01-10 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:16:23] Production.INFO: ==28980== Releasing lock... [2025-01-10 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:16:23] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:17:05 [end_date_ymd] => 2025-01-10 21:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:17:05' and `end` < '2025-01-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-01-10 21:17:19] Production.INFO: count ==1519 [2025-01-10 21:17:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:17:05 - End Time 2025-01-10 21:17:05 [2025-01-10 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219611', 'tblTempUsageDetail_20' ) start [2025-01-10 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219611', 'tblTempUsageDetail_20' ) end [2025-01-10 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219611', 'tblTempVendorCDR_20' ) start [2025-01-10 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219611', 'tblTempVendorCDR_20' ) end [2025-01-10 21:17:20] Production.INFO: ProcessCDR(1,14219611,1,1,2) [2025-01-10 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219611', 'tblTempUsageDetail_20' ) start [2025-01-10 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219611', 'tblTempUsageDetail_20' ) end [2025-01-10 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:17:24] Production.INFO: ==29050== Releasing lock... [2025-01-10 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:17:24] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:18:04 [end_date_ymd] => 2025-01-10 21:18:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:18:04' and `end` < '2025-01-10 21: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-01-10 21:18:18] Production.INFO: count ==1514 [2025-01-10 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:18:04 - End Time 2025-01-10 21:18:04 [2025-01-10 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219616', 'tblTempUsageDetail_20' ) start [2025-01-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219616', 'tblTempUsageDetail_20' ) end [2025-01-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219616', 'tblTempVendorCDR_20' ) start [2025-01-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219616', 'tblTempVendorCDR_20' ) end [2025-01-10 21:18:18] Production.INFO: ProcessCDR(1,14219616,1,1,2) [2025-01-10 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219616', 'tblTempUsageDetail_20' ) start [2025-01-10 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219616', 'tblTempUsageDetail_20' ) end [2025-01-10 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:18:21] Production.INFO: ==29122== Releasing lock... [2025-01-10 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:18:21] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:19:05 [end_date_ymd] => 2025-01-10 21:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:19:05' and `end` < '2025-01-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-01-10 21:19:18] Production.INFO: count ==1515 [2025-01-10 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:19:05 - End Time 2025-01-10 21:19:05 [2025-01-10 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219621', 'tblTempUsageDetail_20' ) start [2025-01-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219621', 'tblTempUsageDetail_20' ) end [2025-01-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219621', 'tblTempVendorCDR_20' ) start [2025-01-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219621', 'tblTempVendorCDR_20' ) end [2025-01-10 21:19:18] Production.INFO: ProcessCDR(1,14219621,1,1,2) [2025-01-10 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219621', 'tblTempUsageDetail_20' ) start [2025-01-10 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219621', 'tblTempUsageDetail_20' ) end [2025-01-10 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:19:21] Production.INFO: ==29192== Releasing lock... [2025-01-10 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:19:21] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:20:05 [end_date_ymd] => 2025-01-10 21:20:05 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:20:05' and `end` < '2025-01-10 21: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-01-10 21:20:19] Production.INFO: count ==1516 [2025-01-10 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:20:05 - End Time 2025-01-10 21:20:05 [2025-01-10 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219627', 'tblTempUsageDetail_20' ) start [2025-01-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219627', 'tblTempUsageDetail_20' ) end [2025-01-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219627', 'tblTempVendorCDR_20' ) start [2025-01-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219627', 'tblTempVendorCDR_20' ) end [2025-01-10 21:20:19] Production.INFO: ProcessCDR(1,14219627,1,1,2) [2025-01-10 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219627', 'tblTempUsageDetail_20' ) start [2025-01-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219627', 'tblTempUsageDetail_20' ) end [2025-01-10 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:20:22] Production.INFO: ==29263== Releasing lock... [2025-01-10 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:20:22] Production.INFO: 39 MB #Memory Used# [2025-01-10 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:21:05 [end_date_ymd] => 2025-01-10 21:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:21:05' and `end` < '2025-01-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-01-10 21:21:20] Production.INFO: count ==1489 [2025-01-10 21:21:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:21:05 - End Time 2025-01-10 21:21:05 [2025-01-10 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219632', 'tblTempUsageDetail_20' ) start [2025-01-10 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219632', 'tblTempUsageDetail_20' ) end [2025-01-10 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219632', 'tblTempVendorCDR_20' ) start [2025-01-10 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219632', 'tblTempVendorCDR_20' ) end [2025-01-10 21:21:20] Production.INFO: ProcessCDR(1,14219632,1,1,2) [2025-01-10 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219632', 'tblTempUsageDetail_20' ) start [2025-01-10 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219632', 'tblTempUsageDetail_20' ) end [2025-01-10 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:21:23] Production.INFO: ==29375== Releasing lock... [2025-01-10 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:21:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:22:05 [end_date_ymd] => 2025-01-10 21:22:05 [RateCDR] => 1 ) [2025-01-10 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:22:05' and `end` < '2025-01-10 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:22:18] Production.INFO: count ==1488 [2025-01-10 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:22:05 - End Time 2025-01-10 21:22:05 [2025-01-10 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219637', 'tblTempUsageDetail_20' ) start [2025-01-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219637', 'tblTempUsageDetail_20' ) end [2025-01-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219637', 'tblTempVendorCDR_20' ) start [2025-01-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219637', 'tblTempVendorCDR_20' ) end [2025-01-10 21:22:18] Production.INFO: ProcessCDR(1,14219637,1,1,2) [2025-01-10 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219637', 'tblTempUsageDetail_20' ) start [2025-01-10 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219637', 'tblTempUsageDetail_20' ) end [2025-01-10 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:22:22] Production.INFO: ==29445== Releasing lock... [2025-01-10 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:23:05 [end_date_ymd] => 2025-01-10 21:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:23:05' and `end` < '2025-01-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-01-10 21:23:18] Production.INFO: count ==1485 [2025-01-10 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:23:05 - End Time 2025-01-10 21:23:05 [2025-01-10 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219642', 'tblTempUsageDetail_20' ) start [2025-01-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219642', 'tblTempUsageDetail_20' ) end [2025-01-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219642', 'tblTempVendorCDR_20' ) start [2025-01-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219642', 'tblTempVendorCDR_20' ) end [2025-01-10 21:23:18] Production.INFO: ProcessCDR(1,14219642,1,1,2) [2025-01-10 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219642', 'tblTempUsageDetail_20' ) start [2025-01-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219642', 'tblTempUsageDetail_20' ) end [2025-01-10 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:23:21] Production.INFO: ==29519== Releasing lock... [2025-01-10 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:24:04 [end_date_ymd] => 2025-01-10 21:24:04 [RateCDR] => 1 ) [2025-01-10 21:24: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-01-10 18:24:04' and `end` < '2025-01-10 21:24: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-01-10 21:24:18] Production.INFO: count ==1486 [2025-01-10 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:24:04 - End Time 2025-01-10 21:24:04 [2025-01-10 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219647', 'tblTempUsageDetail_20' ) start [2025-01-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219647', 'tblTempUsageDetail_20' ) end [2025-01-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219647', 'tblTempVendorCDR_20' ) start [2025-01-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219647', 'tblTempVendorCDR_20' ) end [2025-01-10 21:24:18] Production.INFO: ProcessCDR(1,14219647,1,1,2) [2025-01-10 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219647', 'tblTempUsageDetail_20' ) start [2025-01-10 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219647', 'tblTempUsageDetail_20' ) end [2025-01-10 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:24:21] Production.INFO: ==29589== Releasing lock... [2025-01-10 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:25:04 [end_date_ymd] => 2025-01-10 21:25:04 [RateCDR] => 1 ) [2025-01-10 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:25:04' and `end` < '2025-01-10 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:25:18] Production.INFO: count ==1485 [2025-01-10 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:25:04 - End Time 2025-01-10 21:25:04 [2025-01-10 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219652', 'tblTempUsageDetail_20' ) start [2025-01-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219652', 'tblTempUsageDetail_20' ) end [2025-01-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219652', 'tblTempVendorCDR_20' ) start [2025-01-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219652', 'tblTempVendorCDR_20' ) end [2025-01-10 21:25:18] Production.INFO: ProcessCDR(1,14219652,1,1,2) [2025-01-10 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219652', 'tblTempUsageDetail_20' ) start [2025-01-10 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219652', 'tblTempUsageDetail_20' ) end [2025-01-10 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:25:21] Production.INFO: ==29666== Releasing lock... [2025-01-10 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:26:05 [end_date_ymd] => 2025-01-10 21:26:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:26:05' and `end` < '2025-01-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-01-10 21:26:19] Production.INFO: count ==1482 [2025-01-10 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:26:05 - End Time 2025-01-10 21:26:05 [2025-01-10 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219657', 'tblTempUsageDetail_20' ) start [2025-01-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219657', 'tblTempUsageDetail_20' ) end [2025-01-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219657', 'tblTempVendorCDR_20' ) start [2025-01-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219657', 'tblTempVendorCDR_20' ) end [2025-01-10 21:26:19] Production.INFO: ProcessCDR(1,14219657,1,1,2) [2025-01-10 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219657', 'tblTempUsageDetail_20' ) start [2025-01-10 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219657', 'tblTempUsageDetail_20' ) end [2025-01-10 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:26:22] Production.INFO: ==29737== Releasing lock... [2025-01-10 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-10 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:27:05 [end_date_ymd] => 2025-01-10 21:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:27:05' and `end` < '2025-01-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-01-10 21:27:18] Production.INFO: count ==1473 [2025-01-10 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:27:05 - End Time 2025-01-10 21:27:05 [2025-01-10 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219662', 'tblTempUsageDetail_20' ) start [2025-01-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219662', 'tblTempUsageDetail_20' ) end [2025-01-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219662', 'tblTempVendorCDR_20' ) start [2025-01-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219662', 'tblTempVendorCDR_20' ) end [2025-01-10 21:27:18] Production.INFO: ProcessCDR(1,14219662,1,1,2) [2025-01-10 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219662', 'tblTempUsageDetail_20' ) start [2025-01-10 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219662', 'tblTempUsageDetail_20' ) end [2025-01-10 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:27:21] Production.INFO: ==29806== Releasing lock... [2025-01-10 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:28:05 [end_date_ymd] => 2025-01-10 21:28:05 [RateCDR] => 1 ) [2025-01-10 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:28:05' and `end` < '2025-01-10 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:28:19] Production.INFO: count ==1470 [2025-01-10 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:28:05 - End Time 2025-01-10 21:28:05 [2025-01-10 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219667', 'tblTempUsageDetail_20' ) start [2025-01-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219667', 'tblTempUsageDetail_20' ) end [2025-01-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219667', 'tblTempVendorCDR_20' ) start [2025-01-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219667', 'tblTempVendorCDR_20' ) end [2025-01-10 21:28:19] Production.INFO: ProcessCDR(1,14219667,1,1,2) [2025-01-10 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219667', 'tblTempUsageDetail_20' ) start [2025-01-10 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219667', 'tblTempUsageDetail_20' ) end [2025-01-10 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:28:22] Production.INFO: ==29877== Releasing lock... [2025-01-10 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:29:04 [end_date_ymd] => 2025-01-10 21:29:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:29:04' and `end` < '2025-01-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-01-10 21:29:18] Production.INFO: count ==1469 [2025-01-10 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:29:04 - End Time 2025-01-10 21:29:04 [2025-01-10 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219672', 'tblTempUsageDetail_20' ) start [2025-01-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219672', 'tblTempUsageDetail_20' ) end [2025-01-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219672', 'tblTempVendorCDR_20' ) start [2025-01-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219672', 'tblTempVendorCDR_20' ) end [2025-01-10 21:29:18] Production.INFO: ProcessCDR(1,14219672,1,1,2) [2025-01-10 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219672', 'tblTempUsageDetail_20' ) start [2025-01-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219672', 'tblTempUsageDetail_20' ) end [2025-01-10 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:29:22] Production.INFO: ==29948== Releasing lock... [2025-01-10 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:30:06 [end_date_ymd] => 2025-01-10 21:30:06 [RateCDR] => 1 ) [2025-01-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-01-10 18:30:06' and `end` < '2025-01-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-01-10 21:30:20] Production.INFO: count ==1471 [2025-01-10 21:30:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:30:06 - End Time 2025-01-10 21:30:06 [2025-01-10 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219678', 'tblTempUsageDetail_20' ) start [2025-01-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219678', 'tblTempUsageDetail_20' ) end [2025-01-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219678', 'tblTempVendorCDR_20' ) start [2025-01-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219678', 'tblTempVendorCDR_20' ) end [2025-01-10 21:30:20] Production.INFO: ProcessCDR(1,14219678,1,1,2) [2025-01-10 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219678', 'tblTempUsageDetail_20' ) start [2025-01-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219678', 'tblTempUsageDetail_20' ) end [2025-01-10 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:30:23] Production.INFO: ==30021== Releasing lock... [2025-01-10 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:30:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:31:05 [end_date_ymd] => 2025-01-10 21:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:31:05' and `end` < '2025-01-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-01-10 21:31:18] Production.INFO: count ==1428 [2025-01-10 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:31:05 - End Time 2025-01-10 21:31:05 [2025-01-10 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219683', 'tblTempUsageDetail_20' ) start [2025-01-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219683', 'tblTempUsageDetail_20' ) end [2025-01-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219683', 'tblTempVendorCDR_20' ) start [2025-01-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219683', 'tblTempVendorCDR_20' ) end [2025-01-10 21:31:18] Production.INFO: ProcessCDR(1,14219683,1,1,2) [2025-01-10 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219683', 'tblTempUsageDetail_20' ) start [2025-01-10 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219683', 'tblTempUsageDetail_20' ) end [2025-01-10 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:31:22] Production.INFO: ==30103== Releasing lock... [2025-01-10 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:32:05 [end_date_ymd] => 2025-01-10 21:32:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:32:05' and `end` < '2025-01-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-01-10 21:32:19] Production.INFO: count ==1427 [2025-01-10 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:32:05 - End Time 2025-01-10 21:32:05 [2025-01-10 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219688', 'tblTempUsageDetail_20' ) start [2025-01-10 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219688', 'tblTempUsageDetail_20' ) end [2025-01-10 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219688', 'tblTempVendorCDR_20' ) start [2025-01-10 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219688', 'tblTempVendorCDR_20' ) end [2025-01-10 21:32:19] Production.INFO: ProcessCDR(1,14219688,1,1,2) [2025-01-10 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219688', 'tblTempUsageDetail_20' ) start [2025-01-10 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219688', 'tblTempUsageDetail_20' ) end [2025-01-10 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:32:22] Production.INFO: ==30186== Releasing lock... [2025-01-10 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:32:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:33:04 [end_date_ymd] => 2025-01-10 21:33:04 [RateCDR] => 1 ) [2025-01-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-01-10 18:33:04' and `end` < '2025-01-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-01-10 21:33:18] Production.INFO: count ==1419 [2025-01-10 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:33:04 - End Time 2025-01-10 21:33:04 [2025-01-10 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219693', 'tblTempUsageDetail_20' ) start [2025-01-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219693', 'tblTempUsageDetail_20' ) end [2025-01-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219693', 'tblTempVendorCDR_20' ) start [2025-01-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219693', 'tblTempVendorCDR_20' ) end [2025-01-10 21:33:18] Production.INFO: ProcessCDR(1,14219693,1,1,2) [2025-01-10 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219693', 'tblTempUsageDetail_20' ) start [2025-01-10 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219693', 'tblTempUsageDetail_20' ) end [2025-01-10 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:33:21] Production.INFO: ==30268== Releasing lock... [2025-01-10 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:34:05 [end_date_ymd] => 2025-01-10 21:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:34:05' and `end` < '2025-01-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-01-10 21:34:18] Production.INFO: count ==1419 [2025-01-10 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:34:05 - End Time 2025-01-10 21:34:05 [2025-01-10 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219698', 'tblTempUsageDetail_20' ) start [2025-01-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219698', 'tblTempUsageDetail_20' ) end [2025-01-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219698', 'tblTempVendorCDR_20' ) start [2025-01-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219698', 'tblTempVendorCDR_20' ) end [2025-01-10 21:34:18] Production.INFO: ProcessCDR(1,14219698,1,1,2) [2025-01-10 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219698', 'tblTempUsageDetail_20' ) start [2025-01-10 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219698', 'tblTempUsageDetail_20' ) end [2025-01-10 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:34:21] Production.INFO: ==30349== Releasing lock... [2025-01-10 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:34:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:35:04 [end_date_ymd] => 2025-01-10 21:35:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:35:04' and `end` < '2025-01-10 21: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-01-10 21:35:18] Production.INFO: count ==1413 [2025-01-10 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:35:04 - End Time 2025-01-10 21:35:04 [2025-01-10 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219703', 'tblTempUsageDetail_20' ) start [2025-01-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219703', 'tblTempUsageDetail_20' ) end [2025-01-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219703', 'tblTempVendorCDR_20' ) start [2025-01-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219703', 'tblTempVendorCDR_20' ) end [2025-01-10 21:35:18] Production.INFO: ProcessCDR(1,14219703,1,1,2) [2025-01-10 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219703', 'tblTempUsageDetail_20' ) start [2025-01-10 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219703', 'tblTempUsageDetail_20' ) end [2025-01-10 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:35:21] Production.INFO: ==30425== Releasing lock... [2025-01-10 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:35:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:36:05 [end_date_ymd] => 2025-01-10 21:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:36:05' and `end` < '2025-01-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-01-10 21:36:20] Production.INFO: count ==1415 [2025-01-10 21:36:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:36:05 - End Time 2025-01-10 21:36:05 [2025-01-10 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219708', 'tblTempUsageDetail_20' ) start [2025-01-10 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219708', 'tblTempUsageDetail_20' ) end [2025-01-10 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219708', 'tblTempVendorCDR_20' ) start [2025-01-10 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219708', 'tblTempVendorCDR_20' ) end [2025-01-10 21:36:20] Production.INFO: ProcessCDR(1,14219708,1,1,2) [2025-01-10 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219708', 'tblTempUsageDetail_20' ) start [2025-01-10 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219708', 'tblTempUsageDetail_20' ) end [2025-01-10 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:36:23] Production.INFO: ==30513== Releasing lock... [2025-01-10 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:36:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-10 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:37:04 [end_date_ymd] => 2025-01-10 21:37:04 [RateCDR] => 1 ) [2025-01-10 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:37:04' and `end` < '2025-01-10 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:37:18] Production.INFO: count ==1414 [2025-01-10 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:37:04 - End Time 2025-01-10 21:37:04 [2025-01-10 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219713', 'tblTempUsageDetail_20' ) start [2025-01-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219713', 'tblTempUsageDetail_20' ) end [2025-01-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219713', 'tblTempVendorCDR_20' ) start [2025-01-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219713', 'tblTempVendorCDR_20' ) end [2025-01-10 21:37:18] Production.INFO: ProcessCDR(1,14219713,1,1,2) [2025-01-10 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219713', 'tblTempUsageDetail_20' ) start [2025-01-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219713', 'tblTempUsageDetail_20' ) end [2025-01-10 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:37:21] Production.INFO: ==30631== Releasing lock... [2025-01-10 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:37:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:38:05 [end_date_ymd] => 2025-01-10 21:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:38:05' and `end` < '2025-01-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-01-10 21:38:20] Production.INFO: count ==1407 [2025-01-10 21:38:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:38:05 - End Time 2025-01-10 21:38:05 [2025-01-10 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219718', 'tblTempUsageDetail_20' ) start [2025-01-10 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219718', 'tblTempUsageDetail_20' ) end [2025-01-10 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219718', 'tblTempVendorCDR_20' ) start [2025-01-10 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219718', 'tblTempVendorCDR_20' ) end [2025-01-10 21:38:20] Production.INFO: ProcessCDR(1,14219718,1,1,2) [2025-01-10 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219718', 'tblTempUsageDetail_20' ) start [2025-01-10 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219718', 'tblTempUsageDetail_20' ) end [2025-01-10 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:38:23] Production.INFO: ==30717== Releasing lock... [2025-01-10 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:38:23] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:39:04 [end_date_ymd] => 2025-01-10 21:39:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:39:04' and `end` < '2025-01-10 21: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-01-10 21:39:17] Production.INFO: count ==1408 [2025-01-10 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-10 18:39:04 - End Time 2025-01-10 21:39:04 [2025-01-10 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219723', 'tblTempUsageDetail_20' ) start [2025-01-10 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219723', 'tblTempUsageDetail_20' ) end [2025-01-10 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219723', 'tblTempVendorCDR_20' ) start [2025-01-10 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219723', 'tblTempVendorCDR_20' ) end [2025-01-10 21:39:17] Production.INFO: ProcessCDR(1,14219723,1,1,2) [2025-01-10 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219723', 'tblTempUsageDetail_20' ) start [2025-01-10 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219723', 'tblTempUsageDetail_20' ) end [2025-01-10 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:39:21] Production.INFO: ==30797== Releasing lock... [2025-01-10 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:39:21] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:40:05 [end_date_ymd] => 2025-01-10 21:40:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:40:05' and `end` < '2025-01-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-01-10 21:40:18] Production.INFO: count ==1407 [2025-01-10 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:40:05 - End Time 2025-01-10 21:40:05 [2025-01-10 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219729', 'tblTempUsageDetail_20' ) start [2025-01-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219729', 'tblTempUsageDetail_20' ) end [2025-01-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219729', 'tblTempVendorCDR_20' ) start [2025-01-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219729', 'tblTempVendorCDR_20' ) end [2025-01-10 21:40:19] Production.INFO: ProcessCDR(1,14219729,1,1,2) [2025-01-10 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219729', 'tblTempUsageDetail_20' ) start [2025-01-10 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219729', 'tblTempUsageDetail_20' ) end [2025-01-10 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:40:22] Production.INFO: ==30880== Releasing lock... [2025-01-10 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:40:22] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:41:05 [end_date_ymd] => 2025-01-10 21:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:41:05' and `end` < '2025-01-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-01-10 21:41:19] Production.INFO: count ==1410 [2025-01-10 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:41:05 - End Time 2025-01-10 21:41:05 [2025-01-10 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219734', 'tblTempUsageDetail_20' ) start [2025-01-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219734', 'tblTempUsageDetail_20' ) end [2025-01-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219734', 'tblTempVendorCDR_20' ) start [2025-01-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219734', 'tblTempVendorCDR_20' ) end [2025-01-10 21:41:19] Production.INFO: ProcessCDR(1,14219734,1,1,2) [2025-01-10 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219734', 'tblTempUsageDetail_20' ) start [2025-01-10 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219734', 'tblTempUsageDetail_20' ) end [2025-01-10 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:41:22] Production.INFO: ==30962== Releasing lock... [2025-01-10 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-10 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:42:05 [end_date_ymd] => 2025-01-10 21:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:42:05' and `end` < '2025-01-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-01-10 21:42:18] Production.INFO: count ==1407 [2025-01-10 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:42:05 - End Time 2025-01-10 21:42:05 [2025-01-10 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219739', 'tblTempUsageDetail_20' ) start [2025-01-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219739', 'tblTempUsageDetail_20' ) end [2025-01-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219739', 'tblTempVendorCDR_20' ) start [2025-01-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219739', 'tblTempVendorCDR_20' ) end [2025-01-10 21:42:18] Production.INFO: ProcessCDR(1,14219739,1,1,2) [2025-01-10 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219739', 'tblTempUsageDetail_20' ) start [2025-01-10 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219739', 'tblTempUsageDetail_20' ) end [2025-01-10 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:42:21] Production.INFO: ==31044== Releasing lock... [2025-01-10 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:42:21] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:43:05 [end_date_ymd] => 2025-01-10 21:43:05 [RateCDR] => 1 ) [2025-01-10 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:43:05' and `end` < '2025-01-10 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:43:19] Production.INFO: count ==1407 [2025-01-10 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:43:05 - End Time 2025-01-10 21:43:05 [2025-01-10 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219744', 'tblTempUsageDetail_20' ) start [2025-01-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219744', 'tblTempUsageDetail_20' ) end [2025-01-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219744', 'tblTempVendorCDR_20' ) start [2025-01-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219744', 'tblTempVendorCDR_20' ) end [2025-01-10 21:43:19] Production.INFO: ProcessCDR(1,14219744,1,1,2) [2025-01-10 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219744', 'tblTempUsageDetail_20' ) start [2025-01-10 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219744', 'tblTempUsageDetail_20' ) end [2025-01-10 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:43:22] Production.INFO: ==31125== Releasing lock... [2025-01-10 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:43:22] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:44:04 [end_date_ymd] => 2025-01-10 21:44:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:44:04' and `end` < '2025-01-10 21: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-01-10 21:44:18] Production.INFO: count ==1394 [2025-01-10 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:44:04 - End Time 2025-01-10 21:44:04 [2025-01-10 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219749', 'tblTempUsageDetail_20' ) start [2025-01-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219749', 'tblTempUsageDetail_20' ) end [2025-01-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219749', 'tblTempVendorCDR_20' ) start [2025-01-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219749', 'tblTempVendorCDR_20' ) end [2025-01-10 21:44:18] Production.INFO: ProcessCDR(1,14219749,1,1,2) [2025-01-10 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219749', 'tblTempUsageDetail_20' ) start [2025-01-10 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219749', 'tblTempUsageDetail_20' ) end [2025-01-10 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:44:21] Production.INFO: ==31207== Releasing lock... [2025-01-10 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:44:21] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:45:05 [end_date_ymd] => 2025-01-10 21:45:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:45:05' and `end` < '2025-01-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-01-10 21:45:18] Production.INFO: count ==1395 [2025-01-10 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:45:05 - End Time 2025-01-10 21:45:05 [2025-01-10 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219754', 'tblTempUsageDetail_20' ) start [2025-01-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219754', 'tblTempUsageDetail_20' ) end [2025-01-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219754', 'tblTempVendorCDR_20' ) start [2025-01-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219754', 'tblTempVendorCDR_20' ) end [2025-01-10 21:45:19] Production.INFO: ProcessCDR(1,14219754,1,1,2) [2025-01-10 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219754', 'tblTempUsageDetail_20' ) start [2025-01-10 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219754', 'tblTempUsageDetail_20' ) end [2025-01-10 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:45:23] Production.INFO: ==31279== Releasing lock... [2025-01-10 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:45:23] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:46:04 [end_date_ymd] => 2025-01-10 21:46:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:46:04' and `end` < '2025-01-10 21: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-01-10 21:46:17] Production.INFO: count ==1395 [2025-01-10 21:46:17] Production.ERROR: pbx CDR StartTime 2025-01-10 18:46:04 - End Time 2025-01-10 21:46:04 [2025-01-10 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219759', 'tblTempUsageDetail_20' ) start [2025-01-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219759', 'tblTempUsageDetail_20' ) end [2025-01-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219759', 'tblTempVendorCDR_20' ) start [2025-01-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219759', 'tblTempVendorCDR_20' ) end [2025-01-10 21:46:17] Production.INFO: ProcessCDR(1,14219759,1,1,2) [2025-01-10 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219759', 'tblTempUsageDetail_20' ) start [2025-01-10 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219759', 'tblTempUsageDetail_20' ) end [2025-01-10 21:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:46:21] Production.INFO: ==31351== Releasing lock... [2025-01-10 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:46:21] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:47:05 [end_date_ymd] => 2025-01-10 21:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:47:05' and `end` < '2025-01-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-01-10 21:47:18] Production.INFO: count ==1396 [2025-01-10 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:47:05 - End Time 2025-01-10 21:47:05 [2025-01-10 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219764', 'tblTempUsageDetail_20' ) start [2025-01-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219764', 'tblTempUsageDetail_20' ) end [2025-01-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219764', 'tblTempVendorCDR_20' ) start [2025-01-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219764', 'tblTempVendorCDR_20' ) end [2025-01-10 21:47:18] Production.INFO: ProcessCDR(1,14219764,1,1,2) [2025-01-10 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219764', 'tblTempUsageDetail_20' ) start [2025-01-10 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219764', 'tblTempUsageDetail_20' ) end [2025-01-10 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:47:23] Production.INFO: ==31423== Releasing lock... [2025-01-10 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:47:23] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:48:05 [end_date_ymd] => 2025-01-10 21:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:48:05' and `end` < '2025-01-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-01-10 21:48:18] Production.INFO: count ==1396 [2025-01-10 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:48:05 - End Time 2025-01-10 21:48:05 [2025-01-10 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219769', 'tblTempUsageDetail_20' ) start [2025-01-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219769', 'tblTempUsageDetail_20' ) end [2025-01-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219769', 'tblTempVendorCDR_20' ) start [2025-01-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219769', 'tblTempVendorCDR_20' ) end [2025-01-10 21:48:18] Production.INFO: ProcessCDR(1,14219769,1,1,2) [2025-01-10 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219769', 'tblTempUsageDetail_20' ) start [2025-01-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219769', 'tblTempUsageDetail_20' ) end [2025-01-10 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:48:22] Production.INFO: ==31497== Releasing lock... [2025-01-10 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:48:22] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:49:05 [end_date_ymd] => 2025-01-10 21:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:49:05' and `end` < '2025-01-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-01-10 21:49:18] Production.INFO: count ==1392 [2025-01-10 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:49:05 - End Time 2025-01-10 21:49:05 [2025-01-10 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219774', 'tblTempUsageDetail_20' ) start [2025-01-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219774', 'tblTempUsageDetail_20' ) end [2025-01-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219774', 'tblTempVendorCDR_20' ) start [2025-01-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219774', 'tblTempVendorCDR_20' ) end [2025-01-10 21:49:18] Production.INFO: ProcessCDR(1,14219774,1,1,2) [2025-01-10 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219774', 'tblTempUsageDetail_20' ) start [2025-01-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219774', 'tblTempUsageDetail_20' ) end [2025-01-10 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:49:21] Production.INFO: ==31568== Releasing lock... [2025-01-10 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:49:21] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:50:06 [end_date_ymd] => 2025-01-10 21:50:06 [RateCDR] => 1 ) [2025-01-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-01-10 18:50:06' and `end` < '2025-01-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-01-10 21:50:19] Production.INFO: count ==1390 [2025-01-10 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:50:06 - End Time 2025-01-10 21:50:06 [2025-01-10 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219780', 'tblTempUsageDetail_20' ) start [2025-01-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219780', 'tblTempUsageDetail_20' ) end [2025-01-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219780', 'tblTempVendorCDR_20' ) start [2025-01-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219780', 'tblTempVendorCDR_20' ) end [2025-01-10 21:50:19] Production.INFO: ProcessCDR(1,14219780,1,1,2) [2025-01-10 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219780', 'tblTempUsageDetail_20' ) start [2025-01-10 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219780', 'tblTempUsageDetail_20' ) end [2025-01-10 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:50:22] Production.INFO: ==31641== Releasing lock... [2025-01-10 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:50:22] Production.INFO: 38 MB #Memory Used# [2025-01-10 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:51:04 [end_date_ymd] => 2025-01-10 21:51:04 [RateCDR] => 1 ) [2025-01-10 21: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-01-10 18:51:04' and `end` < '2025-01-10 21: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-01-10 21:51:18] Production.INFO: count ==1339 [2025-01-10 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:51:04 - End Time 2025-01-10 21:51:04 [2025-01-10 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219785', 'tblTempUsageDetail_20' ) start [2025-01-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219785', 'tblTempUsageDetail_20' ) end [2025-01-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219785', 'tblTempVendorCDR_20' ) start [2025-01-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219785', 'tblTempVendorCDR_20' ) end [2025-01-10 21:51:18] Production.INFO: ProcessCDR(1,14219785,1,1,2) [2025-01-10 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219785', 'tblTempUsageDetail_20' ) start [2025-01-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219785', 'tblTempUsageDetail_20' ) end [2025-01-10 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:51:21] Production.INFO: ==31717== Releasing lock... [2025-01-10 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:51:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:52:05 [end_date_ymd] => 2025-01-10 21:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:52:05' and `end` < '2025-01-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-01-10 21:52:19] Production.INFO: count ==1337 [2025-01-10 21:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:52:05 - End Time 2025-01-10 21:52:05 [2025-01-10 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219790', 'tblTempUsageDetail_20' ) start [2025-01-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219790', 'tblTempUsageDetail_20' ) end [2025-01-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219790', 'tblTempVendorCDR_20' ) start [2025-01-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219790', 'tblTempVendorCDR_20' ) end [2025-01-10 21:52:19] Production.INFO: ProcessCDR(1,14219790,1,1,2) [2025-01-10 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219790', 'tblTempUsageDetail_20' ) start [2025-01-10 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219790', 'tblTempUsageDetail_20' ) end [2025-01-10 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:52:22] Production.INFO: ==31824== Releasing lock... [2025-01-10 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:53:05 [end_date_ymd] => 2025-01-10 21:53:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:53:05' and `end` < '2025-01-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-01-10 21:53:18] Production.INFO: count ==1336 [2025-01-10 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:53:05 - End Time 2025-01-10 21:53:05 [2025-01-10 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219795', 'tblTempUsageDetail_20' ) start [2025-01-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219795', 'tblTempUsageDetail_20' ) end [2025-01-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219795', 'tblTempVendorCDR_20' ) start [2025-01-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219795', 'tblTempVendorCDR_20' ) end [2025-01-10 21:53:18] Production.INFO: ProcessCDR(1,14219795,1,1,2) [2025-01-10 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219795', 'tblTempUsageDetail_20' ) start [2025-01-10 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219795', 'tblTempUsageDetail_20' ) end [2025-01-10 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:53:21] Production.INFO: ==31968== Releasing lock... [2025-01-10 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:53:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:54:05 [end_date_ymd] => 2025-01-10 21:54:05 [RateCDR] => 1 ) [2025-01-10 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 18:54:05' and `end` < '2025-01-10 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 21:54:19] Production.INFO: count ==1339 [2025-01-10 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:54:05 - End Time 2025-01-10 21:54:05 [2025-01-10 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219800', 'tblTempUsageDetail_20' ) start [2025-01-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219800', 'tblTempUsageDetail_20' ) end [2025-01-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219800', 'tblTempVendorCDR_20' ) start [2025-01-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219800', 'tblTempVendorCDR_20' ) end [2025-01-10 21:54:19] Production.INFO: ProcessCDR(1,14219800,1,1,2) [2025-01-10 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219800', 'tblTempUsageDetail_20' ) start [2025-01-10 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219800', 'tblTempUsageDetail_20' ) end [2025-01-10 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:54:23] Production.INFO: ==32077== Releasing lock... [2025-01-10 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:54:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:55:05 [end_date_ymd] => 2025-01-10 21:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:55:05' and `end` < '2025-01-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-01-10 21:55:18] Production.INFO: count ==1339 [2025-01-10 21:55:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:55:05 - End Time 2025-01-10 21:55:05 [2025-01-10 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219805', 'tblTempUsageDetail_20' ) start [2025-01-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219805', 'tblTempUsageDetail_20' ) end [2025-01-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219805', 'tblTempVendorCDR_20' ) start [2025-01-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219805', 'tblTempVendorCDR_20' ) end [2025-01-10 21:55:19] Production.INFO: ProcessCDR(1,14219805,1,1,2) [2025-01-10 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219805', 'tblTempUsageDetail_20' ) start [2025-01-10 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219805', 'tblTempUsageDetail_20' ) end [2025-01-10 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:55:23] Production.INFO: ==32182== Releasing lock... [2025-01-10 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:56:05 [end_date_ymd] => 2025-01-10 21:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:56:05' and `end` < '2025-01-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-01-10 21:56:19] Production.INFO: count ==1356 [2025-01-10 21:56:20] Production.ERROR: pbx CDR StartTime 2025-01-10 18:56:05 - End Time 2025-01-10 21:56:05 [2025-01-10 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219810', 'tblTempUsageDetail_20' ) start [2025-01-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219810', 'tblTempUsageDetail_20' ) end [2025-01-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219810', 'tblTempVendorCDR_20' ) start [2025-01-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219810', 'tblTempVendorCDR_20' ) end [2025-01-10 21:56:20] Production.INFO: ProcessCDR(1,14219810,1,1,2) [2025-01-10 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219810', 'tblTempUsageDetail_20' ) start [2025-01-10 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219810', 'tblTempUsageDetail_20' ) end [2025-01-10 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:56:24] Production.INFO: ==32295== Releasing lock... [2025-01-10 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:56:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-10 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:57:05 [end_date_ymd] => 2025-01-10 21:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:57:05' and `end` < '2025-01-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-01-10 21:57:18] Production.INFO: count ==1365 [2025-01-10 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:57:05 - End Time 2025-01-10 21:57:05 [2025-01-10 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219815', 'tblTempUsageDetail_20' ) start [2025-01-10 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219815', 'tblTempUsageDetail_20' ) end [2025-01-10 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219815', 'tblTempVendorCDR_20' ) start [2025-01-10 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219815', 'tblTempVendorCDR_20' ) end [2025-01-10 21:57:19] Production.INFO: ProcessCDR(1,14219815,1,1,2) [2025-01-10 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219815', 'tblTempUsageDetail_20' ) start [2025-01-10 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219815', 'tblTempUsageDetail_20' ) end [2025-01-10 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:57:23] Production.INFO: ==32405== Releasing lock... [2025-01-10 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:57:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-10 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:58:05 [end_date_ymd] => 2025-01-10 21:58:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:58:05' and `end` < '2025-01-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-01-10 21:58:18] Production.INFO: count ==1355 [2025-01-10 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-10 18:58:05 - End Time 2025-01-10 21:58:05 [2025-01-10 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219820', 'tblTempUsageDetail_20' ) start [2025-01-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219820', 'tblTempUsageDetail_20' ) end [2025-01-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219820', 'tblTempVendorCDR_20' ) start [2025-01-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219820', 'tblTempVendorCDR_20' ) end [2025-01-10 21:58:19] Production.INFO: ProcessCDR(1,14219820,1,1,2) [2025-01-10 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219820', 'tblTempUsageDetail_20' ) start [2025-01-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219820', 'tblTempUsageDetail_20' ) end [2025-01-10 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:58:22] Production.INFO: ==32504== Releasing lock... [2025-01-10 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:58:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-10 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 18:59:05 [end_date_ymd] => 2025-01-10 21:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 18:59:05' and `end` < '2025-01-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-01-10 21:59:18] Production.INFO: count ==1358 [2025-01-10 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 18:59:05 - End Time 2025-01-10 21:59:05 [2025-01-10 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219825', 'tblTempUsageDetail_20' ) start [2025-01-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219825', 'tblTempUsageDetail_20' ) end [2025-01-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219825', 'tblTempVendorCDR_20' ) start [2025-01-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219825', 'tblTempVendorCDR_20' ) end [2025-01-10 21:59:18] Production.INFO: ProcessCDR(1,14219825,1,1,2) [2025-01-10 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219825', 'tblTempUsageDetail_20' ) start [2025-01-10 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219825', 'tblTempUsageDetail_20' ) end [2025-01-10 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 21:59:23] Production.INFO: ==32599== Releasing lock... [2025-01-10 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 21:59:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-10 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:00:06 [end_date_ymd] => 2025-01-10 22:00:06 [RateCDR] => 1 ) [2025-01-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-01-10 19:00:06' and `end` < '2025-01-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-01-10 22:00:19] Production.INFO: count ==1357 [2025-01-10 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:00:06 - End Time 2025-01-10 22:00:06 [2025-01-10 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219831', 'tblTempUsageDetail_20' ) start [2025-01-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219831', 'tblTempUsageDetail_20' ) end [2025-01-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219831', 'tblTempVendorCDR_20' ) start [2025-01-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219831', 'tblTempVendorCDR_20' ) end [2025-01-10 22:00:19] Production.INFO: ProcessCDR(1,14219831,1,1,2) [2025-01-10 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219831', 'tblTempUsageDetail_20' ) start [2025-01-10 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219831', 'tblTempUsageDetail_20' ) end [2025-01-10 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:00:24] Production.INFO: ==32701== Releasing lock... [2025-01-10 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:00:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-10 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:01:04 [end_date_ymd] => 2025-01-10 22:01:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:01:04' and `end` < '2025-01-10 22: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-01-10 22:01:18] Production.INFO: count ==1325 [2025-01-10 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:01:04 - End Time 2025-01-10 22:01:04 [2025-01-10 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219836', 'tblTempUsageDetail_20' ) start [2025-01-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219836', 'tblTempUsageDetail_20' ) end [2025-01-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219836', 'tblTempVendorCDR_20' ) start [2025-01-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219836', 'tblTempVendorCDR_20' ) end [2025-01-10 22:01:18] Production.INFO: ProcessCDR(1,14219836,1,1,2) [2025-01-10 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219836', 'tblTempUsageDetail_20' ) start [2025-01-10 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219836', 'tblTempUsageDetail_20' ) end [2025-01-10 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:01:21] Production.INFO: ==375== Releasing lock... [2025-01-10 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:02:05 [end_date_ymd] => 2025-01-10 22:02:05 [RateCDR] => 1 ) [2025-01-10 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:02:05' and `end` < '2025-01-10 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:02:18] Production.INFO: count ==1320 [2025-01-10 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:02:05 - End Time 2025-01-10 22:02:05 [2025-01-10 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219841', 'tblTempUsageDetail_20' ) start [2025-01-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219841', 'tblTempUsageDetail_20' ) end [2025-01-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219841', 'tblTempVendorCDR_20' ) start [2025-01-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219841', 'tblTempVendorCDR_20' ) end [2025-01-10 22:02:18] Production.INFO: ProcessCDR(1,14219841,1,1,2) [2025-01-10 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219841', 'tblTempUsageDetail_20' ) start [2025-01-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219841', 'tblTempUsageDetail_20' ) end [2025-01-10 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:02:23] Production.INFO: ==487== Releasing lock... [2025-01-10 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:02:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:03:05 [end_date_ymd] => 2025-01-10 22:03:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:03:05' and `end` < '2025-01-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-01-10 22:03:19] Production.INFO: count ==1320 [2025-01-10 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:03:05 - End Time 2025-01-10 22:03:05 [2025-01-10 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219846', 'tblTempUsageDetail_20' ) start [2025-01-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219846', 'tblTempUsageDetail_20' ) end [2025-01-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219846', 'tblTempVendorCDR_20' ) start [2025-01-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219846', 'tblTempVendorCDR_20' ) end [2025-01-10 22:03:19] Production.INFO: ProcessCDR(1,14219846,1,1,2) [2025-01-10 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219846', 'tblTempUsageDetail_20' ) start [2025-01-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219846', 'tblTempUsageDetail_20' ) end [2025-01-10 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:03:22] Production.INFO: ==587== Releasing lock... [2025-01-10 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:04:05 [end_date_ymd] => 2025-01-10 22:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:04:05' and `end` < '2025-01-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-01-10 22:04:19] Production.INFO: count ==1320 [2025-01-10 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:04:05 - End Time 2025-01-10 22:04:05 [2025-01-10 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219851', 'tblTempUsageDetail_20' ) start [2025-01-10 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219851', 'tblTempUsageDetail_20' ) end [2025-01-10 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219851', 'tblTempVendorCDR_20' ) start [2025-01-10 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219851', 'tblTempVendorCDR_20' ) end [2025-01-10 22:04:19] Production.INFO: ProcessCDR(1,14219851,1,1,2) [2025-01-10 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219851', 'tblTempUsageDetail_20' ) start [2025-01-10 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219851', 'tblTempUsageDetail_20' ) end [2025-01-10 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:04:22] Production.INFO: ==680== Releasing lock... [2025-01-10 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:05:06 [end_date_ymd] => 2025-01-10 22:05:06 [RateCDR] => 1 ) [2025-01-10 22:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:05:06' and `end` < '2025-01-10 22:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:05:19] Production.INFO: count ==1323 [2025-01-10 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:05:06 - End Time 2025-01-10 22:05:06 [2025-01-10 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219856', 'tblTempUsageDetail_20' ) start [2025-01-10 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219856', 'tblTempUsageDetail_20' ) end [2025-01-10 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219856', 'tblTempVendorCDR_20' ) start [2025-01-10 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219856', 'tblTempVendorCDR_20' ) end [2025-01-10 22:05:19] Production.INFO: ProcessCDR(1,14219856,1,1,2) [2025-01-10 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219856', 'tblTempUsageDetail_20' ) start [2025-01-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219856', 'tblTempUsageDetail_20' ) end [2025-01-10 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:05:22] Production.INFO: ==768== Releasing lock... [2025-01-10 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:06:04 [end_date_ymd] => 2025-01-10 22:06:04 [RateCDR] => 1 ) [2025-01-10 22:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:06:04' and `end` < '2025-01-10 22:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:06:17] Production.INFO: count ==1322 [2025-01-10 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:06:04 - End Time 2025-01-10 22:06:04 [2025-01-10 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219861', 'tblTempUsageDetail_20' ) start [2025-01-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219861', 'tblTempUsageDetail_20' ) end [2025-01-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219861', 'tblTempVendorCDR_20' ) start [2025-01-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219861', 'tblTempVendorCDR_20' ) end [2025-01-10 22:06:18] Production.INFO: ProcessCDR(1,14219861,1,1,2) [2025-01-10 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219861', 'tblTempUsageDetail_20' ) start [2025-01-10 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219861', 'tblTempUsageDetail_20' ) end [2025-01-10 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:06:21] Production.INFO: ==839== Releasing lock... [2025-01-10 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:06:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:07:05 [end_date_ymd] => 2025-01-10 22:07:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:07:05' and `end` < '2025-01-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-01-10 22:07:18] Production.INFO: count ==1322 [2025-01-10 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:07:05 - End Time 2025-01-10 22:07:05 [2025-01-10 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219866', 'tblTempUsageDetail_20' ) start [2025-01-10 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219866', 'tblTempUsageDetail_20' ) end [2025-01-10 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219866', 'tblTempVendorCDR_20' ) start [2025-01-10 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219866', 'tblTempVendorCDR_20' ) end [2025-01-10 22:07:19] Production.INFO: ProcessCDR(1,14219866,1,1,2) [2025-01-10 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219866', 'tblTempUsageDetail_20' ) start [2025-01-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219866', 'tblTempUsageDetail_20' ) end [2025-01-10 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:07:22] Production.INFO: ==910== Releasing lock... [2025-01-10 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:08:05 [end_date_ymd] => 2025-01-10 22:08:05 [RateCDR] => 1 ) [2025-01-10 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:08:05' and `end` < '2025-01-10 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:08:19] Production.INFO: count ==1320 [2025-01-10 22:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:08:05 - End Time 2025-01-10 22:08:05 [2025-01-10 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219871', 'tblTempUsageDetail_20' ) start [2025-01-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219871', 'tblTempUsageDetail_20' ) end [2025-01-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219871', 'tblTempVendorCDR_20' ) start [2025-01-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219871', 'tblTempVendorCDR_20' ) end [2025-01-10 22:08:19] Production.INFO: ProcessCDR(1,14219871,1,1,2) [2025-01-10 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219871', 'tblTempUsageDetail_20' ) start [2025-01-10 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219871', 'tblTempUsageDetail_20' ) end [2025-01-10 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:08:22] Production.INFO: ==1029== Releasing lock... [2025-01-10 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:09:05 [end_date_ymd] => 2025-01-10 22:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:09:05' and `end` < '2025-01-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-01-10 22:09:18] Production.INFO: count ==1319 [2025-01-10 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:09:05 - End Time 2025-01-10 22:09:05 [2025-01-10 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219876', 'tblTempUsageDetail_20' ) start [2025-01-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219876', 'tblTempUsageDetail_20' ) end [2025-01-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219876', 'tblTempVendorCDR_20' ) start [2025-01-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219876', 'tblTempVendorCDR_20' ) end [2025-01-10 22:09:18] Production.INFO: ProcessCDR(1,14219876,1,1,2) [2025-01-10 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219876', 'tblTempUsageDetail_20' ) start [2025-01-10 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219876', 'tblTempUsageDetail_20' ) end [2025-01-10 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:09:23] Production.INFO: ==1111== Releasing lock... [2025-01-10 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:09:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:10:06 [end_date_ymd] => 2025-01-10 22:10:06 [RateCDR] => 1 ) [2025-01-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-01-10 19:10:06' and `end` < '2025-01-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-01-10 22:10:19] Production.INFO: count ==1318 [2025-01-10 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:10:06 - End Time 2025-01-10 22:10:06 [2025-01-10 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219882', 'tblTempUsageDetail_20' ) start [2025-01-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219882', 'tblTempUsageDetail_20' ) end [2025-01-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219882', 'tblTempVendorCDR_20' ) start [2025-01-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219882', 'tblTempVendorCDR_20' ) end [2025-01-10 22:10:19] Production.INFO: ProcessCDR(1,14219882,1,1,2) [2025-01-10 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219882', 'tblTempUsageDetail_20' ) start [2025-01-10 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219882', 'tblTempUsageDetail_20' ) end [2025-01-10 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:10:22] Production.INFO: ==1204== Releasing lock... [2025-01-10 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-10 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:11:05 [end_date_ymd] => 2025-01-10 22:11:05 [RateCDR] => 1 ) [2025-01-10 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:11:05' and `end` < '2025-01-10 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:11:18] Production.INFO: count ==1299 [2025-01-10 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:11:05 - End Time 2025-01-10 22:11:05 [2025-01-10 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219887', 'tblTempUsageDetail_20' ) start [2025-01-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219887', 'tblTempUsageDetail_20' ) end [2025-01-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219887', 'tblTempVendorCDR_20' ) start [2025-01-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219887', 'tblTempVendorCDR_20' ) end [2025-01-10 22:11:18] Production.INFO: ProcessCDR(1,14219887,1,1,2) [2025-01-10 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219887', 'tblTempUsageDetail_20' ) start [2025-01-10 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219887', 'tblTempUsageDetail_20' ) end [2025-01-10 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:11:21] Production.INFO: ==1297== Releasing lock... [2025-01-10 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:12:06 [end_date_ymd] => 2025-01-10 22:12:06 [RateCDR] => 1 ) [2025-01-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-01-10 19:12:06' and `end` < '2025-01-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-01-10 22:12:19] Production.INFO: count ==1294 [2025-01-10 22:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:12:06 - End Time 2025-01-10 22:12:06 [2025-01-10 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219892', 'tblTempUsageDetail_20' ) start [2025-01-10 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219892', 'tblTempUsageDetail_20' ) end [2025-01-10 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219892', 'tblTempVendorCDR_20' ) start [2025-01-10 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219892', 'tblTempVendorCDR_20' ) end [2025-01-10 22:12:19] Production.INFO: ProcessCDR(1,14219892,1,1,2) [2025-01-10 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219892', 'tblTempUsageDetail_20' ) start [2025-01-10 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219892', 'tblTempUsageDetail_20' ) end [2025-01-10 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:12:22] Production.INFO: ==1380== Releasing lock... [2025-01-10 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:13:05 [end_date_ymd] => 2025-01-10 22:13:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:13:05' and `end` < '2025-01-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-01-10 22:13:19] Production.INFO: count ==1293 [2025-01-10 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:13:05 - End Time 2025-01-10 22:13:05 [2025-01-10 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219897', 'tblTempUsageDetail_20' ) start [2025-01-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219897', 'tblTempUsageDetail_20' ) end [2025-01-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219897', 'tblTempVendorCDR_20' ) start [2025-01-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219897', 'tblTempVendorCDR_20' ) end [2025-01-10 22:13:19] Production.INFO: ProcessCDR(1,14219897,1,1,2) [2025-01-10 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219897', 'tblTempUsageDetail_20' ) start [2025-01-10 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219897', 'tblTempUsageDetail_20' ) end [2025-01-10 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:13:22] Production.INFO: ==1461== Releasing lock... [2025-01-10 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:14:05 [end_date_ymd] => 2025-01-10 22:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:14:05' and `end` < '2025-01-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-01-10 22:14:19] Production.INFO: count ==1283 [2025-01-10 22:14:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:14:05 - End Time 2025-01-10 22:14:05 [2025-01-10 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219902', 'tblTempUsageDetail_20' ) start [2025-01-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219902', 'tblTempUsageDetail_20' ) end [2025-01-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219902', 'tblTempVendorCDR_20' ) start [2025-01-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219902', 'tblTempVendorCDR_20' ) end [2025-01-10 22:14:19] Production.INFO: ProcessCDR(1,14219902,1,1,2) [2025-01-10 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219902', 'tblTempUsageDetail_20' ) start [2025-01-10 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219902', 'tblTempUsageDetail_20' ) end [2025-01-10 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:14:23] Production.INFO: ==1579== Releasing lock... [2025-01-10 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:14:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:15:04 [end_date_ymd] => 2025-01-10 22:15:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:15:04' and `end` < '2025-01-10 22: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-01-10 22:15:18] Production.INFO: count ==1283 [2025-01-10 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:15:04 - End Time 2025-01-10 22:15:04 [2025-01-10 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219907', 'tblTempUsageDetail_20' ) start [2025-01-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219907', 'tblTempUsageDetail_20' ) end [2025-01-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219907', 'tblTempVendorCDR_20' ) start [2025-01-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219907', 'tblTempVendorCDR_20' ) end [2025-01-10 22:15:18] Production.INFO: ProcessCDR(1,14219907,1,1,2) [2025-01-10 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219907', 'tblTempUsageDetail_20' ) start [2025-01-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219907', 'tblTempUsageDetail_20' ) end [2025-01-10 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:15:21] Production.INFO: ==1649== Releasing lock... [2025-01-10 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:16:05 [end_date_ymd] => 2025-01-10 22:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:16:05' and `end` < '2025-01-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-01-10 22:16:18] Production.INFO: count ==1281 [2025-01-10 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:16:05 - End Time 2025-01-10 22:16:05 [2025-01-10 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219912', 'tblTempUsageDetail_20' ) start [2025-01-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219912', 'tblTempUsageDetail_20' ) end [2025-01-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219912', 'tblTempVendorCDR_20' ) start [2025-01-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219912', 'tblTempVendorCDR_20' ) end [2025-01-10 22:16:18] Production.INFO: ProcessCDR(1,14219912,1,1,2) [2025-01-10 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219912', 'tblTempUsageDetail_20' ) start [2025-01-10 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219912', 'tblTempUsageDetail_20' ) end [2025-01-10 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:16:23] Production.INFO: ==1721== Releasing lock... [2025-01-10 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:16:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:17:05 [end_date_ymd] => 2025-01-10 22:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:17:05' and `end` < '2025-01-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-01-10 22:17:18] Production.INFO: count ==1282 [2025-01-10 22:17:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:17:05 - End Time 2025-01-10 22:17:05 [2025-01-10 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219917', 'tblTempUsageDetail_20' ) start [2025-01-10 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219917', 'tblTempUsageDetail_20' ) end [2025-01-10 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219917', 'tblTempVendorCDR_20' ) start [2025-01-10 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219917', 'tblTempVendorCDR_20' ) end [2025-01-10 22:17:19] Production.INFO: ProcessCDR(1,14219917,1,1,2) [2025-01-10 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219917', 'tblTempUsageDetail_20' ) start [2025-01-10 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219917', 'tblTempUsageDetail_20' ) end [2025-01-10 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:17:23] Production.INFO: ==1796== Releasing lock... [2025-01-10 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:18:04 [end_date_ymd] => 2025-01-10 22:18:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:18:04' and `end` < '2025-01-10 22: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-01-10 22:18:18] Production.INFO: count ==1277 [2025-01-10 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:18:04 - End Time 2025-01-10 22:18:04 [2025-01-10 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219922', 'tblTempUsageDetail_20' ) start [2025-01-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219922', 'tblTempUsageDetail_20' ) end [2025-01-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219922', 'tblTempVendorCDR_20' ) start [2025-01-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219922', 'tblTempVendorCDR_20' ) end [2025-01-10 22:18:18] Production.INFO: ProcessCDR(1,14219922,1,1,2) [2025-01-10 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219922', 'tblTempUsageDetail_20' ) start [2025-01-10 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219922', 'tblTempUsageDetail_20' ) end [2025-01-10 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:18:21] Production.INFO: ==1872== Releasing lock... [2025-01-10 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:18:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:19:05 [end_date_ymd] => 2025-01-10 22:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:19:05' and `end` < '2025-01-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-01-10 22:19:19] Production.INFO: count ==1278 [2025-01-10 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:19:05 - End Time 2025-01-10 22:19:05 [2025-01-10 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219927', 'tblTempUsageDetail_20' ) start [2025-01-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219927', 'tblTempUsageDetail_20' ) end [2025-01-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219927', 'tblTempVendorCDR_20' ) start [2025-01-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219927', 'tblTempVendorCDR_20' ) end [2025-01-10 22:19:19] Production.INFO: ProcessCDR(1,14219927,1,1,2) [2025-01-10 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219927', 'tblTempUsageDetail_20' ) start [2025-01-10 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219927', 'tblTempUsageDetail_20' ) end [2025-01-10 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:19:23] Production.INFO: ==1943== Releasing lock... [2025-01-10 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:20:05 [end_date_ymd] => 2025-01-10 22:20:05 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:20:05' and `end` < '2025-01-10 22: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-01-10 22:20:18] Production.INFO: count ==1281 [2025-01-10 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:20:05 - End Time 2025-01-10 22:20:05 [2025-01-10 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219933', 'tblTempUsageDetail_20' ) start [2025-01-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219933', 'tblTempUsageDetail_20' ) end [2025-01-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219933', 'tblTempVendorCDR_20' ) start [2025-01-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219933', 'tblTempVendorCDR_20' ) end [2025-01-10 22:20:18] Production.INFO: ProcessCDR(1,14219933,1,1,2) [2025-01-10 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219933', 'tblTempUsageDetail_20' ) start [2025-01-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219933', 'tblTempUsageDetail_20' ) end [2025-01-10 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:20:22] Production.INFO: ==2015== Releasing lock... [2025-01-10 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:20:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-10 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:21:05 [end_date_ymd] => 2025-01-10 22:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:21:05' and `end` < '2025-01-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-01-10 22:21:18] Production.INFO: count ==1263 [2025-01-10 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:21:05 - End Time 2025-01-10 22:21:05 [2025-01-10 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219938', 'tblTempUsageDetail_20' ) start [2025-01-10 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219938', 'tblTempUsageDetail_20' ) end [2025-01-10 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219938', 'tblTempVendorCDR_20' ) start [2025-01-10 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219938', 'tblTempVendorCDR_20' ) end [2025-01-10 22:21:18] Production.INFO: ProcessCDR(1,14219938,1,1,2) [2025-01-10 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219938', 'tblTempUsageDetail_20' ) start [2025-01-10 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219938', 'tblTempUsageDetail_20' ) end [2025-01-10 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:21:21] Production.INFO: ==2087== Releasing lock... [2025-01-10 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:21:21] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:22:04 [end_date_ymd] => 2025-01-10 22:22:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:22:04' and `end` < '2025-01-10 22: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-01-10 22:22:18] Production.INFO: count ==1266 [2025-01-10 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:22:04 - End Time 2025-01-10 22:22:04 [2025-01-10 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219943', 'tblTempUsageDetail_20' ) start [2025-01-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219943', 'tblTempUsageDetail_20' ) end [2025-01-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219943', 'tblTempVendorCDR_20' ) start [2025-01-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219943', 'tblTempVendorCDR_20' ) end [2025-01-10 22:22:18] Production.INFO: ProcessCDR(1,14219943,1,1,2) [2025-01-10 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219943', 'tblTempUsageDetail_20' ) start [2025-01-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219943', 'tblTempUsageDetail_20' ) end [2025-01-10 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:22:21] Production.INFO: ==2158== Releasing lock... [2025-01-10 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:22:21] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:23:05 [end_date_ymd] => 2025-01-10 22:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:23:05' and `end` < '2025-01-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-01-10 22:23:18] Production.INFO: count ==1269 [2025-01-10 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:23:05 - End Time 2025-01-10 22:23:05 [2025-01-10 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219948', 'tblTempUsageDetail_20' ) start [2025-01-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219948', 'tblTempUsageDetail_20' ) end [2025-01-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219948', 'tblTempVendorCDR_20' ) start [2025-01-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219948', 'tblTempVendorCDR_20' ) end [2025-01-10 22:23:18] Production.INFO: ProcessCDR(1,14219948,1,1,2) [2025-01-10 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219948', 'tblTempUsageDetail_20' ) start [2025-01-10 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219948', 'tblTempUsageDetail_20' ) end [2025-01-10 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:23:23] Production.INFO: ==2230== Releasing lock... [2025-01-10 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:23:23] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:24:04 [end_date_ymd] => 2025-01-10 22:24:04 [RateCDR] => 1 ) [2025-01-10 22:24: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-01-10 19:24:04' and `end` < '2025-01-10 22:24: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-01-10 22:24:18] Production.INFO: count ==1260 [2025-01-10 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:24:04 - End Time 2025-01-10 22:24:04 [2025-01-10 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219953', 'tblTempUsageDetail_20' ) start [2025-01-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219953', 'tblTempUsageDetail_20' ) end [2025-01-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219953', 'tblTempVendorCDR_20' ) start [2025-01-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219953', 'tblTempVendorCDR_20' ) end [2025-01-10 22:24:18] Production.INFO: ProcessCDR(1,14219953,1,1,2) [2025-01-10 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219953', 'tblTempUsageDetail_20' ) start [2025-01-10 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219953', 'tblTempUsageDetail_20' ) end [2025-01-10 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:24:21] Production.INFO: ==2342== Releasing lock... [2025-01-10 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:24:21] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:25:05 [end_date_ymd] => 2025-01-10 22:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:25:05' and `end` < '2025-01-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-01-10 22:25:18] Production.INFO: count ==1257 [2025-01-10 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:25:05 - End Time 2025-01-10 22:25:05 [2025-01-10 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219958', 'tblTempUsageDetail_20' ) start [2025-01-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219958', 'tblTempUsageDetail_20' ) end [2025-01-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219958', 'tblTempVendorCDR_20' ) start [2025-01-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219958', 'tblTempVendorCDR_20' ) end [2025-01-10 22:25:18] Production.INFO: ProcessCDR(1,14219958,1,1,2) [2025-01-10 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219958', 'tblTempUsageDetail_20' ) start [2025-01-10 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219958', 'tblTempUsageDetail_20' ) end [2025-01-10 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:25:21] Production.INFO: ==2413== Releasing lock... [2025-01-10 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:25:21] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:26:04 [end_date_ymd] => 2025-01-10 22:26:04 [RateCDR] => 1 ) [2025-01-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-01-10 19:26:04' and `end` < '2025-01-10 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:26:18] Production.INFO: count ==1260 [2025-01-10 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:26:04 - End Time 2025-01-10 22:26:04 [2025-01-10 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219963', 'tblTempUsageDetail_20' ) start [2025-01-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219963', 'tblTempUsageDetail_20' ) end [2025-01-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219963', 'tblTempVendorCDR_20' ) start [2025-01-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219963', 'tblTempVendorCDR_20' ) end [2025-01-10 22:26:18] Production.INFO: ProcessCDR(1,14219963,1,1,2) [2025-01-10 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219963', 'tblTempUsageDetail_20' ) start [2025-01-10 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219963', 'tblTempUsageDetail_20' ) end [2025-01-10 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:26:21] Production.INFO: ==2484== Releasing lock... [2025-01-10 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:26:21] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:27:05 [end_date_ymd] => 2025-01-10 22:27:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:27:05' and `end` < '2025-01-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-01-10 22:27:19] Production.INFO: count ==1258 [2025-01-10 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:27:05 - End Time 2025-01-10 22:27:05 [2025-01-10 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219968', 'tblTempUsageDetail_20' ) start [2025-01-10 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219968', 'tblTempUsageDetail_20' ) end [2025-01-10 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219968', 'tblTempVendorCDR_20' ) start [2025-01-10 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219968', 'tblTempVendorCDR_20' ) end [2025-01-10 22:27:19] Production.INFO: ProcessCDR(1,14219968,1,1,2) [2025-01-10 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219968', 'tblTempUsageDetail_20' ) start [2025-01-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219968', 'tblTempUsageDetail_20' ) end [2025-01-10 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:27:22] Production.INFO: ==2554== Releasing lock... [2025-01-10 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:27:22] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:28:05 [end_date_ymd] => 2025-01-10 22:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:28:05' and `end` < '2025-01-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-01-10 22:28:18] Production.INFO: count ==1256 [2025-01-10 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:28:05 - End Time 2025-01-10 22:28:05 [2025-01-10 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219973', 'tblTempUsageDetail_20' ) start [2025-01-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219973', 'tblTempUsageDetail_20' ) end [2025-01-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219973', 'tblTempVendorCDR_20' ) start [2025-01-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219973', 'tblTempVendorCDR_20' ) end [2025-01-10 22:28:18] Production.INFO: ProcessCDR(1,14219973,1,1,2) [2025-01-10 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219973', 'tblTempUsageDetail_20' ) start [2025-01-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219973', 'tblTempUsageDetail_20' ) end [2025-01-10 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:28:22] Production.INFO: ==2626== Releasing lock... [2025-01-10 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:28:22] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:29:05 [end_date_ymd] => 2025-01-10 22:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:29:05' and `end` < '2025-01-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-01-10 22:29:18] Production.INFO: count ==1253 [2025-01-10 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:29:05 - End Time 2025-01-10 22:29:05 [2025-01-10 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219978', 'tblTempUsageDetail_20' ) start [2025-01-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219978', 'tblTempUsageDetail_20' ) end [2025-01-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219978', 'tblTempVendorCDR_20' ) start [2025-01-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219978', 'tblTempVendorCDR_20' ) end [2025-01-10 22:29:19] Production.INFO: ProcessCDR(1,14219978,1,1,2) [2025-01-10 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219978', 'tblTempUsageDetail_20' ) start [2025-01-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219978', 'tblTempUsageDetail_20' ) end [2025-01-10 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:29:22] Production.INFO: ==2698== Releasing lock... [2025-01-10 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:29:22] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:30:06 [end_date_ymd] => 2025-01-10 22:30:06 [RateCDR] => 1 ) [2025-01-10 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:30:06' and `end` < '2025-01-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-01-10 22:30:19] Production.INFO: count ==1252 [2025-01-10 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:30:06 - End Time 2025-01-10 22:30:06 [2025-01-10 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219984', 'tblTempUsageDetail_20' ) start [2025-01-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219984', 'tblTempUsageDetail_20' ) end [2025-01-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219984', 'tblTempVendorCDR_20' ) start [2025-01-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219984', 'tblTempVendorCDR_20' ) end [2025-01-10 22:30:19] Production.INFO: ProcessCDR(1,14219984,1,1,2) [2025-01-10 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219984', 'tblTempUsageDetail_20' ) start [2025-01-10 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219984', 'tblTempUsageDetail_20' ) end [2025-01-10 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:30:23] Production.INFO: ==2772== Releasing lock... [2025-01-10 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:30:23] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:31:06 [end_date_ymd] => 2025-01-10 22:31:06 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:31:06' and `end` < '2025-01-10 22: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-01-10 22:31:19] Production.INFO: count ==1238 [2025-01-10 22:31:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:31:06 - End Time 2025-01-10 22:31:06 [2025-01-10 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219989', 'tblTempUsageDetail_20' ) start [2025-01-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219989', 'tblTempUsageDetail_20' ) end [2025-01-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219989', 'tblTempVendorCDR_20' ) start [2025-01-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219989', 'tblTempVendorCDR_20' ) end [2025-01-10 22:31:19] Production.INFO: ProcessCDR(1,14219989,1,1,2) [2025-01-10 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219989', 'tblTempUsageDetail_20' ) start [2025-01-10 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219989', 'tblTempUsageDetail_20' ) end [2025-01-10 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:31:22] Production.INFO: ==2848== Releasing lock... [2025-01-10 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:32:04 [end_date_ymd] => 2025-01-10 22:32:04 [RateCDR] => 1 ) [2025-01-10 22:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:32:04' and `end` < '2025-01-10 22:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:32:18] Production.INFO: count ==1238 [2025-01-10 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:32:04 - End Time 2025-01-10 22:32:04 [2025-01-10 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219994', 'tblTempUsageDetail_20' ) start [2025-01-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219994', 'tblTempUsageDetail_20' ) end [2025-01-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219994', 'tblTempVendorCDR_20' ) start [2025-01-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219994', 'tblTempVendorCDR_20' ) end [2025-01-10 22:32:18] Production.INFO: ProcessCDR(1,14219994,1,1,2) [2025-01-10 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219994', 'tblTempUsageDetail_20' ) start [2025-01-10 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219994', 'tblTempUsageDetail_20' ) end [2025-01-10 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:32:21] Production.INFO: ==2918== Releasing lock... [2025-01-10 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:33:05 [end_date_ymd] => 2025-01-10 22:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:33:05' and `end` < '2025-01-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-01-10 22:33:18] Production.INFO: count ==1235 [2025-01-10 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:33:05 - End Time 2025-01-10 22:33:05 [2025-01-10 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219999', 'tblTempUsageDetail_20' ) start [2025-01-10 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14219999', 'tblTempUsageDetail_20' ) end [2025-01-10 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219999', 'tblTempVendorCDR_20' ) start [2025-01-10 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14219999', 'tblTempVendorCDR_20' ) end [2025-01-10 22:33:18] Production.INFO: ProcessCDR(1,14219999,1,1,2) [2025-01-10 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14219999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14219999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14219999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14219999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219999', 'tblTempUsageDetail_20' ) start [2025-01-10 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14219999', 'tblTempUsageDetail_20' ) end [2025-01-10 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:33:21] Production.INFO: ==2990== Releasing lock... [2025-01-10 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:33:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:34:04 [end_date_ymd] => 2025-01-10 22:34:04 [RateCDR] => 1 ) [2025-01-10 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:34:04' and `end` < '2025-01-10 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:34:18] Production.INFO: count ==1235 [2025-01-10 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:34:04 - End Time 2025-01-10 22:34:04 [2025-01-10 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220004', 'tblTempUsageDetail_20' ) start [2025-01-10 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220004', 'tblTempUsageDetail_20' ) end [2025-01-10 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220004', 'tblTempVendorCDR_20' ) start [2025-01-10 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220004', 'tblTempVendorCDR_20' ) end [2025-01-10 22:34:19] Production.INFO: ProcessCDR(1,14220004,1,1,2) [2025-01-10 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220004', 'tblTempUsageDetail_20' ) start [2025-01-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220004', 'tblTempUsageDetail_20' ) end [2025-01-10 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:34:22] Production.INFO: ==3062== Releasing lock... [2025-01-10 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:35:05 [end_date_ymd] => 2025-01-10 22:35:05 [RateCDR] => 1 ) [2025-01-10 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:35:05' and `end` < '2025-01-10 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:35:18] Production.INFO: count ==1233 [2025-01-10 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:35:05 - End Time 2025-01-10 22:35:05 [2025-01-10 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220009', 'tblTempUsageDetail_20' ) start [2025-01-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220009', 'tblTempUsageDetail_20' ) end [2025-01-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220009', 'tblTempVendorCDR_20' ) start [2025-01-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220009', 'tblTempVendorCDR_20' ) end [2025-01-10 22:35:18] Production.INFO: ProcessCDR(1,14220009,1,1,2) [2025-01-10 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220009', 'tblTempUsageDetail_20' ) start [2025-01-10 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220009', 'tblTempUsageDetail_20' ) end [2025-01-10 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:35:21] Production.INFO: ==3133== Releasing lock... [2025-01-10 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:35:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:36:05 [end_date_ymd] => 2025-01-10 22:36:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:36:05' and `end` < '2025-01-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-01-10 22:36:19] Production.INFO: count ==1231 [2025-01-10 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:36:05 - End Time 2025-01-10 22:36:05 [2025-01-10 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220014', 'tblTempUsageDetail_20' ) start [2025-01-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220014', 'tblTempUsageDetail_20' ) end [2025-01-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220014', 'tblTempVendorCDR_20' ) start [2025-01-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220014', 'tblTempVendorCDR_20' ) end [2025-01-10 22:36:19] Production.INFO: ProcessCDR(1,14220014,1,1,2) [2025-01-10 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220014', 'tblTempUsageDetail_20' ) start [2025-01-10 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220014', 'tblTempUsageDetail_20' ) end [2025-01-10 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:36:22] Production.INFO: ==3205== Releasing lock... [2025-01-10 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:36:22] Production.INFO: 37 MB #Memory Used# [2025-01-10 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:37:05 [end_date_ymd] => 2025-01-10 22:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:37:05' and `end` < '2025-01-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-01-10 22:37:19] Production.INFO: count ==1231 [2025-01-10 22:37:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:37:05 - End Time 2025-01-10 22:37:05 [2025-01-10 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220019', 'tblTempUsageDetail_20' ) start [2025-01-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220019', 'tblTempUsageDetail_20' ) end [2025-01-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220019', 'tblTempVendorCDR_20' ) start [2025-01-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220019', 'tblTempVendorCDR_20' ) end [2025-01-10 22:37:19] Production.INFO: ProcessCDR(1,14220019,1,1,2) [2025-01-10 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220019', 'tblTempUsageDetail_20' ) start [2025-01-10 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220019', 'tblTempUsageDetail_20' ) end [2025-01-10 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:37:23] Production.INFO: ==3275== Releasing lock... [2025-01-10 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:37:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:38:05 [end_date_ymd] => 2025-01-10 22:38:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:38:05' and `end` < '2025-01-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-01-10 22:38:18] Production.INFO: count ==1228 [2025-01-10 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:38:05 - End Time 2025-01-10 22:38:05 [2025-01-10 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220024', 'tblTempUsageDetail_20' ) start [2025-01-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220024', 'tblTempUsageDetail_20' ) end [2025-01-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220024', 'tblTempVendorCDR_20' ) start [2025-01-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220024', 'tblTempVendorCDR_20' ) end [2025-01-10 22:38:18] Production.INFO: ProcessCDR(1,14220024,1,1,2) [2025-01-10 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220024', 'tblTempUsageDetail_20' ) start [2025-01-10 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220024', 'tblTempUsageDetail_20' ) end [2025-01-10 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:38:22] Production.INFO: ==3351== Releasing lock... [2025-01-10 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:39:05 [end_date_ymd] => 2025-01-10 22:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:39:05' and `end` < '2025-01-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-01-10 22:39:18] Production.INFO: count ==1228 [2025-01-10 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:39:05 - End Time 2025-01-10 22:39:05 [2025-01-10 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220029', 'tblTempUsageDetail_20' ) start [2025-01-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220029', 'tblTempUsageDetail_20' ) end [2025-01-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220029', 'tblTempVendorCDR_20' ) start [2025-01-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220029', 'tblTempVendorCDR_20' ) end [2025-01-10 22:39:18] Production.INFO: ProcessCDR(1,14220029,1,1,2) [2025-01-10 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220029', 'tblTempUsageDetail_20' ) start [2025-01-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220029', 'tblTempUsageDetail_20' ) end [2025-01-10 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:39:21] Production.INFO: ==3467== Releasing lock... [2025-01-10 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:39:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:40:06 [end_date_ymd] => 2025-01-10 22:40:06 [RateCDR] => 1 ) [2025-01-10 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:40:06' and `end` < '2025-01-10 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:40:19] Production.INFO: count ==1226 [2025-01-10 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:40:06 - End Time 2025-01-10 22:40:06 [2025-01-10 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220035', 'tblTempUsageDetail_20' ) start [2025-01-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220035', 'tblTempUsageDetail_20' ) end [2025-01-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220035', 'tblTempVendorCDR_20' ) start [2025-01-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220035', 'tblTempVendorCDR_20' ) end [2025-01-10 22:40:19] Production.INFO: ProcessCDR(1,14220035,1,1,2) [2025-01-10 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220035', 'tblTempUsageDetail_20' ) start [2025-01-10 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220035', 'tblTempUsageDetail_20' ) end [2025-01-10 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:40:24] Production.INFO: ==3541== Releasing lock... [2025-01-10 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:40:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-10 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:41:05 [end_date_ymd] => 2025-01-10 22:41:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:41:05' and `end` < '2025-01-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-01-10 22:41:18] Production.INFO: count ==1195 [2025-01-10 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:41:05 - End Time 2025-01-10 22:41:05 [2025-01-10 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220040', 'tblTempUsageDetail_20' ) start [2025-01-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220040', 'tblTempUsageDetail_20' ) end [2025-01-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220040', 'tblTempVendorCDR_20' ) start [2025-01-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220040', 'tblTempVendorCDR_20' ) end [2025-01-10 22:41:18] Production.INFO: ProcessCDR(1,14220040,1,1,2) [2025-01-10 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220040', 'tblTempUsageDetail_20' ) start [2025-01-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220040', 'tblTempUsageDetail_20' ) end [2025-01-10 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:41:22] Production.INFO: ==3615== Releasing lock... [2025-01-10 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:42:05 [end_date_ymd] => 2025-01-10 22:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:42:05' and `end` < '2025-01-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-01-10 22:42:19] Production.INFO: count ==1195 [2025-01-10 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:42:05 - End Time 2025-01-10 22:42:05 [2025-01-10 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220045', 'tblTempUsageDetail_20' ) start [2025-01-10 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220045', 'tblTempUsageDetail_20' ) end [2025-01-10 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220045', 'tblTempVendorCDR_20' ) start [2025-01-10 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220045', 'tblTempVendorCDR_20' ) end [2025-01-10 22:42:19] Production.INFO: ProcessCDR(1,14220045,1,1,2) [2025-01-10 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220045', 'tblTempUsageDetail_20' ) start [2025-01-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220045', 'tblTempUsageDetail_20' ) end [2025-01-10 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:42:22] Production.INFO: ==3692== Releasing lock... [2025-01-10 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:42:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:43:04 [end_date_ymd] => 2025-01-10 22:43:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:43:04' and `end` < '2025-01-10 22: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-01-10 22:43:18] Production.INFO: count ==1195 [2025-01-10 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:43:04 - End Time 2025-01-10 22:43:04 [2025-01-10 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220050', 'tblTempUsageDetail_20' ) start [2025-01-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220050', 'tblTempUsageDetail_20' ) end [2025-01-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220050', 'tblTempVendorCDR_20' ) start [2025-01-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220050', 'tblTempVendorCDR_20' ) end [2025-01-10 22:43:18] Production.INFO: ProcessCDR(1,14220050,1,1,2) [2025-01-10 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220050', 'tblTempUsageDetail_20' ) start [2025-01-10 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220050', 'tblTempUsageDetail_20' ) end [2025-01-10 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:43:21] Production.INFO: ==3776== Releasing lock... [2025-01-10 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:44:05 [end_date_ymd] => 2025-01-10 22:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:44:05' and `end` < '2025-01-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-01-10 22:44:20] Production.INFO: count ==1195 [2025-01-10 22:44:20] Production.ERROR: pbx CDR StartTime 2025-01-10 19:44:05 - End Time 2025-01-10 22:44:05 [2025-01-10 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220055', 'tblTempUsageDetail_20' ) start [2025-01-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220055', 'tblTempUsageDetail_20' ) end [2025-01-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220055', 'tblTempVendorCDR_20' ) start [2025-01-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220055', 'tblTempVendorCDR_20' ) end [2025-01-10 22:44:20] Production.INFO: ProcessCDR(1,14220055,1,1,2) [2025-01-10 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220055', 'tblTempUsageDetail_20' ) start [2025-01-10 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220055', 'tblTempUsageDetail_20' ) end [2025-01-10 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:44:23] Production.INFO: ==3867== Releasing lock... [2025-01-10 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:44:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:45:06 [end_date_ymd] => 2025-01-10 22:45:06 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:45:06' and `end` < '2025-01-10 22: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-01-10 22:45:19] Production.INFO: count ==1195 [2025-01-10 22:45:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:45:06 - End Time 2025-01-10 22:45:06 [2025-01-10 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220060', 'tblTempUsageDetail_20' ) start [2025-01-10 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220060', 'tblTempUsageDetail_20' ) end [2025-01-10 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220060', 'tblTempVendorCDR_20' ) start [2025-01-10 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220060', 'tblTempVendorCDR_20' ) end [2025-01-10 22:45:19] Production.INFO: ProcessCDR(1,14220060,1,1,2) [2025-01-10 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220060', 'tblTempUsageDetail_20' ) start [2025-01-10 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220060', 'tblTempUsageDetail_20' ) end [2025-01-10 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:45:22] Production.INFO: ==3951== Releasing lock... [2025-01-10 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:45:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:46:05 [end_date_ymd] => 2025-01-10 22:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:46:05' and `end` < '2025-01-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-01-10 22:46:19] Production.INFO: count ==1195 [2025-01-10 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:46:05 - End Time 2025-01-10 22:46:05 [2025-01-10 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220065', 'tblTempUsageDetail_20' ) start [2025-01-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220065', 'tblTempUsageDetail_20' ) end [2025-01-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220065', 'tblTempVendorCDR_20' ) start [2025-01-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220065', 'tblTempVendorCDR_20' ) end [2025-01-10 22:46:19] Production.INFO: ProcessCDR(1,14220065,1,1,2) [2025-01-10 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220065', 'tblTempUsageDetail_20' ) start [2025-01-10 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220065', 'tblTempUsageDetail_20' ) end [2025-01-10 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:46:22] Production.INFO: ==4033== Releasing lock... [2025-01-10 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:47:05 [end_date_ymd] => 2025-01-10 22:47:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:47:05' and `end` < '2025-01-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-01-10 22:47:18] Production.INFO: count ==1195 [2025-01-10 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:47:05 - End Time 2025-01-10 22:47:05 [2025-01-10 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220070', 'tblTempUsageDetail_20' ) start [2025-01-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220070', 'tblTempUsageDetail_20' ) end [2025-01-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220070', 'tblTempVendorCDR_20' ) start [2025-01-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220070', 'tblTempVendorCDR_20' ) end [2025-01-10 22:47:18] Production.INFO: ProcessCDR(1,14220070,1,1,2) [2025-01-10 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220070', 'tblTempUsageDetail_20' ) start [2025-01-10 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220070', 'tblTempUsageDetail_20' ) end [2025-01-10 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:47:22] Production.INFO: ==4120== Releasing lock... [2025-01-10 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:48:05 [end_date_ymd] => 2025-01-10 22:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:48:05' and `end` < '2025-01-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-01-10 22:48:18] Production.INFO: count ==1193 [2025-01-10 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:48:05 - End Time 2025-01-10 22:48:05 [2025-01-10 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220075', 'tblTempUsageDetail_20' ) start [2025-01-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220075', 'tblTempUsageDetail_20' ) end [2025-01-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220075', 'tblTempVendorCDR_20' ) start [2025-01-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220075', 'tblTempVendorCDR_20' ) end [2025-01-10 22:48:18] Production.INFO: ProcessCDR(1,14220075,1,1,2) [2025-01-10 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220075', 'tblTempUsageDetail_20' ) start [2025-01-10 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220075', 'tblTempUsageDetail_20' ) end [2025-01-10 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:48:21] Production.INFO: ==4206== Releasing lock... [2025-01-10 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:48:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:49:05 [end_date_ymd] => 2025-01-10 22:49:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:49:05' and `end` < '2025-01-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-01-10 22:49:18] Production.INFO: count ==1189 [2025-01-10 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:49:05 - End Time 2025-01-10 22:49:05 [2025-01-10 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220080', 'tblTempUsageDetail_20' ) start [2025-01-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220080', 'tblTempUsageDetail_20' ) end [2025-01-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220080', 'tblTempVendorCDR_20' ) start [2025-01-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220080', 'tblTempVendorCDR_20' ) end [2025-01-10 22:49:18] Production.INFO: ProcessCDR(1,14220080,1,1,2) [2025-01-10 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220080', 'tblTempUsageDetail_20' ) start [2025-01-10 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220080', 'tblTempUsageDetail_20' ) end [2025-01-10 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:49:21] Production.INFO: ==4292== Releasing lock... [2025-01-10 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:49:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:50:05 [end_date_ymd] => 2025-01-10 22:50:05 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:50:05' and `end` < '2025-01-10 22: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-01-10 22:50:18] Production.INFO: count ==1187 [2025-01-10 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:50:05 - End Time 2025-01-10 22:50:05 [2025-01-10 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220086', 'tblTempUsageDetail_20' ) start [2025-01-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220086', 'tblTempUsageDetail_20' ) end [2025-01-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220086', 'tblTempVendorCDR_20' ) start [2025-01-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220086', 'tblTempVendorCDR_20' ) end [2025-01-10 22:50:18] Production.INFO: ProcessCDR(1,14220086,1,1,2) [2025-01-10 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220086', 'tblTempUsageDetail_20' ) start [2025-01-10 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220086', 'tblTempUsageDetail_20' ) end [2025-01-10 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:50:22] Production.INFO: ==4376== Releasing lock... [2025-01-10 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:51:05 [end_date_ymd] => 2025-01-10 22:51:05 [RateCDR] => 1 ) [2025-01-10 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:51:05' and `end` < '2025-01-10 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:51:19] Production.INFO: count ==1160 [2025-01-10 22:51:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:51:05 - End Time 2025-01-10 22:51:05 [2025-01-10 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220091', 'tblTempUsageDetail_20' ) start [2025-01-10 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220091', 'tblTempUsageDetail_20' ) end [2025-01-10 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220091', 'tblTempVendorCDR_20' ) start [2025-01-10 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220091', 'tblTempVendorCDR_20' ) end [2025-01-10 22:51:19] Production.INFO: ProcessCDR(1,14220091,1,1,2) [2025-01-10 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220091', 'tblTempUsageDetail_20' ) start [2025-01-10 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220091', 'tblTempUsageDetail_20' ) end [2025-01-10 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:51:23] Production.INFO: ==4462== Releasing lock... [2025-01-10 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:51:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:52:05 [end_date_ymd] => 2025-01-10 22:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:52:05' and `end` < '2025-01-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-01-10 22:52:18] Production.INFO: count ==1159 [2025-01-10 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:52:05 - End Time 2025-01-10 22:52:05 [2025-01-10 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220096', 'tblTempUsageDetail_20' ) start [2025-01-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220096', 'tblTempUsageDetail_20' ) end [2025-01-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220096', 'tblTempVendorCDR_20' ) start [2025-01-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220096', 'tblTempVendorCDR_20' ) end [2025-01-10 22:52:18] Production.INFO: ProcessCDR(1,14220096,1,1,2) [2025-01-10 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220096', 'tblTempUsageDetail_20' ) start [2025-01-10 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220096', 'tblTempUsageDetail_20' ) end [2025-01-10 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:52:21] Production.INFO: ==4548== Releasing lock... [2025-01-10 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:53:06 [end_date_ymd] => 2025-01-10 22:53:06 [RateCDR] => 1 ) [2025-01-10 22:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 19:53:06' and `end` < '2025-01-10 22:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 22:53:19] Production.INFO: count ==1160 [2025-01-10 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:53:06 - End Time 2025-01-10 22:53:06 [2025-01-10 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220101', 'tblTempUsageDetail_20' ) start [2025-01-10 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220101', 'tblTempUsageDetail_20' ) end [2025-01-10 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220101', 'tblTempVendorCDR_20' ) start [2025-01-10 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220101', 'tblTempVendorCDR_20' ) end [2025-01-10 22:53:19] Production.INFO: ProcessCDR(1,14220101,1,1,2) [2025-01-10 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220101', 'tblTempUsageDetail_20' ) start [2025-01-10 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220101', 'tblTempUsageDetail_20' ) end [2025-01-10 22:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:53:24] Production.INFO: ==4642== Releasing lock... [2025-01-10 22:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:53:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:54:04 [end_date_ymd] => 2025-01-10 22:54:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:54:04' and `end` < '2025-01-10 22: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-01-10 22:54:17] Production.INFO: count ==1194 [2025-01-10 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:54:04 - End Time 2025-01-10 22:54:04 [2025-01-10 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220106', 'tblTempUsageDetail_20' ) start [2025-01-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220106', 'tblTempUsageDetail_20' ) end [2025-01-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220106', 'tblTempVendorCDR_20' ) start [2025-01-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220106', 'tblTempVendorCDR_20' ) end [2025-01-10 22:54:18] Production.INFO: ProcessCDR(1,14220106,1,1,2) [2025-01-10 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220106', 'tblTempUsageDetail_20' ) start [2025-01-10 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220106', 'tblTempUsageDetail_20' ) end [2025-01-10 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:54:22] Production.INFO: ==4729== Releasing lock... [2025-01-10 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:55:05 [end_date_ymd] => 2025-01-10 22:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:55:05' and `end` < '2025-01-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-01-10 22:55:19] Production.INFO: count ==1196 [2025-01-10 22:55:19] Production.ERROR: pbx CDR StartTime 2025-01-10 19:55:05 - End Time 2025-01-10 22:55:05 [2025-01-10 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220111', 'tblTempUsageDetail_20' ) start [2025-01-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220111', 'tblTempUsageDetail_20' ) end [2025-01-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220111', 'tblTempVendorCDR_20' ) start [2025-01-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220111', 'tblTempVendorCDR_20' ) end [2025-01-10 22:55:19] Production.INFO: ProcessCDR(1,14220111,1,1,2) [2025-01-10 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220111', 'tblTempUsageDetail_20' ) start [2025-01-10 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220111', 'tblTempUsageDetail_20' ) end [2025-01-10 22:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:55:24] Production.INFO: ==4852== Releasing lock... [2025-01-10 22:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:55:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:56:05 [end_date_ymd] => 2025-01-10 22:56:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:56:05' and `end` < '2025-01-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-01-10 22:56:18] Production.INFO: count ==1191 [2025-01-10 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:56:05 - End Time 2025-01-10 22:56:05 [2025-01-10 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220116', 'tblTempUsageDetail_20' ) start [2025-01-10 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220116', 'tblTempUsageDetail_20' ) end [2025-01-10 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220116', 'tblTempVendorCDR_20' ) start [2025-01-10 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220116', 'tblTempVendorCDR_20' ) end [2025-01-10 22:56:18] Production.INFO: ProcessCDR(1,14220116,1,1,2) [2025-01-10 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220116', 'tblTempUsageDetail_20' ) start [2025-01-10 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220116', 'tblTempUsageDetail_20' ) end [2025-01-10 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:56:21] Production.INFO: ==4937== Releasing lock... [2025-01-10 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:57:05 [end_date_ymd] => 2025-01-10 22:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:57:05' and `end` < '2025-01-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-01-10 22:57:18] Production.INFO: count ==1188 [2025-01-10 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:57:05 - End Time 2025-01-10 22:57:05 [2025-01-10 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220121', 'tblTempUsageDetail_20' ) start [2025-01-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220121', 'tblTempUsageDetail_20' ) end [2025-01-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220121', 'tblTempVendorCDR_20' ) start [2025-01-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220121', 'tblTempVendorCDR_20' ) end [2025-01-10 22:57:18] Production.INFO: ProcessCDR(1,14220121,1,1,2) [2025-01-10 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220121', 'tblTempUsageDetail_20' ) start [2025-01-10 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220121', 'tblTempUsageDetail_20' ) end [2025-01-10 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:57:21] Production.INFO: ==5025== Releasing lock... [2025-01-10 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:57:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:58:04 [end_date_ymd] => 2025-01-10 22:58:04 [RateCDR] => 1 ) [2025-01-10 22: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-01-10 19:58:04' and `end` < '2025-01-10 22: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-01-10 22:58:17] Production.INFO: count ==1188 [2025-01-10 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:58:04 - End Time 2025-01-10 22:58:04 [2025-01-10 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220126', 'tblTempUsageDetail_20' ) start [2025-01-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220126', 'tblTempUsageDetail_20' ) end [2025-01-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220126', 'tblTempVendorCDR_20' ) start [2025-01-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220126', 'tblTempVendorCDR_20' ) end [2025-01-10 22:58:18] Production.INFO: ProcessCDR(1,14220126,1,1,2) [2025-01-10 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220126', 'tblTempUsageDetail_20' ) start [2025-01-10 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220126', 'tblTempUsageDetail_20' ) end [2025-01-10 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:58:21] Production.INFO: ==5112== Releasing lock... [2025-01-10 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:58:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 19:59:05 [end_date_ymd] => 2025-01-10 22:59:05 [RateCDR] => 1 ) [2025-01-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-01-10 19:59:05' and `end` < '2025-01-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-01-10 22:59:18] Production.INFO: count ==1187 [2025-01-10 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 19:59:05 - End Time 2025-01-10 22:59:05 [2025-01-10 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220131', 'tblTempUsageDetail_20' ) start [2025-01-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220131', 'tblTempUsageDetail_20' ) end [2025-01-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220131', 'tblTempVendorCDR_20' ) start [2025-01-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220131', 'tblTempVendorCDR_20' ) end [2025-01-10 22:59:18] Production.INFO: ProcessCDR(1,14220131,1,1,2) [2025-01-10 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220131', 'tblTempUsageDetail_20' ) start [2025-01-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220131', 'tblTempUsageDetail_20' ) end [2025-01-10 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 22:59:21] Production.INFO: ==5200== Releasing lock... [2025-01-10 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 22:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:00:05 [end_date_ymd] => 2025-01-10 23:00:05 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:00:05' and `end` < '2025-01-10 23: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-01-10 23:00:18] Production.INFO: count ==1187 [2025-01-10 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:00:05 - End Time 2025-01-10 23:00:05 [2025-01-10 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220137', 'tblTempUsageDetail_20' ) start [2025-01-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220137', 'tblTempUsageDetail_20' ) end [2025-01-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220137', 'tblTempVendorCDR_20' ) start [2025-01-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220137', 'tblTempVendorCDR_20' ) end [2025-01-10 23:00:18] Production.INFO: ProcessCDR(1,14220137,1,1,2) [2025-01-10 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220137', 'tblTempUsageDetail_20' ) start [2025-01-10 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220137', 'tblTempUsageDetail_20' ) end [2025-01-10 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:00:21] Production.INFO: ==5287== Releasing lock... [2025-01-10 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:00:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-10 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:01:04 [end_date_ymd] => 2025-01-10 23:01:04 [RateCDR] => 1 ) [2025-01-10 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:01:04' and `end` < '2025-01-10 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:01:18] Production.INFO: count ==1163 [2025-01-10 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:01:04 - End Time 2025-01-10 23:01:04 [2025-01-10 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220142', 'tblTempUsageDetail_20' ) start [2025-01-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220142', 'tblTempUsageDetail_20' ) end [2025-01-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220142', 'tblTempVendorCDR_20' ) start [2025-01-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220142', 'tblTempVendorCDR_20' ) end [2025-01-10 23:01:18] Production.INFO: ProcessCDR(1,14220142,1,1,2) [2025-01-10 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220142', 'tblTempUsageDetail_20' ) start [2025-01-10 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220142', 'tblTempUsageDetail_20' ) end [2025-01-10 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:01:22] Production.INFO: ==5462== Releasing lock... [2025-01-10 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:02:05 [end_date_ymd] => 2025-01-10 23:02:05 [RateCDR] => 1 ) [2025-01-10 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:02:05' and `end` < '2025-01-10 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:02:18] Production.INFO: count ==1165 [2025-01-10 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:02:05 - End Time 2025-01-10 23:02:05 [2025-01-10 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220147', 'tblTempUsageDetail_20' ) start [2025-01-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220147', 'tblTempUsageDetail_20' ) end [2025-01-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220147', 'tblTempVendorCDR_20' ) start [2025-01-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220147', 'tblTempVendorCDR_20' ) end [2025-01-10 23:02:18] Production.INFO: ProcessCDR(1,14220147,1,1,2) [2025-01-10 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220147', 'tblTempUsageDetail_20' ) start [2025-01-10 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220147', 'tblTempUsageDetail_20' ) end [2025-01-10 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:02:22] Production.INFO: ==5555== Releasing lock... [2025-01-10 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:02:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:03:05 [end_date_ymd] => 2025-01-10 23:03:05 [RateCDR] => 1 ) [2025-01-10 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:03:05' and `end` < '2025-01-10 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:03:18] Production.INFO: count ==1168 [2025-01-10 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:03:05 - End Time 2025-01-10 23:03:05 [2025-01-10 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220152', 'tblTempUsageDetail_20' ) start [2025-01-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220152', 'tblTempUsageDetail_20' ) end [2025-01-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220152', 'tblTempVendorCDR_20' ) start [2025-01-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220152', 'tblTempVendorCDR_20' ) end [2025-01-10 23:03:18] Production.INFO: ProcessCDR(1,14220152,1,1,2) [2025-01-10 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220152', 'tblTempUsageDetail_20' ) start [2025-01-10 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220152', 'tblTempUsageDetail_20' ) end [2025-01-10 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:03:21] Production.INFO: ==5648== Releasing lock... [2025-01-10 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:03:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:04:05 [end_date_ymd] => 2025-01-10 23:04:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:04:05' and `end` < '2025-01-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-01-10 23:04:20] Production.INFO: count ==1166 [2025-01-10 23:04:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:04:05 - End Time 2025-01-10 23:04:05 [2025-01-10 23:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220157', 'tblTempUsageDetail_20' ) start [2025-01-10 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220157', 'tblTempUsageDetail_20' ) end [2025-01-10 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220157', 'tblTempVendorCDR_20' ) start [2025-01-10 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220157', 'tblTempVendorCDR_20' ) end [2025-01-10 23:04:20] Production.INFO: ProcessCDR(1,14220157,1,1,2) [2025-01-10 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220157', 'tblTempUsageDetail_20' ) start [2025-01-10 23:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220157', 'tblTempUsageDetail_20' ) end [2025-01-10 23:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:04:24] Production.INFO: ==5740== Releasing lock... [2025-01-10 23:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:04:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:05:05 [end_date_ymd] => 2025-01-10 23:05:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:05:05' and `end` < '2025-01-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-01-10 23:05:18] Production.INFO: count ==1166 [2025-01-10 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:05:05 - End Time 2025-01-10 23:05:05 [2025-01-10 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220162', 'tblTempUsageDetail_20' ) start [2025-01-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220162', 'tblTempUsageDetail_20' ) end [2025-01-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220162', 'tblTempVendorCDR_20' ) start [2025-01-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220162', 'tblTempVendorCDR_20' ) end [2025-01-10 23:05:18] Production.INFO: ProcessCDR(1,14220162,1,1,2) [2025-01-10 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220162', 'tblTempUsageDetail_20' ) start [2025-01-10 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220162', 'tblTempUsageDetail_20' ) end [2025-01-10 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:05:21] Production.INFO: ==5914== Releasing lock... [2025-01-10 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:06:05 [end_date_ymd] => 2025-01-10 23:06:05 [RateCDR] => 1 ) [2025-01-10 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:06:05' and `end` < '2025-01-10 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:06:18] Production.INFO: count ==1161 [2025-01-10 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:06:05 - End Time 2025-01-10 23:06:05 [2025-01-10 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220167', 'tblTempUsageDetail_20' ) start [2025-01-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220167', 'tblTempUsageDetail_20' ) end [2025-01-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220167', 'tblTempVendorCDR_20' ) start [2025-01-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220167', 'tblTempVendorCDR_20' ) end [2025-01-10 23:06:18] Production.INFO: ProcessCDR(1,14220167,1,1,2) [2025-01-10 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220167', 'tblTempUsageDetail_20' ) start [2025-01-10 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220167', 'tblTempUsageDetail_20' ) end [2025-01-10 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:06:21] Production.INFO: ==6007== Releasing lock... [2025-01-10 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:06:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:07:04 [end_date_ymd] => 2025-01-10 23:07:04 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:07:04' and `end` < '2025-01-10 23: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-01-10 23:07:18] Production.INFO: count ==1160 [2025-01-10 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:07:04 - End Time 2025-01-10 23:07:04 [2025-01-10 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220172', 'tblTempUsageDetail_20' ) start [2025-01-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220172', 'tblTempUsageDetail_20' ) end [2025-01-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220172', 'tblTempVendorCDR_20' ) start [2025-01-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220172', 'tblTempVendorCDR_20' ) end [2025-01-10 23:07:18] Production.INFO: ProcessCDR(1,14220172,1,1,2) [2025-01-10 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220172', 'tblTempUsageDetail_20' ) start [2025-01-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220172', 'tblTempUsageDetail_20' ) end [2025-01-10 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:07:22] Production.INFO: ==6099== Releasing lock... [2025-01-10 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:08:05 [end_date_ymd] => 2025-01-10 23:08:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:08:05' and `end` < '2025-01-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-01-10 23:08:18] Production.INFO: count ==1162 [2025-01-10 23:08:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:08:05 - End Time 2025-01-10 23:08:05 [2025-01-10 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220177', 'tblTempUsageDetail_20' ) start [2025-01-10 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220177', 'tblTempUsageDetail_20' ) end [2025-01-10 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220177', 'tblTempVendorCDR_20' ) start [2025-01-10 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220177', 'tblTempVendorCDR_20' ) end [2025-01-10 23:08:19] Production.INFO: ProcessCDR(1,14220177,1,1,2) [2025-01-10 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220177', 'tblTempUsageDetail_20' ) start [2025-01-10 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220177', 'tblTempUsageDetail_20' ) end [2025-01-10 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:08:22] Production.INFO: ==6269== Releasing lock... [2025-01-10 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:08:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:09:05 [end_date_ymd] => 2025-01-10 23:09:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:09:05' and `end` < '2025-01-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-01-10 23:09:18] Production.INFO: count ==1161 [2025-01-10 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:09:05 - End Time 2025-01-10 23:09:05 [2025-01-10 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220182', 'tblTempUsageDetail_20' ) start [2025-01-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220182', 'tblTempUsageDetail_20' ) end [2025-01-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220182', 'tblTempVendorCDR_20' ) start [2025-01-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220182', 'tblTempVendorCDR_20' ) end [2025-01-10 23:09:18] Production.INFO: ProcessCDR(1,14220182,1,1,2) [2025-01-10 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220182', 'tblTempUsageDetail_20' ) start [2025-01-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220182', 'tblTempUsageDetail_20' ) end [2025-01-10 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:09:22] Production.INFO: ==6362== Releasing lock... [2025-01-10 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:10:05 [end_date_ymd] => 2025-01-10 23:10:05 [RateCDR] => 1 ) [2025-01-10 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:10:05' and `end` < '2025-01-10 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:10:18] Production.INFO: count ==1161 [2025-01-10 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:10:05 - End Time 2025-01-10 23:10:05 [2025-01-10 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220187', 'tblTempUsageDetail_20' ) start [2025-01-10 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220187', 'tblTempUsageDetail_20' ) end [2025-01-10 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220187', 'tblTempVendorCDR_20' ) start [2025-01-10 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220187', 'tblTempVendorCDR_20' ) end [2025-01-10 23:10:18] Production.INFO: ProcessCDR(1,14220187,1,1,2) [2025-01-10 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220187', 'tblTempUsageDetail_20' ) start [2025-01-10 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220187', 'tblTempUsageDetail_20' ) end [2025-01-10 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:10:21] Production.INFO: ==6461== Releasing lock... [2025-01-10 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:10:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-10 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:11:05 [end_date_ymd] => 2025-01-10 23:11:05 [RateCDR] => 1 ) [2025-01-10 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:11:05' and `end` < '2025-01-10 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:11:18] Production.INFO: count ==1132 [2025-01-10 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:11:05 - End Time 2025-01-10 23:11:05 [2025-01-10 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220193', 'tblTempUsageDetail_20' ) start [2025-01-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220193', 'tblTempUsageDetail_20' ) end [2025-01-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220193', 'tblTempVendorCDR_20' ) start [2025-01-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220193', 'tblTempVendorCDR_20' ) end [2025-01-10 23:11:18] Production.INFO: ProcessCDR(1,14220193,1,1,2) [2025-01-10 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220193', 'tblTempUsageDetail_20' ) start [2025-01-10 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220193', 'tblTempUsageDetail_20' ) end [2025-01-10 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:11:22] Production.INFO: ==6596== Releasing lock... [2025-01-10 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:11:22] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:12:05 [end_date_ymd] => 2025-01-10 23:12:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:12:05' and `end` < '2025-01-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-01-10 23:12:19] Production.INFO: count ==1132 [2025-01-10 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:12:05 - End Time 2025-01-10 23:12:05 [2025-01-10 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220198', 'tblTempUsageDetail_20' ) start [2025-01-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220198', 'tblTempUsageDetail_20' ) end [2025-01-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220198', 'tblTempVendorCDR_20' ) start [2025-01-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220198', 'tblTempVendorCDR_20' ) end [2025-01-10 23:12:19] Production.INFO: ProcessCDR(1,14220198,1,1,2) [2025-01-10 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220198', 'tblTempUsageDetail_20' ) start [2025-01-10 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220198', 'tblTempUsageDetail_20' ) end [2025-01-10 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:12:22] Production.INFO: ==6764== Releasing lock... [2025-01-10 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:12:22] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:13:04 [end_date_ymd] => 2025-01-10 23:13:04 [RateCDR] => 1 ) [2025-01-10 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:13:04' and `end` < '2025-01-10 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:13:18] Production.INFO: count ==1131 [2025-01-10 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:13:04 - End Time 2025-01-10 23:13:04 [2025-01-10 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220203', 'tblTempUsageDetail_20' ) start [2025-01-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220203', 'tblTempUsageDetail_20' ) end [2025-01-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220203', 'tblTempVendorCDR_20' ) start [2025-01-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220203', 'tblTempVendorCDR_20' ) end [2025-01-10 23:13:18] Production.INFO: ProcessCDR(1,14220203,1,1,2) [2025-01-10 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220203', 'tblTempUsageDetail_20' ) start [2025-01-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220203', 'tblTempUsageDetail_20' ) end [2025-01-10 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:13:21] Production.INFO: ==6858== Releasing lock... [2025-01-10 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:13:22] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:14:05 [end_date_ymd] => 2025-01-10 23:14:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:14:05' and `end` < '2025-01-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-01-10 23:14:18] Production.INFO: count ==1128 [2025-01-10 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:14:05 - End Time 2025-01-10 23:14:05 [2025-01-10 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220208', 'tblTempUsageDetail_20' ) start [2025-01-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220208', 'tblTempUsageDetail_20' ) end [2025-01-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220208', 'tblTempVendorCDR_20' ) start [2025-01-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220208', 'tblTempVendorCDR_20' ) end [2025-01-10 23:14:18] Production.INFO: ProcessCDR(1,14220208,1,1,2) [2025-01-10 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220208', 'tblTempUsageDetail_20' ) start [2025-01-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220208', 'tblTempUsageDetail_20' ) end [2025-01-10 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:14:21] Production.INFO: ==6946== Releasing lock... [2025-01-10 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:14:21] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:15:05 [end_date_ymd] => 2025-01-10 23:15:05 [RateCDR] => 1 ) [2025-01-10 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:15:05' and `end` < '2025-01-10 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:15:18] Production.INFO: count ==1127 [2025-01-10 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:15:05 - End Time 2025-01-10 23:15:05 [2025-01-10 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220213', 'tblTempUsageDetail_20' ) start [2025-01-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220213', 'tblTempUsageDetail_20' ) end [2025-01-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220213', 'tblTempVendorCDR_20' ) start [2025-01-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220213', 'tblTempVendorCDR_20' ) end [2025-01-10 23:15:18] Production.INFO: ProcessCDR(1,14220213,1,1,2) [2025-01-10 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220213', 'tblTempUsageDetail_20' ) start [2025-01-10 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220213', 'tblTempUsageDetail_20' ) end [2025-01-10 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:15:21] Production.INFO: ==7122== Releasing lock... [2025-01-10 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:15:21] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:16:05 [end_date_ymd] => 2025-01-10 23:16:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:16:05' and `end` < '2025-01-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-01-10 23:16:20] Production.INFO: count ==1127 [2025-01-10 23:16:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:16:05 - End Time 2025-01-10 23:16:05 [2025-01-10 23:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220218', 'tblTempUsageDetail_20' ) start [2025-01-10 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220218', 'tblTempUsageDetail_20' ) end [2025-01-10 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220218', 'tblTempVendorCDR_20' ) start [2025-01-10 23:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220218', 'tblTempVendorCDR_20' ) end [2025-01-10 23:16:20] Production.INFO: ProcessCDR(1,14220218,1,1,2) [2025-01-10 23:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220218', 'tblTempUsageDetail_20' ) start [2025-01-10 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220218', 'tblTempUsageDetail_20' ) end [2025-01-10 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:16:23] Production.INFO: ==7215== Releasing lock... [2025-01-10 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:16:23] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:17:05 [end_date_ymd] => 2025-01-10 23:17:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:17:05' and `end` < '2025-01-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-01-10 23:17:18] Production.INFO: count ==1127 [2025-01-10 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:17:05 - End Time 2025-01-10 23:17:05 [2025-01-10 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220223', 'tblTempUsageDetail_20' ) start [2025-01-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220223', 'tblTempUsageDetail_20' ) end [2025-01-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220223', 'tblTempVendorCDR_20' ) start [2025-01-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220223', 'tblTempVendorCDR_20' ) end [2025-01-10 23:17:18] Production.INFO: ProcessCDR(1,14220223,1,1,2) [2025-01-10 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220223', 'tblTempUsageDetail_20' ) start [2025-01-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220223', 'tblTempUsageDetail_20' ) end [2025-01-10 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:17:21] Production.INFO: ==7307== Releasing lock... [2025-01-10 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:17:21] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:18:04 [end_date_ymd] => 2025-01-10 23:18:04 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:18:04' and `end` < '2025-01-10 23: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-01-10 23:18:18] Production.INFO: count ==1118 [2025-01-10 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:18:04 - End Time 2025-01-10 23:18:04 [2025-01-10 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220228', 'tblTempUsageDetail_20' ) start [2025-01-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220228', 'tblTempUsageDetail_20' ) end [2025-01-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220228', 'tblTempVendorCDR_20' ) start [2025-01-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220228', 'tblTempVendorCDR_20' ) end [2025-01-10 23:18:18] Production.INFO: ProcessCDR(1,14220228,1,1,2) [2025-01-10 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220228', 'tblTempUsageDetail_20' ) start [2025-01-10 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220228', 'tblTempUsageDetail_20' ) end [2025-01-10 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:18:23] Production.INFO: ==7397== Releasing lock... [2025-01-10 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:18:23] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:19:05 [end_date_ymd] => 2025-01-10 23:19:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:19:05' and `end` < '2025-01-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-01-10 23:19:19] Production.INFO: count ==1115 [2025-01-10 23:19:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:19:05 - End Time 2025-01-10 23:19:05 [2025-01-10 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220233', 'tblTempUsageDetail_20' ) start [2025-01-10 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220233', 'tblTempUsageDetail_20' ) end [2025-01-10 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220233', 'tblTempVendorCDR_20' ) start [2025-01-10 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220233', 'tblTempVendorCDR_20' ) end [2025-01-10 23:19:20] Production.INFO: ProcessCDR(1,14220233,1,1,2) [2025-01-10 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220233', 'tblTempUsageDetail_20' ) start [2025-01-10 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220233', 'tblTempUsageDetail_20' ) end [2025-01-10 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:19:23] Production.INFO: ==7485== Releasing lock... [2025-01-10 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:19:23] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:20:05 [end_date_ymd] => 2025-01-10 23:20:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:20:05' and `end` < '2025-01-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-01-10 23:20:18] Production.INFO: count ==1116 [2025-01-10 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:20:05 - End Time 2025-01-10 23:20:05 [2025-01-10 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220239', 'tblTempUsageDetail_20' ) start [2025-01-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220239', 'tblTempUsageDetail_20' ) end [2025-01-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220239', 'tblTempVendorCDR_20' ) start [2025-01-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220239', 'tblTempVendorCDR_20' ) end [2025-01-10 23:20:18] Production.INFO: ProcessCDR(1,14220239,1,1,2) [2025-01-10 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220239', 'tblTempUsageDetail_20' ) start [2025-01-10 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220239', 'tblTempUsageDetail_20' ) end [2025-01-10 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:20:21] Production.INFO: ==7576== Releasing lock... [2025-01-10 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:20:21] Production.INFO: 36 MB #Memory Used# [2025-01-10 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:21:05 [end_date_ymd] => 2025-01-10 23:21:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:21:05' and `end` < '2025-01-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-01-10 23:21:18] Production.INFO: count ==1084 [2025-01-10 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:21:05 - End Time 2025-01-10 23:21:05 [2025-01-10 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220244', 'tblTempUsageDetail_20' ) start [2025-01-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220244', 'tblTempUsageDetail_20' ) end [2025-01-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220244', 'tblTempVendorCDR_20' ) start [2025-01-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220244', 'tblTempVendorCDR_20' ) end [2025-01-10 23:21:18] Production.INFO: ProcessCDR(1,14220244,1,1,2) [2025-01-10 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220244', 'tblTempUsageDetail_20' ) start [2025-01-10 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220244', 'tblTempUsageDetail_20' ) end [2025-01-10 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:21:21] Production.INFO: ==7658== Releasing lock... [2025-01-10 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:21:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:22:05 [end_date_ymd] => 2025-01-10 23:22:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:22:05' and `end` < '2025-01-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-01-10 23:22:18] Production.INFO: count ==1082 [2025-01-10 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:22:05 - End Time 2025-01-10 23:22:05 [2025-01-10 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220249', 'tblTempUsageDetail_20' ) start [2025-01-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220249', 'tblTempUsageDetail_20' ) end [2025-01-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220249', 'tblTempVendorCDR_20' ) start [2025-01-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220249', 'tblTempVendorCDR_20' ) end [2025-01-10 23:22:19] Production.INFO: ProcessCDR(1,14220249,1,1,2) [2025-01-10 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220249', 'tblTempUsageDetail_20' ) start [2025-01-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220249', 'tblTempUsageDetail_20' ) end [2025-01-10 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:22:22] Production.INFO: ==7741== Releasing lock... [2025-01-10 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:22:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:23:05 [end_date_ymd] => 2025-01-10 23:23:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:23:05' and `end` < '2025-01-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-01-10 23:23:18] Production.INFO: count ==1081 [2025-01-10 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:23:05 - End Time 2025-01-10 23:23:05 [2025-01-10 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220254', 'tblTempUsageDetail_20' ) start [2025-01-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220254', 'tblTempUsageDetail_20' ) end [2025-01-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220254', 'tblTempVendorCDR_20' ) start [2025-01-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220254', 'tblTempVendorCDR_20' ) end [2025-01-10 23:23:18] Production.INFO: ProcessCDR(1,14220254,1,1,2) [2025-01-10 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220254', 'tblTempUsageDetail_20' ) start [2025-01-10 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220254', 'tblTempUsageDetail_20' ) end [2025-01-10 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:23:21] Production.INFO: ==7826== Releasing lock... [2025-01-10 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:23:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:24:05 [end_date_ymd] => 2025-01-10 23:24:05 [RateCDR] => 1 ) [2025-01-10 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:24:05' and `end` < '2025-01-10 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:24:19] Production.INFO: count ==1081 [2025-01-10 23:24:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:24:05 - End Time 2025-01-10 23:24:05 [2025-01-10 23:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220259', 'tblTempUsageDetail_20' ) start [2025-01-10 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220259', 'tblTempUsageDetail_20' ) end [2025-01-10 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220259', 'tblTempVendorCDR_20' ) start [2025-01-10 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220259', 'tblTempVendorCDR_20' ) end [2025-01-10 23:24:20] Production.INFO: ProcessCDR(1,14220259,1,1,2) [2025-01-10 23:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220259', 'tblTempUsageDetail_20' ) start [2025-01-10 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220259', 'tblTempUsageDetail_20' ) end [2025-01-10 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:24:23] Production.INFO: ==7908== Releasing lock... [2025-01-10 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:24:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:25:05 [end_date_ymd] => 2025-01-10 23:25:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:25:05' and `end` < '2025-01-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-01-10 23:25:18] Production.INFO: count ==1076 [2025-01-10 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:25:05 - End Time 2025-01-10 23:25:05 [2025-01-10 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220264', 'tblTempUsageDetail_20' ) start [2025-01-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220264', 'tblTempUsageDetail_20' ) end [2025-01-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220264', 'tblTempVendorCDR_20' ) start [2025-01-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220264', 'tblTempVendorCDR_20' ) end [2025-01-10 23:25:18] Production.INFO: ProcessCDR(1,14220264,1,1,2) [2025-01-10 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220264', 'tblTempUsageDetail_20' ) start [2025-01-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220264', 'tblTempUsageDetail_20' ) end [2025-01-10 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:25:21] Production.INFO: ==7985== Releasing lock... [2025-01-10 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:25:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:26:05 [end_date_ymd] => 2025-01-10 23:26:05 [RateCDR] => 1 ) [2025-01-10 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:26:05' and `end` < '2025-01-10 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:26:19] Production.INFO: count ==1076 [2025-01-10 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:26:05 - End Time 2025-01-10 23:26:05 [2025-01-10 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220269', 'tblTempUsageDetail_20' ) start [2025-01-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220269', 'tblTempUsageDetail_20' ) end [2025-01-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220269', 'tblTempVendorCDR_20' ) start [2025-01-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220269', 'tblTempVendorCDR_20' ) end [2025-01-10 23:26:19] Production.INFO: ProcessCDR(1,14220269,1,1,2) [2025-01-10 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220269', 'tblTempUsageDetail_20' ) start [2025-01-10 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220269', 'tblTempUsageDetail_20' ) end [2025-01-10 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:26:24] Production.INFO: ==8115== Releasing lock... [2025-01-10 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:26:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:27:04 [end_date_ymd] => 2025-01-10 23:27:04 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:27:04' and `end` < '2025-01-10 23: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-01-10 23:27:18] Production.INFO: count ==1077 [2025-01-10 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:27:04 - End Time 2025-01-10 23:27:04 [2025-01-10 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220274', 'tblTempUsageDetail_20' ) start [2025-01-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220274', 'tblTempUsageDetail_20' ) end [2025-01-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220274', 'tblTempVendorCDR_20' ) start [2025-01-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220274', 'tblTempVendorCDR_20' ) end [2025-01-10 23:27:18] Production.INFO: ProcessCDR(1,14220274,1,1,2) [2025-01-10 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220274', 'tblTempUsageDetail_20' ) start [2025-01-10 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220274', 'tblTempUsageDetail_20' ) end [2025-01-10 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:27:22] Production.INFO: ==8220== Releasing lock... [2025-01-10 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:27:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:28:05 [end_date_ymd] => 2025-01-10 23:28:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:28:05' and `end` < '2025-01-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-01-10 23:28:18] Production.INFO: count ==1077 [2025-01-10 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:28:05 - End Time 2025-01-10 23:28:05 [2025-01-10 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220279', 'tblTempUsageDetail_20' ) start [2025-01-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220279', 'tblTempUsageDetail_20' ) end [2025-01-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220279', 'tblTempVendorCDR_20' ) start [2025-01-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220279', 'tblTempVendorCDR_20' ) end [2025-01-10 23:28:18] Production.INFO: ProcessCDR(1,14220279,1,1,2) [2025-01-10 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220279', 'tblTempUsageDetail_20' ) start [2025-01-10 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220279', 'tblTempUsageDetail_20' ) end [2025-01-10 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:28:23] Production.INFO: ==8320== Releasing lock... [2025-01-10 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:28:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:29:05 [end_date_ymd] => 2025-01-10 23:29:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:29:05' and `end` < '2025-01-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-01-10 23:29:18] Production.INFO: count ==1077 [2025-01-10 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:29:05 - End Time 2025-01-10 23:29:05 [2025-01-10 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220284', 'tblTempUsageDetail_20' ) start [2025-01-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220284', 'tblTempUsageDetail_20' ) end [2025-01-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220284', 'tblTempVendorCDR_20' ) start [2025-01-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220284', 'tblTempVendorCDR_20' ) end [2025-01-10 23:29:18] Production.INFO: ProcessCDR(1,14220284,1,1,2) [2025-01-10 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220284', 'tblTempUsageDetail_20' ) start [2025-01-10 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220284', 'tblTempUsageDetail_20' ) end [2025-01-10 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:29:21] Production.INFO: ==8422== Releasing lock... [2025-01-10 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:29:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:30:05 [end_date_ymd] => 2025-01-10 23:30:05 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:30:05' and `end` < '2025-01-10 23: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-01-10 23:30:19] Production.INFO: count ==1077 [2025-01-10 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:30:05 - End Time 2025-01-10 23:30:05 [2025-01-10 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220290', 'tblTempUsageDetail_20' ) start [2025-01-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220290', 'tblTempUsageDetail_20' ) end [2025-01-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220290', 'tblTempVendorCDR_20' ) start [2025-01-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220290', 'tblTempVendorCDR_20' ) end [2025-01-10 23:30:19] Production.INFO: ProcessCDR(1,14220290,1,1,2) [2025-01-10 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220290', 'tblTempUsageDetail_20' ) start [2025-01-10 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220290', 'tblTempUsageDetail_20' ) end [2025-01-10 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:30:22] Production.INFO: ==8523== Releasing lock... [2025-01-10 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:31:05 [end_date_ymd] => 2025-01-10 23:31:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:31:05' and `end` < '2025-01-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-01-10 23:31:19] Production.INFO: count ==1076 [2025-01-10 23:31:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:31:05 - End Time 2025-01-10 23:31:05 [2025-01-10 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220295', 'tblTempUsageDetail_20' ) start [2025-01-10 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220295', 'tblTempUsageDetail_20' ) end [2025-01-10 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220295', 'tblTempVendorCDR_20' ) start [2025-01-10 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220295', 'tblTempVendorCDR_20' ) end [2025-01-10 23:31:20] Production.INFO: ProcessCDR(1,14220295,1,1,2) [2025-01-10 23:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220295', 'tblTempUsageDetail_20' ) start [2025-01-10 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220295', 'tblTempUsageDetail_20' ) end [2025-01-10 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:31:23] Production.INFO: ==8623== Releasing lock... [2025-01-10 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:31:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:32:05 [end_date_ymd] => 2025-01-10 23:32:05 [RateCDR] => 1 ) [2025-01-10 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:32:05' and `end` < '2025-01-10 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:32:19] Production.INFO: count ==1076 [2025-01-10 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:32:05 - End Time 2025-01-10 23:32:05 [2025-01-10 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220300', 'tblTempUsageDetail_20' ) start [2025-01-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220300', 'tblTempUsageDetail_20' ) end [2025-01-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220300', 'tblTempVendorCDR_20' ) start [2025-01-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220300', 'tblTempVendorCDR_20' ) end [2025-01-10 23:32:19] Production.INFO: ProcessCDR(1,14220300,1,1,2) [2025-01-10 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220300', 'tblTempUsageDetail_20' ) start [2025-01-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220300', 'tblTempUsageDetail_20' ) end [2025-01-10 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:32:22] Production.INFO: ==8720== Releasing lock... [2025-01-10 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:33:05 [end_date_ymd] => 2025-01-10 23:33:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:33:05' and `end` < '2025-01-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-01-10 23:33:18] Production.INFO: count ==1074 [2025-01-10 23:33:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:33:05 - End Time 2025-01-10 23:33:05 [2025-01-10 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220305', 'tblTempUsageDetail_20' ) start [2025-01-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220305', 'tblTempUsageDetail_20' ) end [2025-01-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220305', 'tblTempVendorCDR_20' ) start [2025-01-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220305', 'tblTempVendorCDR_20' ) end [2025-01-10 23:33:18] Production.INFO: ProcessCDR(1,14220305,1,1,2) [2025-01-10 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220305', 'tblTempUsageDetail_20' ) start [2025-01-10 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220305', 'tblTempUsageDetail_20' ) end [2025-01-10 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:33:22] Production.INFO: ==8821== Releasing lock... [2025-01-10 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:34:05 [end_date_ymd] => 2025-01-10 23:34:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:34:05' and `end` < '2025-01-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-01-10 23:34:20] Production.INFO: count ==1074 [2025-01-10 23:34:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:34:05 - End Time 2025-01-10 23:34:05 [2025-01-10 23:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220310', 'tblTempUsageDetail_20' ) start [2025-01-10 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220310', 'tblTempUsageDetail_20' ) end [2025-01-10 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220310', 'tblTempVendorCDR_20' ) start [2025-01-10 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220310', 'tblTempVendorCDR_20' ) end [2025-01-10 23:34:20] Production.INFO: ProcessCDR(1,14220310,1,1,2) [2025-01-10 23:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220310', 'tblTempUsageDetail_20' ) start [2025-01-10 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220310', 'tblTempUsageDetail_20' ) end [2025-01-10 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:34:23] Production.INFO: ==8933== Releasing lock... [2025-01-10 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:34:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:35:05 [end_date_ymd] => 2025-01-10 23:35:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:35:05' and `end` < '2025-01-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-01-10 23:35:18] Production.INFO: count ==1074 [2025-01-10 23:35:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:35:05 - End Time 2025-01-10 23:35:05 [2025-01-10 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220315', 'tblTempUsageDetail_20' ) start [2025-01-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220315', 'tblTempUsageDetail_20' ) end [2025-01-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220315', 'tblTempVendorCDR_20' ) start [2025-01-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220315', 'tblTempVendorCDR_20' ) end [2025-01-10 23:35:19] Production.INFO: ProcessCDR(1,14220315,1,1,2) [2025-01-10 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220315', 'tblTempUsageDetail_20' ) start [2025-01-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220315', 'tblTempUsageDetail_20' ) end [2025-01-10 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:35:22] Production.INFO: ==9042== Releasing lock... [2025-01-10 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:35:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:36:04 [end_date_ymd] => 2025-01-10 23:36:04 [RateCDR] => 1 ) [2025-01-10 23:36: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-01-10 20:36:04' and `end` < '2025-01-10 23:36: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-01-10 23:36:18] Production.INFO: count ==1077 [2025-01-10 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:36:04 - End Time 2025-01-10 23:36:04 [2025-01-10 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220320', 'tblTempUsageDetail_20' ) start [2025-01-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220320', 'tblTempUsageDetail_20' ) end [2025-01-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220320', 'tblTempVendorCDR_20' ) start [2025-01-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220320', 'tblTempVendorCDR_20' ) end [2025-01-10 23:36:18] Production.INFO: ProcessCDR(1,14220320,1,1,2) [2025-01-10 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220320', 'tblTempUsageDetail_20' ) start [2025-01-10 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220320', 'tblTempUsageDetail_20' ) end [2025-01-10 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:36:21] Production.INFO: ==9153== Releasing lock... [2025-01-10 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:37:05 [end_date_ymd] => 2025-01-10 23:37:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:37:05' and `end` < '2025-01-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-01-10 23:37:18] Production.INFO: count ==1077 [2025-01-10 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:37:05 - End Time 2025-01-10 23:37:05 [2025-01-10 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220325', 'tblTempUsageDetail_20' ) start [2025-01-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220325', 'tblTempUsageDetail_20' ) end [2025-01-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220325', 'tblTempVendorCDR_20' ) start [2025-01-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220325', 'tblTempVendorCDR_20' ) end [2025-01-10 23:37:18] Production.INFO: ProcessCDR(1,14220325,1,1,2) [2025-01-10 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220325', 'tblTempUsageDetail_20' ) start [2025-01-10 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220325', 'tblTempUsageDetail_20' ) end [2025-01-10 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:37:22] Production.INFO: ==9258== Releasing lock... [2025-01-10 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:37:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:38:05 [end_date_ymd] => 2025-01-10 23:38:05 [RateCDR] => 1 ) [2025-01-10 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:38:05' and `end` < '2025-01-10 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:38:19] Production.INFO: count ==1081 [2025-01-10 23:38:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:38:05 - End Time 2025-01-10 23:38:05 [2025-01-10 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220330', 'tblTempUsageDetail_20' ) start [2025-01-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220330', 'tblTempUsageDetail_20' ) end [2025-01-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220330', 'tblTempVendorCDR_20' ) start [2025-01-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220330', 'tblTempVendorCDR_20' ) end [2025-01-10 23:38:19] Production.INFO: ProcessCDR(1,14220330,1,1,2) [2025-01-10 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220330', 'tblTempUsageDetail_20' ) start [2025-01-10 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220330', 'tblTempUsageDetail_20' ) end [2025-01-10 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:38:23] Production.INFO: ==9373== Releasing lock... [2025-01-10 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:38:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:39:05 [end_date_ymd] => 2025-01-10 23:39:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:39:05' and `end` < '2025-01-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-01-10 23:39:19] Production.INFO: count ==1081 [2025-01-10 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:39:05 - End Time 2025-01-10 23:39:05 [2025-01-10 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220335', 'tblTempUsageDetail_20' ) start [2025-01-10 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220335', 'tblTempUsageDetail_20' ) end [2025-01-10 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220335', 'tblTempVendorCDR_20' ) start [2025-01-10 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220335', 'tblTempVendorCDR_20' ) end [2025-01-10 23:39:19] Production.INFO: ProcessCDR(1,14220335,1,1,2) [2025-01-10 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220335', 'tblTempUsageDetail_20' ) start [2025-01-10 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220335', 'tblTempUsageDetail_20' ) end [2025-01-10 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:39:22] Production.INFO: ==9484== Releasing lock... [2025-01-10 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:39:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:40:05 [end_date_ymd] => 2025-01-10 23:40:05 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:40:05' and `end` < '2025-01-10 23: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-01-10 23:40:18] Production.INFO: count ==1083 [2025-01-10 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:40:05 - End Time 2025-01-10 23:40:05 [2025-01-10 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220341', 'tblTempUsageDetail_20' ) start [2025-01-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220341', 'tblTempUsageDetail_20' ) end [2025-01-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220341', 'tblTempVendorCDR_20' ) start [2025-01-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220341', 'tblTempVendorCDR_20' ) end [2025-01-10 23:40:18] Production.INFO: ProcessCDR(1,14220341,1,1,2) [2025-01-10 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220341', 'tblTempUsageDetail_20' ) start [2025-01-10 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220341', 'tblTempUsageDetail_20' ) end [2025-01-10 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:40:22] Production.INFO: ==9597== Releasing lock... [2025-01-10 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:41:05 [end_date_ymd] => 2025-01-10 23:41:05 [RateCDR] => 1 ) [2025-01-10 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:41:05' and `end` < '2025-01-10 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:41:18] Production.INFO: count ==1041 [2025-01-10 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:41:05 - End Time 2025-01-10 23:41:05 [2025-01-10 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220346', 'tblTempUsageDetail_20' ) start [2025-01-10 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220346', 'tblTempUsageDetail_20' ) end [2025-01-10 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220346', 'tblTempVendorCDR_20' ) start [2025-01-10 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220346', 'tblTempVendorCDR_20' ) end [2025-01-10 23:41:18] Production.INFO: ProcessCDR(1,14220346,1,1,2) [2025-01-10 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220346', 'tblTempUsageDetail_20' ) start [2025-01-10 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220346', 'tblTempUsageDetail_20' ) end [2025-01-10 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:41:22] Production.INFO: ==9701== Releasing lock... [2025-01-10 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:41:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:42:05 [end_date_ymd] => 2025-01-10 23:42:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:42:05' and `end` < '2025-01-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-01-10 23:42:18] Production.INFO: count ==1041 [2025-01-10 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:42:05 - End Time 2025-01-10 23:42:05 [2025-01-10 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220351', 'tblTempUsageDetail_20' ) start [2025-01-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220351', 'tblTempUsageDetail_20' ) end [2025-01-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220351', 'tblTempVendorCDR_20' ) start [2025-01-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220351', 'tblTempVendorCDR_20' ) end [2025-01-10 23:42:18] Production.INFO: ProcessCDR(1,14220351,1,1,2) [2025-01-10 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220351', 'tblTempUsageDetail_20' ) start [2025-01-10 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220351', 'tblTempUsageDetail_20' ) end [2025-01-10 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:42:21] Production.INFO: ==9834== Releasing lock... [2025-01-10 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:42:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:43:05 [end_date_ymd] => 2025-01-10 23:43:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:43:05' and `end` < '2025-01-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-01-10 23:43:18] Production.INFO: count ==1040 [2025-01-10 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:43:05 - End Time 2025-01-10 23:43:05 [2025-01-10 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220356', 'tblTempUsageDetail_20' ) start [2025-01-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220356', 'tblTempUsageDetail_20' ) end [2025-01-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220356', 'tblTempVendorCDR_20' ) start [2025-01-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220356', 'tblTempVendorCDR_20' ) end [2025-01-10 23:43:18] Production.INFO: ProcessCDR(1,14220356,1,1,2) [2025-01-10 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220356', 'tblTempUsageDetail_20' ) start [2025-01-10 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220356', 'tblTempUsageDetail_20' ) end [2025-01-10 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:43:21] Production.INFO: ==9931== Releasing lock... [2025-01-10 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:43:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:44:05 [end_date_ymd] => 2025-01-10 23:44:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:44:05' and `end` < '2025-01-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-01-10 23:44:18] Production.INFO: count ==1037 [2025-01-10 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:44:05 - End Time 2025-01-10 23:44:05 [2025-01-10 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220361', 'tblTempUsageDetail_20' ) start [2025-01-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220361', 'tblTempUsageDetail_20' ) end [2025-01-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220361', 'tblTempVendorCDR_20' ) start [2025-01-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220361', 'tblTempVendorCDR_20' ) end [2025-01-10 23:44:18] Production.INFO: ProcessCDR(1,14220361,1,1,2) [2025-01-10 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220361', 'tblTempUsageDetail_20' ) start [2025-01-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220361', 'tblTempUsageDetail_20' ) end [2025-01-10 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:44:21] Production.INFO: ==10003== Releasing lock... [2025-01-10 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:44:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:45:05 [end_date_ymd] => 2025-01-10 23:45:05 [RateCDR] => 1 ) [2025-01-10 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:45:05' and `end` < '2025-01-10 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:45:18] Production.INFO: count ==1042 [2025-01-10 23:45:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:45:05 - End Time 2025-01-10 23:45:05 [2025-01-10 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220366', 'tblTempUsageDetail_20' ) start [2025-01-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220366', 'tblTempUsageDetail_20' ) end [2025-01-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220366', 'tblTempVendorCDR_20' ) start [2025-01-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220366', 'tblTempVendorCDR_20' ) end [2025-01-10 23:45:19] Production.INFO: ProcessCDR(1,14220366,1,1,2) [2025-01-10 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220366', 'tblTempUsageDetail_20' ) start [2025-01-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220366', 'tblTempUsageDetail_20' ) end [2025-01-10 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:45:22] Production.INFO: ==10077== Releasing lock... [2025-01-10 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:46:05 [end_date_ymd] => 2025-01-10 23:46:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:46:05' and `end` < '2025-01-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-01-10 23:46:18] Production.INFO: count ==1077 [2025-01-10 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:46:05 - End Time 2025-01-10 23:46:05 [2025-01-10 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220371', 'tblTempUsageDetail_20' ) start [2025-01-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220371', 'tblTempUsageDetail_20' ) end [2025-01-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220371', 'tblTempVendorCDR_20' ) start [2025-01-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220371', 'tblTempVendorCDR_20' ) end [2025-01-10 23:46:18] Production.INFO: ProcessCDR(1,14220371,1,1,2) [2025-01-10 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220371', 'tblTempUsageDetail_20' ) start [2025-01-10 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220371', 'tblTempUsageDetail_20' ) end [2025-01-10 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:46:21] Production.INFO: ==10149== Releasing lock... [2025-01-10 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:46:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:47:05 [end_date_ymd] => 2025-01-10 23:47:05 [RateCDR] => 1 ) [2025-01-10 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:47:05' and `end` < '2025-01-10 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:47:20] Production.INFO: count ==1077 [2025-01-10 23:47:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:47:05 - End Time 2025-01-10 23:47:05 [2025-01-10 23:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220376', 'tblTempUsageDetail_20' ) start [2025-01-10 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220376', 'tblTempUsageDetail_20' ) end [2025-01-10 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220376', 'tblTempVendorCDR_20' ) start [2025-01-10 23:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220376', 'tblTempVendorCDR_20' ) end [2025-01-10 23:47:20] Production.INFO: ProcessCDR(1,14220376,1,1,2) [2025-01-10 23:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220376', 'tblTempUsageDetail_20' ) start [2025-01-10 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220376', 'tblTempUsageDetail_20' ) end [2025-01-10 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:47:23] Production.INFO: ==10219== Releasing lock... [2025-01-10 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:47:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:48:05 [end_date_ymd] => 2025-01-10 23:48:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:48:05' and `end` < '2025-01-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-01-10 23:48:19] Production.INFO: count ==1074 [2025-01-10 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:48:05 - End Time 2025-01-10 23:48:05 [2025-01-10 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220381', 'tblTempUsageDetail_20' ) start [2025-01-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220381', 'tblTempUsageDetail_20' ) end [2025-01-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220381', 'tblTempVendorCDR_20' ) start [2025-01-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220381', 'tblTempVendorCDR_20' ) end [2025-01-10 23:48:19] Production.INFO: ProcessCDR(1,14220381,1,1,2) [2025-01-10 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220381', 'tblTempUsageDetail_20' ) start [2025-01-10 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220381', 'tblTempUsageDetail_20' ) end [2025-01-10 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:48:23] Production.INFO: ==10290== Releasing lock... [2025-01-10 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:48:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:49:05 [end_date_ymd] => 2025-01-10 23:49:05 [RateCDR] => 1 ) [2025-01-10 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:49:05' and `end` < '2025-01-10 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:49:19] Production.INFO: count ==1074 [2025-01-10 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:49:05 - End Time 2025-01-10 23:49:05 [2025-01-10 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220386', 'tblTempUsageDetail_20' ) start [2025-01-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220386', 'tblTempUsageDetail_20' ) end [2025-01-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220386', 'tblTempVendorCDR_20' ) start [2025-01-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220386', 'tblTempVendorCDR_20' ) end [2025-01-10 23:49:19] Production.INFO: ProcessCDR(1,14220386,1,1,2) [2025-01-10 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220386', 'tblTempUsageDetail_20' ) start [2025-01-10 23:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220386', 'tblTempUsageDetail_20' ) end [2025-01-10 23:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:49:24] Production.INFO: ==10370== Releasing lock... [2025-01-10 23:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:49:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:50:05 [end_date_ymd] => 2025-01-10 23:50:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:50:05' and `end` < '2025-01-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-01-10 23:50:19] Production.INFO: count ==1075 [2025-01-10 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:50:05 - End Time 2025-01-10 23:50:05 [2025-01-10 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220392', 'tblTempUsageDetail_20' ) start [2025-01-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220392', 'tblTempUsageDetail_20' ) end [2025-01-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220392', 'tblTempVendorCDR_20' ) start [2025-01-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220392', 'tblTempVendorCDR_20' ) end [2025-01-10 23:50:19] Production.INFO: ProcessCDR(1,14220392,1,1,2) [2025-01-10 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220392', 'tblTempUsageDetail_20' ) start [2025-01-10 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220392', 'tblTempUsageDetail_20' ) end [2025-01-10 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:50:24] Production.INFO: ==10443== Releasing lock... [2025-01-10 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:50:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-10 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:51:05 [end_date_ymd] => 2025-01-10 23:51:05 [RateCDR] => 1 ) [2025-01-10 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:51:05' and `end` < '2025-01-10 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:51:19] Production.INFO: count ==1053 [2025-01-10 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:51:05 - End Time 2025-01-10 23:51:05 [2025-01-10 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220397', 'tblTempUsageDetail_20' ) start [2025-01-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220397', 'tblTempUsageDetail_20' ) end [2025-01-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220397', 'tblTempVendorCDR_20' ) start [2025-01-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220397', 'tblTempVendorCDR_20' ) end [2025-01-10 23:51:19] Production.INFO: ProcessCDR(1,14220397,1,1,2) [2025-01-10 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220397', 'tblTempUsageDetail_20' ) start [2025-01-10 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220397', 'tblTempUsageDetail_20' ) end [2025-01-10 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:51:22] Production.INFO: ==10525== Releasing lock... [2025-01-10 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:51:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:52:05 [end_date_ymd] => 2025-01-10 23:52:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:52:05' and `end` < '2025-01-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-01-10 23:52:18] Production.INFO: count ==1053 [2025-01-10 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:52:05 - End Time 2025-01-10 23:52:05 [2025-01-10 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220402', 'tblTempUsageDetail_20' ) start [2025-01-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220402', 'tblTempUsageDetail_20' ) end [2025-01-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220402', 'tblTempVendorCDR_20' ) start [2025-01-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220402', 'tblTempVendorCDR_20' ) end [2025-01-10 23:52:19] Production.INFO: ProcessCDR(1,14220402,1,1,2) [2025-01-10 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220402', 'tblTempUsageDetail_20' ) start [2025-01-10 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220402', 'tblTempUsageDetail_20' ) end [2025-01-10 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:52:22] Production.INFO: ==10624== Releasing lock... [2025-01-10 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:52:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:53:04 [end_date_ymd] => 2025-01-10 23:53:04 [RateCDR] => 1 ) [2025-01-10 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:53:04' and `end` < '2025-01-10 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:53:18] Production.INFO: count ==1053 [2025-01-10 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:53:04 - End Time 2025-01-10 23:53:04 [2025-01-10 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220407', 'tblTempUsageDetail_20' ) start [2025-01-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220407', 'tblTempUsageDetail_20' ) end [2025-01-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220407', 'tblTempVendorCDR_20' ) start [2025-01-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220407', 'tblTempVendorCDR_20' ) end [2025-01-10 23:53:19] Production.INFO: ProcessCDR(1,14220407,1,1,2) [2025-01-10 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220407', 'tblTempUsageDetail_20' ) start [2025-01-10 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220407', 'tblTempUsageDetail_20' ) end [2025-01-10 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:53:22] Production.INFO: ==10722== Releasing lock... [2025-01-10 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:53:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:54:05 [end_date_ymd] => 2025-01-10 23:54:05 [RateCDR] => 1 ) [2025-01-10 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:54:05' and `end` < '2025-01-10 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:54:18] Production.INFO: count ==1055 [2025-01-10 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:54:05 - End Time 2025-01-10 23:54:05 [2025-01-10 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220412', 'tblTempUsageDetail_20' ) start [2025-01-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220412', 'tblTempUsageDetail_20' ) end [2025-01-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220412', 'tblTempVendorCDR_20' ) start [2025-01-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220412', 'tblTempVendorCDR_20' ) end [2025-01-10 23:54:18] Production.INFO: ProcessCDR(1,14220412,1,1,2) [2025-01-10 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220412', 'tblTempUsageDetail_20' ) start [2025-01-10 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220412', 'tblTempUsageDetail_20' ) end [2025-01-10 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:54:23] Production.INFO: ==10824== Releasing lock... [2025-01-10 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:54:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:55:05 [end_date_ymd] => 2025-01-10 23:55:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:55:05' and `end` < '2025-01-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-01-10 23:55:19] Production.INFO: count ==1052 [2025-01-10 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-10 20:55:05 - End Time 2025-01-10 23:55:05 [2025-01-10 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220417', 'tblTempUsageDetail_20' ) start [2025-01-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220417', 'tblTempUsageDetail_20' ) end [2025-01-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220417', 'tblTempVendorCDR_20' ) start [2025-01-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220417', 'tblTempVendorCDR_20' ) end [2025-01-10 23:55:19] Production.INFO: ProcessCDR(1,14220417,1,1,2) [2025-01-10 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220417', 'tblTempUsageDetail_20' ) start [2025-01-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220417', 'tblTempUsageDetail_20' ) end [2025-01-10 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:55:22] Production.INFO: ==10926== Releasing lock... [2025-01-10 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:55:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:56:05 [end_date_ymd] => 2025-01-10 23:56:05 [RateCDR] => 1 ) [2025-01-10 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:56:05' and `end` < '2025-01-10 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:56:18] Production.INFO: count ==1052 [2025-01-10 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:56:05 - End Time 2025-01-10 23:56:05 [2025-01-10 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220422', 'tblTempUsageDetail_20' ) start [2025-01-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220422', 'tblTempUsageDetail_20' ) end [2025-01-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220422', 'tblTempVendorCDR_20' ) start [2025-01-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220422', 'tblTempVendorCDR_20' ) end [2025-01-10 23:56:18] Production.INFO: ProcessCDR(1,14220422,1,1,2) [2025-01-10 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220422', 'tblTempUsageDetail_20' ) start [2025-01-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220422', 'tblTempUsageDetail_20' ) end [2025-01-10 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:56:22] Production.INFO: ==11026== Releasing lock... [2025-01-10 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:57:05 [end_date_ymd] => 2025-01-10 23:57:05 [RateCDR] => 1 ) [2025-01-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-01-10 20:57:05' and `end` < '2025-01-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-01-10 23:57:18] Production.INFO: count ==1051 [2025-01-10 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:57:05 - End Time 2025-01-10 23:57:05 [2025-01-10 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220427', 'tblTempUsageDetail_20' ) start [2025-01-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220427', 'tblTempUsageDetail_20' ) end [2025-01-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220427', 'tblTempVendorCDR_20' ) start [2025-01-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220427', 'tblTempVendorCDR_20' ) end [2025-01-10 23:57:18] Production.INFO: ProcessCDR(1,14220427,1,1,2) [2025-01-10 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220427', 'tblTempUsageDetail_20' ) start [2025-01-10 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220427', 'tblTempUsageDetail_20' ) end [2025-01-10 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:57:21] Production.INFO: ==11164== Releasing lock... [2025-01-10 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:57:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:58:05 [end_date_ymd] => 2025-01-10 23:58:05 [RateCDR] => 1 ) [2025-01-10 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-10 20:58:05' and `end` < '2025-01-10 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-10 23:58:19] Production.INFO: count ==1051 [2025-01-10 23:58:20] Production.ERROR: pbx CDR StartTime 2025-01-10 20:58:05 - End Time 2025-01-10 23:58:05 [2025-01-10 23:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220432', 'tblTempUsageDetail_20' ) start [2025-01-10 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220432', 'tblTempUsageDetail_20' ) end [2025-01-10 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220432', 'tblTempVendorCDR_20' ) start [2025-01-10 23:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220432', 'tblTempVendorCDR_20' ) end [2025-01-10 23:58:20] Production.INFO: ProcessCDR(1,14220432,1,1,2) [2025-01-10 23:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220432', 'tblTempUsageDetail_20' ) start [2025-01-10 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220432', 'tblTempUsageDetail_20' ) end [2025-01-10 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:58:23] Production.INFO: ==11266== Releasing lock... [2025-01-10 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:58:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-10 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-10 20:59:04 [end_date_ymd] => 2025-01-10 23:59:04 [RateCDR] => 1 ) [2025-01-10 23: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-01-10 20:59:04' and `end` < '2025-01-10 23: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-01-10 23:59:18] Production.INFO: count ==1053 [2025-01-10 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-10 20:59:04 - End Time 2025-01-10 23:59:04 [2025-01-10 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-10 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220433', 'tblTempUsageDetail_20' ) start [2025-01-10 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14220433', 'tblTempUsageDetail_20' ) end [2025-01-10 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220433', 'tblTempVendorCDR_20' ) start [2025-01-10 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14220433', 'tblTempVendorCDR_20' ) end [2025-01-10 23:59:18] Production.INFO: ProcessCDR(1,14220433,1,1,2) [2025-01-10 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14220433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14220433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-10 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14220433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14220433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-10 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220433', 'tblTempUsageDetail_20' ) start [2025-01-10 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14220433', 'tblTempUsageDetail_20' ) end [2025-01-10 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-10 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-10 23:59:21] Production.INFO: ==11365== Releasing lock... [2025-01-10 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-10 23:59:21] Production.INFO: 35.5 MB #Memory Used#